diff options
author | Aaron Brashears <aaronb@lindenlab.com> | 2008-12-18 01:30:09 +0000 |
---|---|---|
committer | Aaron Brashears <aaronb@lindenlab.com> | 2008-12-18 01:30:09 +0000 |
commit | 0a5c9731fd208dcd62b3c83e437b5d12adfc5605 (patch) | |
tree | c260541815c7ce8f8d033a0cc27e43f4c55eef7f /indra/test | |
parent | a8d88418ce8d716df2d7b7eb94af8a04c81cb1ca (diff) |
Result of svn merge -r105061:106057 svn+ssh://svn/svn/user/phoenix/upgrade-tut into trunk. QAR-1074
Diffstat (limited to 'indra/test')
-rw-r--r-- | indra/test/llblowfish_tut.cpp | 6 | ||||
-rw-r--r-- | indra/test/llbuffer_tut.cpp | 2 | ||||
-rw-r--r-- | indra/test/lldatapacker_tut.cpp | 2 | ||||
-rw-r--r-- | indra/test/llhttpclient_tut.cpp | 4 | ||||
-rw-r--r-- | indra/test/llpermissions_tut.cpp | 2 | ||||
-rw-r--r-- | indra/test/llsaleinfo_tut.cpp | 2 | ||||
-rw-r--r-- | indra/test/llsd_new_tut.cpp | 2 | ||||
-rwxr-xr-x | indra/test/llsdmessagebuilder_tut.cpp | 2 | ||||
-rwxr-xr-x | indra/test/llsdmessagereader_tut.cpp | 2 | ||||
-rw-r--r-- | indra/test/llservicebuilder_tut.cpp | 2 | ||||
-rw-r--r-- | indra/test/llstreamtools_tut.cpp | 2 | ||||
-rw-r--r-- | indra/test/lltemplatemessagebuilder_tut.cpp | 2 | ||||
-rw-r--r-- | indra/test/lltut.cpp | 4 | ||||
-rw-r--r-- | indra/test/lltut.h | 6 | ||||
-rw-r--r-- | indra/test/lluserrelations_tut.cpp | 2 | ||||
-rw-r--r-- | indra/test/lluuidhashmap_tut.cpp | 2 | ||||
-rw-r--r-- | indra/test/message_tut.cpp | 2 | ||||
-rw-r--r-- | indra/test/test.cpp | 22 |
18 files changed, 21 insertions, 47 deletions
diff --git a/indra/test/llblowfish_tut.cpp b/indra/test/llblowfish_tut.cpp index 97ed2be760..5b956d7544 100644 --- a/indra/test/llblowfish_tut.cpp +++ b/indra/test/llblowfish_tut.cpp @@ -107,7 +107,7 @@ namespace tut ensure("encryption space 8", (dst_len == 16) ); #else - skip_fail("Blowfish only supported on Linux."); + skip("Blowfish only supported on Linux."); #endif // LL_LINUX } @@ -129,7 +129,7 @@ namespace tut ensure("encrypt null key", matchFile("blowfish.1.bin", result)); #else - skip_fail("Blowfish only supported on Linux."); + skip("Blowfish only supported on Linux."); #endif // LL_LINUX } @@ -152,7 +152,7 @@ namespace tut ensure("encrypt real key", matchFile("blowfish.2.bin", result)); #else - skip_fail("Blowfish only supported on Linux."); + skip("Blowfish only supported on Linux."); #endif // LL_LINUX } } diff --git a/indra/test/llbuffer_tut.cpp b/indra/test/llbuffer_tut.cpp index cd659ce9b8..09020d638c 100644 --- a/indra/test/llbuffer_tut.cpp +++ b/indra/test/llbuffer_tut.cpp @@ -31,7 +31,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" #include "lltut.h" #include "llbuffer.h" diff --git a/indra/test/lldatapacker_tut.cpp b/indra/test/lldatapacker_tut.cpp index 2b2085e0ae..15bcf33c58 100644 --- a/indra/test/lldatapacker_tut.cpp +++ b/indra/test/lldatapacker_tut.cpp @@ -31,7 +31,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "lltut.h" #include "linden_common.h" #include "lldatapacker.h" diff --git a/indra/test/llhttpclient_tut.cpp b/indra/test/llhttpclient_tut.cpp index 4ddea0f9cc..ddacbe0fa0 100644 --- a/indra/test/llhttpclient_tut.cpp +++ b/indra/test/llhttpclient_tut.cpp @@ -35,7 +35,7 @@ * */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" // These are too slow on Windows to actually include in the build. JC @@ -345,7 +345,7 @@ namespace tut // won't ever let it run. Instead get from a known LLSD // source and compare results with the non-blocking get which // is tested against the mini server earlier. - skip_fail("secondlife.com is not reliable enough for unit tests."); + skip("secondlife.com is not reliable enough for unit tests."); LLSD expected; diff --git a/indra/test/llpermissions_tut.cpp b/indra/test/llpermissions_tut.cpp index 69f832049c..2c96f7cd96 100644 --- a/indra/test/llpermissions_tut.cpp +++ b/indra/test/llpermissions_tut.cpp @@ -31,7 +31,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" #include "lltut.h" #include "message.h" diff --git a/indra/test/llsaleinfo_tut.cpp b/indra/test/llsaleinfo_tut.cpp index 0d0c52a2dd..2d820f554d 100644 --- a/indra/test/llsaleinfo_tut.cpp +++ b/indra/test/llsaleinfo_tut.cpp @@ -31,7 +31,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" #include "lltut.h" #include "llsaleinfo.h" diff --git a/indra/test/llsd_new_tut.cpp b/indra/test/llsd_new_tut.cpp index 18d329ce8b..d92ccfe466 100644 --- a/indra/test/llsd_new_tut.cpp +++ b/indra/test/llsd_new_tut.cpp @@ -30,7 +30,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" #include "lltut.h" diff --git a/indra/test/llsdmessagebuilder_tut.cpp b/indra/test/llsdmessagebuilder_tut.cpp index 96b37cc262..4605e418de 100755 --- a/indra/test/llsdmessagebuilder_tut.cpp +++ b/indra/test/llsdmessagebuilder_tut.cpp @@ -30,7 +30,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" #include "lltut.h" diff --git a/indra/test/llsdmessagereader_tut.cpp b/indra/test/llsdmessagereader_tut.cpp index bee6f8a185..3f4e587460 100755 --- a/indra/test/llsdmessagereader_tut.cpp +++ b/indra/test/llsdmessagereader_tut.cpp @@ -30,7 +30,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" #include "lltut.h" #include "v3dmath.h" diff --git a/indra/test/llservicebuilder_tut.cpp b/indra/test/llservicebuilder_tut.cpp index 14f3774f7c..256e83f9c3 100644 --- a/indra/test/llservicebuilder_tut.cpp +++ b/indra/test/llservicebuilder_tut.cpp @@ -30,7 +30,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" #include "lltut.h" diff --git a/indra/test/llstreamtools_tut.cpp b/indra/test/llstreamtools_tut.cpp index d1466e923e..261545efd5 100644 --- a/indra/test/llstreamtools_tut.cpp +++ b/indra/test/llstreamtools_tut.cpp @@ -31,7 +31,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" #include "llstreamtools.h" diff --git a/indra/test/lltemplatemessagebuilder_tut.cpp b/indra/test/lltemplatemessagebuilder_tut.cpp index c71d63a2d7..c8afc171ed 100644 --- a/indra/test/lltemplatemessagebuilder_tut.cpp +++ b/indra/test/lltemplatemessagebuilder_tut.cpp @@ -30,7 +30,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" #include "lltut.h" diff --git a/indra/test/lltut.cpp b/indra/test/lltut.cpp index 03a70c714d..b9a46544fa 100644 --- a/indra/test/lltut.cpp +++ b/indra/test/lltut.cpp @@ -39,7 +39,6 @@ namespace tut { - template<> void ensure_equals(const char* msg, const LLDate& actual, const LLDate& expected) { @@ -47,7 +46,6 @@ namespace tut actual.secondsSinceEpoch(), expected.secondsSinceEpoch()); } - template<> void ensure_equals(const char* msg, const LLURI& actual, const LLURI& expected) { @@ -55,7 +53,6 @@ namespace tut actual.asString(), expected.asString()); } - template<> void ensure_equals(const char* msg, const std::vector<U8>& actual, const std::vector<U8>& expected) { @@ -73,7 +70,6 @@ namespace tut } } - template<> void ensure_equals(const char* m, const LLSD& actual, const LLSD& expected) { diff --git a/indra/test/lltut.h b/indra/test/lltut.h index 375d558182..b6539be71b 100644 --- a/indra/test/lltut.h +++ b/indra/test/lltut.h @@ -34,7 +34,7 @@ #ifndef LL_LLTUT_H #define LL_LLTUT_H -#include <tut/tut.h> +#include <tut/tut.hpp> #include "lldate.h" #include "lluri.h" @@ -108,19 +108,15 @@ namespace tut const Q& actual,const T& expected) { ensure_equals(msg.c_str(), actual, expected); } - template<> void ensure_equals(const char* msg, const LLDate& actual, const LLDate& expected); - template<> void ensure_equals(const char* msg, const LLURI& actual, const LLURI& expected); - template<> void ensure_equals(const char* msg, const std::vector<U8>& actual, const std::vector<U8>& expected); - template<> void ensure_equals(const char* msg, const LLSD& actual, const LLSD& expected); diff --git a/indra/test/lluserrelations_tut.cpp b/indra/test/lluserrelations_tut.cpp index 4d07ba947e..fdf712493d 100644 --- a/indra/test/lluserrelations_tut.cpp +++ b/indra/test/lluserrelations_tut.cpp @@ -31,7 +31,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" #include "lluserrelations.h" diff --git a/indra/test/lluuidhashmap_tut.cpp b/indra/test/lluuidhashmap_tut.cpp index 129d17aaa4..a26a5c3622 100644 --- a/indra/test/lluuidhashmap_tut.cpp +++ b/indra/test/lluuidhashmap_tut.cpp @@ -31,7 +31,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" #include "lluuidhashmap.h" #include "llsdserialize.h" diff --git a/indra/test/message_tut.cpp b/indra/test/message_tut.cpp index 0cafdcd679..3c8f7f10b6 100644 --- a/indra/test/message_tut.cpp +++ b/indra/test/message_tut.cpp @@ -30,7 +30,7 @@ * $/LicenseInfo$ */ -#include <tut/tut.h> +#include <tut/tut.hpp> #include "linden_common.h" #include "lltut.h" diff --git a/indra/test/test.cpp b/indra/test/test.cpp index 4a9b2825f2..3dcd6201bf 100644 --- a/indra/test/test.cpp +++ b/indra/test/test.cpp @@ -68,7 +68,6 @@ public: mPassedTests(0), mFailedTests(0), mSkippedTests(0), - mSkippedFailTests(0), mStream(stream) { } @@ -107,10 +106,6 @@ public: break; case tut::test_result::skip: ++mSkippedTests; - out << "skipped"; - break; - case tut::test_result::skip_fail: - ++mSkippedFailTests; out << "skipped known failure"; break; default: @@ -159,12 +154,7 @@ private: if (mSkippedTests > 0) { - stream << "Skipped Tests: " << mSkippedTests << std::endl; - } - - if (mSkippedFailTests > 0) - { - stream << "Skipped known failures: " << mSkippedFailTests + stream << "Skipped known failures: " << mSkippedTests << std::endl; } @@ -183,7 +173,6 @@ protected: int mPassedTests; int mFailedTests; int mSkippedTests; - int mSkippedFailTests; std::ostream *mStream; }; @@ -194,7 +183,6 @@ static const apr_getopt_option_t TEST_CL_OPTIONS[] = {"verbose", 'v', 0, "Verbose output."}, {"group", 'g', 1, "Run test group specified by option argument."}, {"output", 'o', 1, "Write output to the named file."}, - {"skip", 's', 1, "Skip test number specified by option argument. Only works when a specific group is being tested"}, {"touch", 't', 1, "Touch the given file if all tests succeed"}, {"wait", 'w', 0, "Wait for input before exit."}, {"debug", 'd', 0, "Emit full debug logs."}, @@ -226,8 +214,6 @@ void stream_usage(std::ostream& s, const char* app) s << "\tList all available test groups." << std::endl; s << " " << app << " --group=uuid" << std::endl; s << "\tRun the test group 'uuid'." << std::endl; - s << " " << app << " --skip=2" << std::endl; - s << "\tSkip test case 2." << std::endl; } void stream_groups(std::ostream& s, const char* app) @@ -276,7 +262,6 @@ int main(int argc, char **argv) // values used for controlling application bool verbose_mode = false; bool wait_at_exit = false; - int skip_test_id = 0; std::string test_group; // values use for options parsing @@ -302,9 +287,6 @@ int main(int argc, char **argv) case 'g': test_group.assign(opt_arg); break; - case 's': - skip_test_id = atoi(opt_arg); - break; case 'h': stream_usage(std::cout, argv[0]); return 0; @@ -347,7 +329,7 @@ int main(int argc, char **argv) } else { - tut::runner.get().run_tests(test_group, skip_test_id); + tut::runner.get().run_tests(test_group); } if (wait_at_exit) |