summaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/testapp-debug/testapp-debug.cpp
blob: 8c75a104cd8eb336d9347e18c64744d37e80c777 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>

using namespace vespalib;

TEST_MAIN() {
    system("./vespalib_debug_test_app");
    system("diff lhs.out rhs.out > diff.out");


    std::string diff_cmd("diff diff.out ");
    diff_cmd += TEST_PATH("diff.ref");
    EXPECT_EQUAL(system(diff_cmd.c_str()), 0);
}