proper cmake

This commit is contained in:
2023-06-04 16:10:06 +02:00
parent 13a8b4c35d
commit fdcb0cf0c4
154 changed files with 1273 additions and 1620 deletions

View File

@@ -0,0 +1,23 @@
//
// Created by Stepan Usatiuk on 10.05.2023.
//
#include "Cleaner.h"
#include <gtest/gtest.h>
//TODO: Don't hardcode scripts
TEST(CLITest, Backup) {
int ret = system("../../../tests/clitests/scripts/backup.sh");
EXPECT_EQ(WEXITSTATUS(ret), 0);
}
TEST(CLITest, Ignore) {
int ret = system("../../../tests/clitests/scripts/ignore.sh");
EXPECT_EQ(WEXITSTATUS(ret), 0);
}
TEST(CLITest, Diff) {
int ret = system("../../../tests/clitests/scripts/diff.sh");
EXPECT_EQ(WEXITSTATUS(ret), 0);
}