aboutsummaryrefslogtreecommitdiffstats
path: root/searchsummary/src/tests/juniper/SrcTestSuite.cpp
blob: 955ed01fd85cd3f57fd1a9b8e647fb619eb9d17b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "testenv.h"
#include "suite.h"
#include "mcandTest.h"
#include "queryparserTest.h"
#include "matchobjectTest.h"
#include "auxTest.h"
#include <vespa/vespalib/testkit/testapp.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;
}