diff options
Diffstat (limited to 'searchsummary/src/tests/juniper/SrcTestSuite.cpp')
-rw-r--r-- | searchsummary/src/tests/juniper/SrcTestSuite.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/searchsummary/src/tests/juniper/SrcTestSuite.cpp b/searchsummary/src/tests/juniper/SrcTestSuite.cpp new file mode 100644 index 00000000000..c1e4dc2cd19 --- /dev/null +++ b/searchsummary/src/tests/juniper/SrcTestSuite.cpp @@ -0,0 +1,38 @@ +// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +#include "testenv.h" +#include "mcandTest.h" +#include "queryparserTest.h" +#include "matchobjectTest.h" +#include "auxTest.h" +#include <vespa/vespalib/testkit/testapp.h> +#include <vespa/fastlib/testsuite/suite.h> +/** + * The SrcTestSuite class runs all the unit tests for the src module. + * + * @author Knut Omang + */ +class SrcTestSuite : public Suite { + +public: + SrcTestSuite(); +}; + +SrcTestSuite::SrcTestSuite() : + Suite("SrcTestSuite", &std::cout) +{ + // All tests for this module + AddTest(new MatchCandidateTest()); + AddTest(new MatchObjectTest()); + AddTest(new QueryParserTest()); + AddTest(new AuxTest()); +} + +int main(int argc, char **argv) { + juniper::TestEnv te(argc, argv, TEST_PATH("./testclient.rc").c_str()); + SrcTestSuite suite; + suite.Run(); + long failures = suite.Report(); + suite.Free(); + return (int)failures; +} |