diff options
Diffstat (limited to 'linden/indra/test/test.cpp')
-rw-r--r-- | linden/indra/test/test.cpp | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/linden/indra/test/test.cpp b/linden/indra/test/test.cpp index 8f6f672..1c03768 100644 --- a/linden/indra/test/test.cpp +++ b/linden/indra/test/test.cpp | |||
@@ -64,7 +64,8 @@ public: | |||
64 | mTotalTests(0), | 64 | mTotalTests(0), |
65 | mPassedTests(0), | 65 | mPassedTests(0), |
66 | mFailedTests(0), | 66 | mFailedTests(0), |
67 | mSkippedTests(0) | 67 | mSkippedTests(0), |
68 | mSkipedFailTests(0) | ||
68 | { | 69 | { |
69 | } | 70 | } |
70 | 71 | ||
@@ -86,7 +87,7 @@ public: | |||
86 | break; | 87 | break; |
87 | case tut::test_result::fail: | 88 | case tut::test_result::fail: |
88 | ++mFailedTests; | 89 | ++mFailedTests; |
89 | out << "fail '" << tr.message << "'"; | 90 | out << "fail"; |
90 | break; | 91 | break; |
91 | case tut::test_result::ex: | 92 | case tut::test_result::ex: |
92 | ++mFailedTests; | 93 | ++mFailedTests; |
@@ -104,12 +105,20 @@ public: | |||
104 | ++mSkippedTests; | 105 | ++mSkippedTests; |
105 | out << "skipped"; | 106 | out << "skipped"; |
106 | break; | 107 | break; |
108 | case tut::test_result::skip_fail: | ||
109 | ++mSkipedFailTests; | ||
110 | out << "skipped known failure"; | ||
111 | break; | ||
107 | default: | 112 | default: |
108 | ++mFailedTests; | 113 | ++mFailedTests; |
109 | out << "unknown"; | 114 | out << "unknown"; |
110 | } | 115 | } |
111 | if(mVerboseMode || (tr.result != tut::test_result::ok)) | 116 | if(mVerboseMode || (tr.result != tut::test_result::ok)) |
112 | { | 117 | { |
118 | if(!tr.message.empty()) | ||
119 | { | ||
120 | out << ": '" << tr.message << "'"; | ||
121 | } | ||
113 | std::cout << out.str() << std::endl; | 122 | std::cout << out.str() << std::endl; |
114 | } | 123 | } |
115 | } | 124 | } |
@@ -118,11 +127,17 @@ public: | |||
118 | { | 127 | { |
119 | std::cout << std::endl; | 128 | std::cout << std::endl; |
120 | std::cout << "Total Tests: " << mTotalTests << std::endl; | 129 | std::cout << "Total Tests: " << mTotalTests << std::endl; |
121 | std::cout << "Passed Tests : " << mPassedTests << std::endl; | 130 | std::cout << "Passed Tests: " << mPassedTests << std::endl; |
122 | 131 | ||
123 | if (mSkippedTests > 0) | 132 | if (mSkippedTests > 0) |
124 | { | 133 | { |
125 | std::cout << "Skipped Tests : " << mSkippedTests << std::endl; | 134 | std::cout << "Skipped Tests: " << mSkippedTests << std::endl; |
135 | } | ||
136 | |||
137 | if (mSkipedFailTests > 0) | ||
138 | { | ||
139 | std::cout << "Skipped known failures: " << mSkipedFailTests | ||
140 | << std::endl; | ||
126 | } | 141 | } |
127 | 142 | ||
128 | if(mFailedTests > 0) | 143 | if(mFailedTests > 0) |
@@ -137,10 +152,11 @@ public: | |||
137 | 152 | ||
138 | protected: | 153 | protected: |
139 | bool mVerboseMode; | 154 | bool mVerboseMode; |
140 | S32 mTotalTests; | 155 | int mTotalTests; |
141 | S32 mPassedTests; | 156 | int mPassedTests; |
142 | S32 mFailedTests; | 157 | int mFailedTests; |
143 | S32 mSkippedTests; | 158 | int mSkippedTests; |
159 | int mSkipedFailTests; | ||
144 | }; | 160 | }; |
145 | 161 | ||
146 | static const apr_getopt_option_t TEST_CL_OPTIONS[] = | 162 | static const apr_getopt_option_t TEST_CL_OPTIONS[] = |