Skip to content

Commit

Permalink
tests: run tests binary either in src/ folder or system
Browse files Browse the repository at this point in the history
  • Loading branch information
rogers0 committed Nov 15, 2017
1 parent ad76fd5 commit fc11e6a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ function run_test {
return 0
}

run_test python tests/test.py -c tests/aes.json
run_test python tests/test.py -c tests/aes-gcm.json
run_test python tests/test.py -c tests/aes-ctr.json
run_test python tests/test.py -c tests/rc4-md5.json
run_test python tests/test.py -c tests/salsa20.json
run_test python tests/test.py -c tests/chacha20.json
run_test python tests/test.py -c tests/chacha20-ietf.json
run_test python tests/test.py -c tests/chacha20-ietf-poly1305.json
[ -d src -a -x src/ss-local ] &&
BIN="--bin src/"

run_test python tests/test.py $BIN -c tests/aes.json
run_test python tests/test.py $BIN -c tests/aes-gcm.json
run_test python tests/test.py $BIN -c tests/aes-ctr.json
run_test python tests/test.py $BIN -c tests/rc4-md5.json
run_test python tests/test.py $BIN -c tests/salsa20.json
run_test python tests/test.py $BIN -c tests/chacha20.json
run_test python tests/test.py $BIN -c tests/chacha20-ietf.json
run_test python tests/test.py $BIN -c tests/chacha20-ietf-poly1305.json

exit $result

0 comments on commit fc11e6a

Please sign in to comment.