Refactors tests to better fit with how bazel runs them.
This commit is contained in:
@@ -8,35 +8,22 @@
|
||||
|
||||
#include "test.h"
|
||||
|
||||
namespace {
|
||||
using namespace SBF;
|
||||
using namespace Test;
|
||||
using namespace std;
|
||||
} // End namespace
|
||||
|
||||
namespace Test::Random {
|
||||
TestResults test_something();
|
||||
} // End namespace Test::Random
|
||||
TestResults test_something() {
|
||||
return TestResults().skip("SBF::Random::*");
|
||||
}
|
||||
|
||||
using namespace Test::Random;
|
||||
|
||||
TestResults main_test_Random(int argc, char* argv[]) {
|
||||
int main(int argc, char* argv[]) {
|
||||
TestResults results;
|
||||
|
||||
results += test_something();
|
||||
|
||||
PrintResults(cout, results);
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
TestResults results = main_test_Random(argc, argv);
|
||||
|
||||
return results.failed() + results.errors();
|
||||
}
|
||||
|
||||
namespace Test::Random {
|
||||
TestResults test_something() {
|
||||
return TestResults().skip("SBF::Random::*");
|
||||
}
|
||||
|
||||
} // namespace Test::Random
|
||||
|
||||
Reference in New Issue
Block a user