From 5789562646d6fd97a3214198f8eb92f4d2836171 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 25 Apr 2022 17:36:10 -0700 Subject: [PATCH] ... --- Makefile.am | 6 ++++++ test/integration/Makefile.am | 1 + test/integration/basic.test | Bin 0 -> 50760 bytes test/integration/basic.test.c | 7 +++++++ test/integration/test_macros.h | 4 ++++ test/integration/test_utils.c | 16 ++++++++++++++++ test/integration/test_utils.h | 15 +++++++++++++++ 7 files changed, 49 insertions(+) create mode 100755 test/integration/basic.test create mode 100644 test/integration/basic.test.c create mode 100644 test/integration/test_macros.h create mode 100644 test/integration/test_utils.c create mode 100644 test/integration/test_utils.h diff --git a/Makefile.am b/Makefile.am index fd615a7..9a1fc3c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -123,3 +123,9 @@ seederd_SOURCES += \ inc/watch.h SUBDIRS = . test/unit test/integration bench + +# test target/shortcuts +unit: + $(MAKE) -C test/unit check +integration: + $(MAKE) -C test/integration check diff --git a/test/integration/Makefile.am b/test/integration/Makefile.am index 24046e9..b610eef 100644 --- a/test/integration/Makefile.am +++ b/test/integration/Makefile.am @@ -22,6 +22,7 @@ AM_LOG_FLAGS = --leak-check=full -v --track-origins=yes --error-exitcode=1 endif common_SOURCES = \ + $(seederd_SOURCES) \ test_utils.c basic_test_SOURCES = \ diff --git a/test/integration/basic.test b/test/integration/basic.test new file mode 100755 index 0000000000000000000000000000000000000000..dce91021db2448de50be8c932cc3b6ce1e7f933e GIT binary patch literal 50760 zcmeHw3wT`Bb?%uNjbt#$1{-W1hJ%ekvL$(DG#ZVJ4H`)!Yd|kFBU=tJCnIU}06iRO z1U4Z7;*iwg8Isbxnnz2MHn&Y^(ma|M(2%CNO$crCYC=OEGyzId@+@f*eE)y#z0aIE z8iUDqzx#dnUL9L!pR=E9uf6u#YpuQZnVZtR-N8V>GFQmD)Z*L0wJN4vC-i(qKOktg zlGbY6FSNE;)p)OxIF;V60;H;IDp($_((xgLEcfR+-5;K-^O?{<$dKiZc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f$D&@Mu0)J?;?8QOaLSZJ)0{ZFTOwnqRo;TsKX>uN~MR@R9O(afanwPJVnK283M_gfaX%a>7JE)jO z`gMA4V%|LGM@Qj~Zrawy3C_|o4ahn{(djyCtxvHL)2yDUK9Ey5a#t>TkukY zKU3bw$0oecn;FlB|C(s1(q-k19Bo3|WYnR*d>7(>b?n%@Y2V1(CN%9Eu@{Dwva26& zx??oVt|fZKL7q2DFo4!H+q)| zX_)k0{`Mb0qPP5%t#Z4eum1*brp_!h@mxPJy@v~HD?xvjg-OPOx$MEJ4 zt2djAJFd<6i{sC9$E<%RAOV literal 0 HcmV?d00001 diff --git a/test/integration/basic.test.c b/test/integration/basic.test.c new file mode 100644 index 0000000..b6a16a3 --- /dev/null +++ b/test/integration/basic.test.c @@ -0,0 +1,7 @@ +#include + +int main(); + +int main() { + return EXIT_SUCCESS; +} diff --git a/test/integration/test_macros.h b/test/integration/test_macros.h new file mode 100644 index 0000000..e229fe5 --- /dev/null +++ b/test/integration/test_macros.h @@ -0,0 +1,4 @@ +#ifndef __TEST_MACROS_H_ +#define __TEST_MACROS_H_ + +#endif diff --git a/test/integration/test_utils.c b/test/integration/test_utils.c new file mode 100644 index 0000000..331953b --- /dev/null +++ b/test/integration/test_utils.c @@ -0,0 +1,16 @@ +#include + +void clean_env() { + system("rm -rf " PREFIX); +} + +void reset_env() { + clean_env(); + setup_env(); +} + +void setup_env() { + clean_env(); + + srand(time(NULL)); +} diff --git a/test/integration/test_utils.h b/test/integration/test_utils.h new file mode 100644 index 0000000..4e9eb0d --- /dev/null +++ b/test/integration/test_utils.h @@ -0,0 +1,15 @@ +#ifndef __TEST_UTILS_H_ +#define __TEST_UTILS_H_ + +#include + +#include +#include +#include +#include + +void clean_env(); +void reset_env(); +void setup_env(); + +#endif -- 2.39.5