summaryrefslogtreecommitdiff
path: root/Examples
diff options
context:
space:
mode:
authorKevin Greenan <kmgreen2@gmail.com>2014-04-03 16:39:03 -0700
committerKevin Greenan <kmgreen2@gmail.com>2014-04-03 16:39:03 -0700
commit80fc5d1d95f06ea4732717b06b42177099cc93c9 (patch)
tree5e9fde0e4cb5e49242fbfb5176beebeea1c20941 /Examples
parent3f6d524d2d68c3a7607a8548cb61b5496862cf51 (diff)
parent81f4bdd6f5ded33d18ef55c01f9c4edb196e41bf (diff)
downloadjerasure-80fc5d1d95f06ea4732717b06b42177099cc93c9.tar.gz
Merged in dachary/jerasure/wip-make-check (pull request #16)
run tests with make check
Diffstat (limited to 'Examples')
-rw-r--r--Examples/Makefile.am2
-rwxr-xr-xExamples/test_all_gfs.sh6
2 files changed, 5 insertions, 3 deletions
diff --git a/Examples/Makefile.am b/Examples/Makefile.am
index 54ce861..9aa4780 100644
--- a/Examples/Makefile.am
+++ b/Examples/Makefile.am
@@ -25,6 +25,8 @@ bin_PROGRAMS = jerasure_01 \
encoder \
decoder
+TESTS=test_all_gfs.sh
+
dist_noinst_SCRIPTS = test_all_gfs.sh time_all_gfs_argv_init.sh
jerasure_01_SOURCES = jerasure_01.c
diff --git a/Examples/test_all_gfs.sh b/Examples/test_all_gfs.sh
index a9268c1..a03ee9c 100755
--- a/Examples/test_all_gfs.sh
+++ b/Examples/test_all_gfs.sh
@@ -46,7 +46,7 @@ seed=1370
${GF_METHODS} 8 -B -L | awk -F: '{ if ($1 == "w=8") print $2; }' |
while read method; do
echo "Testing ${k} ${m} 8 $seed ${method}"
- ./reed_sol_test_gf ${k} ${m} 8 $seed ${method} | tail -n 1
+ $VALGRIND ./reed_sol_test_gf ${k} ${m} 8 $seed ${method} | tail -n 1
if [[ $? != "0" ]]; then
echo "Failed test for ${k} ${m} 8 $seed ${method}"
exit 1
@@ -62,7 +62,7 @@ fi
${GF_METHODS} 16 -B -L | awk -F: '{ if ($1 == "w=16") print $2; }' |
while read method; do
echo "Testing ${k} ${m} 16 $seed ${method}"
- ./reed_sol_test_gf ${k} ${m} 16 $seed ${method} | tail -n 1
+ $VALGRIND ./reed_sol_test_gf ${k} ${m} 16 $seed ${method} | tail -n 1
if [[ $? != "0" ]]; then
echo "Failed test for ${k} ${m} 16 $seed ${method}"
exit 1
@@ -78,7 +78,7 @@ fi
${GF_METHODS} 32 -B -L | awk -F: '{ if ($1 == "w=32") print $2; }' |
while read method; do
echo "Testing ${k} ${m} 32 $seed ${method}"
- ./reed_sol_test_gf ${k} ${m} 32 $seed ${method} | tail -n 1
+ $VALGRIND ./reed_sol_test_gf ${k} ${m} 32 $seed ${method} | tail -n 1
if [[ $? != "0" ]]; then
echo "Failed test for ${k} ${m} 32 $seed ${method}"
exit 1