Merged in dachary/gf-complete/wip-make-check (pull request #11)
add make check target and basic testsmaster
commit
31baa17519
4
README
4
README
|
@ -24,3 +24,7 @@ To compile, do:
|
|||
./configure
|
||||
make
|
||||
sudo make install
|
||||
|
||||
To run the tests, do:
|
||||
|
||||
make check
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue