Skip to content

Commit

Permalink
Merge pull request #15 from nhorman/tests-debug
Browse files Browse the repository at this point in the history
Tests debug
  • Loading branch information
nhorman authored May 10, 2018
2 parents 5cb91bd + 9d42e26 commit 61125fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions tests/rngtesturandom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions tests/rngtestzero.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 61125fd

Please sign in to comment.