From d339caa501a146449a45ab876079dc37f513fc43 Mon Sep 17 00:00:00 2001 From: Julian Kunkel Date: Mon, 4 Jan 2021 18:50:38 +0000 Subject: [PATCH] Updated test (illustration of an empty test) and distclean for make distcheck #304 (#305) Resolves #304 --- Makefile.am | 3 ++- src/test/example.c | 16 ++++------------ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/Makefile.am b/Makefile.am index d874a90..d6465a8 100755 --- a/Makefile.am +++ b/Makefile.am @@ -10,4 +10,5 @@ ACLOCAL_AMFLAGS = -I config # `make dist` and `make test` for simple test binaries that do not require any # special environment. #TESTS = testing/basic-tests.sh -#DISTCLEANFILES = -r test test_out + +DISTCLEANFILES = ./src/build.conf diff --git a/src/test/example.c b/src/test/example.c index 5bb4b2b..3b31066 100644 --- a/src/test/example.c +++ b/src/test/example.c @@ -1,8 +1,10 @@ #include -#include -#include +#include "../ior.h" +#include "../ior-internal.h" +// Run all tests via: +// make distcheck // build a single test via, e.g., mpicc example.c -I ../src/ ../src/libaiori.a -lm int main(){ @@ -16,16 +18,6 @@ int main(){ // having an individual file test.filePerProc = 1; - IOR_offset_t * offsets; - offsets = GetOffsetArraySequential(& test, 0); - assert(offsets[0] == 0); - assert(offsets[1] == 10); - assert(offsets[2] == 20); - assert(offsets[3] == 30); - assert(offsets[4] == 40); - // for(int i = 0; i < test.segmentCount; i++){ - // printf("%lld\n", (long long int) offsets[i]); - // } printf("OK\n"); return 0; }