diff options
Diffstat (limited to 'juniper/src/test/mcandTestApp.cpp')
-rw-r--r-- | juniper/src/test/mcandTestApp.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/juniper/src/test/mcandTestApp.cpp b/juniper/src/test/mcandTestApp.cpp new file mode 100644 index 00000000000..7bbc9681d21 --- /dev/null +++ b/juniper/src/test/mcandTestApp.cpp @@ -0,0 +1,42 @@ +// 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 MatchCandidate class in isolation. + * + * @file mcandTestApp.cpp + * + * @author Knut Omang + * + * @date Created 27 Feb 2003 + * + * $Id$ + * + * <pre> + * Copyright (c) : 2003 Fast Search & Transfer ASA + * ALL RIGHTS RESERVED + * </pre> + ****************************************************************************/ +#include <vespa/fastos/fastos.h> +#include <vespa/log/log.h> +LOG_SETUP("mcandTest"); +#include "mcandTest.h" +#include "testenv.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 FastOS_Application { +public: + virtual int Main() { + juniper::TestEnv te(this, "../rpclient/testclient.rc"); + MatchCandidateTest test; + test.SetStream(&std::cout); + test.Run(_argc, _argv); + return (int)test.Report(); + } +}; + +FASTOS_MAIN(MatchCandidateTestApp); |