Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
Add tests from GROMACS' version of xdrfile. Fix read_trr in tests (add
in "has_prop" argument).
  • Loading branch information
James Barnett committed Oct 25, 2016
1 parent ecd7d7b commit e123801
Show file tree
Hide file tree
Showing 6 changed files with 470 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ install: ${NAME}.so
@install -Dm755 lib/* -t ${LIBDIR}
@install -Dm644 LICENSE -t ${LICDIR}

test: ${NAME}.so
@gfortran tests/test.c -o tests/$@ -Iinclude lib/${NAME}.so
@./tests/test

clean:
@rm src/*.o lib/*.so
@rm test.xtc test.trr test.xdr tests/test
@rmdir lib
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ To install do:

$ make
# make install

To test the library capabilities, do:

$ make test
Loading

0 comments on commit e123801

Please sign in to comment.