You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/test/tap/tests/setparser_test-t.cpp

25 lines
532 B

/**
* @file setparser_test-t.cpp
* @brief This test is a simple wrapper for calling 'setparser_test' as a tap test.
*/
#include "command_line.h"
#include "tap.h"
#include <stdlib.h>
int main(int argc, char** argv) {
CommandLine cl;
if(cl.getEnv())
return exit_status();
plan(1);
std::string test_bin { std::string { cl.workdir } + "setparser_test" };
int setparser_err = system(test_bin.c_str());
ok (setparser_err == 0, "Executing 'setparser_test' returned err code: %d", setparser_err);
return exit_status();
}