-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_test.cpp
More file actions
37 lines (28 loc) · 1.16 KB
/
main_test.cpp
File metadata and controls
37 lines (28 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <sstd/sstd.hpp>
#include <gtest/gtest.h>
#define CPM_TEST_PRINT_INST_PROCESS true
#define CPM_TEST_PRINT_TEST_PROCESS true
// src code test
//#include "test/src/version_processor.hpp"
//#include "test/src/dependency_graph_generator.hpp"
// build and gen archive test
#include "test/packages/amd64/sstd/build_and_gen_archive_test.cpp"
// archive installation test
//#include "test/packages/amd64/gcc/archive_installation_test.hpp"
// full build and installation test
int main(int argc, char *argv[]){
printf("\n");
printf("+---------------------------------------------------+\n");
printf("| |\n");
printf("| Welcome to The Test Codes of |\n");
printf("| The Cpp Package Manager (CPM) ! |\n");
printf("| |\n");
printf("+---------------------------------------------------+\n");
printf("\n");
time_m timem; sstd::measureTime_start(timem);
::testing::InitGoogleTest(&argc, argv);
auto ret = RUN_ALL_TESTS();
printf("\n");
sstd::measureTime_stop_print(timem);
return ret;
}