mirror of
https://github.com/usatiuk/backup.git
synced 2025-10-27 01:37:49 +01:00
init
This commit is contained in:
34
tests/runTests.cpp
Normal file
34
tests/runTests.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// Created by Stepan Usatiuk on 13.04.2023.
|
||||
//
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "BuzhashTest.h"
|
||||
#include "CLITestWrapper.h"
|
||||
#include "crypto/AESTest.h"
|
||||
#include "crypto/MD5Test.h"
|
||||
#include "fulltests/FullTest.h"
|
||||
#include "repo/ChunkTest.h"
|
||||
#include "repo/FileRepositoryTest.h"
|
||||
#include "utils/HelpfulAssertTest.h"
|
||||
|
||||
int main() {
|
||||
std::vector<std::unique_ptr<Runnable>> tests{};
|
||||
tests.emplace_back(HelpfulAssertTest()());
|
||||
tests.emplace_back(MD5Test()());
|
||||
tests.emplace_back(AESTest()());
|
||||
tests.emplace_back(ChunkTest()());
|
||||
tests.emplace_back(FileRepositoryTest()());
|
||||
tests.emplace_back(BuzhashTest()());
|
||||
tests.emplace_back(CLITestWrapper()());
|
||||
tests.emplace_back(FullTest()());
|
||||
|
||||
bool ok = true;
|
||||
for (const auto &t: tests) {
|
||||
ok = t->run(std::cout) && ok;
|
||||
}
|
||||
|
||||
return ok ? 0 : -1;
|
||||
}
|
||||
Reference in New Issue
Block a user