Resolves #304master
parent
21bf5a5a12
commit
d339caa501
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue