blob: 065af199589c6de73233d848ed5ab3dbdff75ca8 (
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
39
40
41
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/**
* Definition and implementation of the application for running unit tests
* for the MatchObject class in isolation.
*
* @file matchobjectTestApp.cpp
*
* @author Knut Omang
*
* @date Created 21 Feb 2003
*
* $Id$
*
* <pre>
* Copyright (c) : 2003 Fast Search & Transfer ASA
* ALL RIGHTS RESERVED
* </pre>
****************************************************************************/
#include <vespa/fastos/fastos.h>
#include <vespa/vespalib/testkit/testapp.h>
#include "matchobjectTest.h"
#include "testenv.h"
/**
* The MatchObjectTestApp class is the main routine for running the unit
* tests for the MatchObject class in isolation.
*
* @sa MatchObject @author Knut Omang
*/
class MatchObjectTestApp : public vespalib::TestApp {
public:
virtual int Main() override {
juniper::TestEnv te(this, TEST_PATH("../rpclient/testclient.rc").c_str());
MatchObjectTest test;
test.SetStream(&std::cout);
test.Run(_argc, _argv);
return (int)test.Report();
}
};
FASTOS_MAIN(MatchObjectTestApp);
|