Merged in dachary/gf-complete/wip-make-check (pull request #11)

add make check target and basic tests
master
Kevin Greenan 2014-04-02 10:21:40 -07:00
commit 31baa17519
3 changed files with 15 additions and 0 deletions

4
README
View File

@ -24,3 +24,7 @@ To compile, do:
./configure
make
sudo make install
To run the tests, do:
make check

View File

@ -3,6 +3,8 @@
INCLUDES=-I./ -I../include
AM_CFLAGS = -O3 $(SIMD_FLAGS) -fPIC $(INCLUDES)
TESTS=run-tests.sh
bin_PROGRAMS = gf_mult gf_div gf_add gf_time gf_methods gf_poly gf_inline_time
gf_mult_SOURCES = gf_mult.c

9
tools/run-tests.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
for w in 4 8 16 32 64 128 ; do
./gf_methods $w -A -U | sh -e
if [ $? != "0" ] ; then
echo "Failed unit tests for w=$w"
break
fi
done