aboutsummaryrefslogtreecommitdiffstats
path: root/juniper/src/test/mcandTestApp.cpp
blob: 32d2a2e0b920fb5ceaf7c374b0e8dabb97189c05 (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
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "mcandTest.h"
#include <vespa/vespalib/testkit/testapp.h>

/**
 * The MatchCandidateTestApp class is the main routine for running the unit
 * tests for the MatchCandidate class in isolation.
 *
 * @sa MatchCandidate @author Knut Omang
 */
class MatchCandidateTestApp : public vespalib::TestApp {
public:
    int Main() override {
        juniper::TestEnv te(this, TEST_PATH("../rpclient/testclient.rc").c_str());
        MatchCandidateTest test;
        test.SetStream(&std::cout);
        test.Run(_argc, _argv);
        return (int)test.Report();
    }
};

FASTOS_MAIN(MatchCandidateTestApp);