// // Created by Stepan Usatiuk on 10.05.2023. // #include "CLITestWrapper.h" #include "utils/Cleaner.h" std::unique_ptr CLITestWrapper::operator()() { auto tg = std::make_unique("CLI tests"); tg->addTest(std::make_unique("Test backup", std::function([]() { int ret = system("../tests/clitests/backup.sh"); HelpfulAssert()(WEXITSTATUS(ret), 0); return true; }))); tg->addTest(std::make_unique("Test ignore", std::function([]() { int ret = system("../tests/clitests/ignore.sh"); HelpfulAssert()(WEXITSTATUS(ret), 0); return true; }))); tg->addTest(std::make_unique("Test diff", std::function([]() { int ret = system("../tests/clitests/diff.sh"); HelpfulAssert()(WEXITSTATUS(ret), 0); return true; }))); return tg; }