Updated test (illustration of an empty test) and distclean for make distcheck #304 (#305)

Resolves #304
master
Julian Kunkel 2021-01-04 18:50:38 +00:00 committed by GitHub
parent 21bf5a5a12
commit d339caa501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 13 deletions

View File

@ -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

View File

@ -1,8 +1,10 @@
#include <assert.h>
#include <ior.h>
#include <ior-internal.h>
#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;
}