Skip to content

Commit d339caa

Browse files
authored
Updated test (illustration of an empty test) and distclean for make distcheck #304 (#305)
Resolves #304
1 parent 21bf5a5 commit d339caa

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ ACLOCAL_AMFLAGS = -I config
1010
# `make dist` and `make test` for simple test binaries that do not require any
1111
# special environment.
1212
#TESTS = testing/basic-tests.sh
13-
#DISTCLEANFILES = -r test test_out
13+
14+
DISTCLEANFILES = ./src/build.conf

src/test/example.c

+4-12
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#include <assert.h>
22

3-
#include <ior.h>
4-
#include <ior-internal.h>
3+
#include "../ior.h"
4+
#include "../ior-internal.h"
55

6+
// Run all tests via:
7+
// make distcheck
68
// build a single test via, e.g., mpicc example.c -I ../src/ ../src/libaiori.a -lm
79

810
int main(){
@@ -16,16 +18,6 @@ int main(){
1618
// having an individual file
1719
test.filePerProc = 1;
1820

19-
IOR_offset_t * offsets;
20-
offsets = GetOffsetArraySequential(& test, 0);
21-
assert(offsets[0] == 0);
22-
assert(offsets[1] == 10);
23-
assert(offsets[2] == 20);
24-
assert(offsets[3] == 30);
25-
assert(offsets[4] == 40);
26-
// for(int i = 0; i < test.segmentCount; i++){
27-
// printf("%lld\n", (long long int) offsets[i]);
28-
// }
2921
printf("OK\n");
3022
return 0;
3123
}

0 commit comments

Comments
 (0)