diff --git a/.travis.yml b/.travis.yml index c0c8c78..eab4aac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,3 +16,5 @@ addons: script: ./autogen.sh && ./configure && make && make check +after_script: + - pwd && cat tests/rngtesturandom.sh.log && cat tests/rngtestzero.sh.log diff --git a/tests/rngtesturandom.sh b/tests/rngtesturandom.sh index 02d9a43..d29c3a7 100755 --- a/tests/rngtesturandom.sh +++ b/tests/rngtesturandom.sh @@ -9,10 +9,9 @@ fi # Confirm that /dev/urandom produces enough randomness to pass the FIPS-140-2 # randomness validation tests. This isn't a great test, but it should work, and # failure indicates some problems in /dev/urandom (or the test) anyway -cat /dev/urandom | rngtest -c 100 --pipe >/dev/null +cat /dev/urandom | ../rngtest -c 100 --pipe >/dev/null if [ $? -ne 0 ] then - cat tests/test-suite.log exit 1 fi diff --git a/tests/rngtestzero.sh b/tests/rngtestzero.sh index 84e66ba..e690728 100755 --- a/tests/rngtestzero.sh +++ b/tests/rngtestzero.sh @@ -1,10 +1,9 @@ #!/bin/sh # Test that we catch a repeating zero failure in rngtest -cat /dev/zero | rngtest -c 100 --pipe > /dev/null +cat /dev/zero | ../rngtest -c 100 --pipe > /dev/null if [ $? -eq 0 ] then - cat tests/test-suite.log exit 1 fi