mirror of
https://github.com/usatiuk/backup.git
synced 2025-10-26 17:37:47 +01:00
because that's what we actually want, to crash right now, no point in continuing
23 lines
514 B
C++
23 lines
514 B
C++
//
|
|
// 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");
|
|
ASSERT_EQ(WEXITSTATUS(ret), 0);
|
|
}
|
|
|
|
TEST(CLITest, Ignore) {
|
|
int ret = system("../../../tests/clitests/scripts/ignore.sh");
|
|
ASSERT_EQ(WEXITSTATUS(ret), 0);
|
|
}
|
|
|
|
TEST(CLITest, Diff) {
|
|
int ret = system("../../../tests/clitests/scripts/diff.sh");
|
|
ASSERT_EQ(WEXITSTATUS(ret), 0);
|
|
} |