From 1d902cd5813a2df252b6976bdcdc9cd7531590b4 Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Wed, 5 Oct 2016 10:06:16 +0200 Subject: Move tests to shell scripts --- test/scripts/light-system-test-run-3.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 test/scripts/light-system-test-run-3.sh (limited to 'test/scripts/light-system-test-run-3.sh') diff --git a/test/scripts/light-system-test-run-3.sh b/test/scripts/light-system-test-run-3.sh new file mode 100755 index 0000000..c0969e9 --- /dev/null +++ b/test/scripts/light-system-test-run-3.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -o nounset +set -o errexit + +SOFTHSM=/usr/local/bin/softhsm2-util +INSTDIR=../catlfish +PREFIX=.. + +. test.shvars + +(cd ${INSTDIR} && ../tools/merge --config ../test/catlfish-test.cfg --localconfig ../test/catlfish-test-local-merge.cfg) || (echo "Merge failed" ; false) +(cd ${INSTDIR}/tests && ../../tools/check-sth.py ${BASEURL} --publickey=keys/logkey.pem --cur-sth=stored-sth --cafile httpsca/demoCA/cacert.pem) +(cd ${INSTDIR}/tests && python ../../tools/submitcert.py --parallel=1 --store ../../tools/testcerts/cert7.txt --check-sct --sct-file=submittedcerts-7 ${BASEURL} --publickey=keys/logkey.pem --cafile httpsca/demoCA/cacert.pem) || (echo "Submission failed" ; false) +(cd ${INSTDIR} && ../tools/merge --config ../test/catlfish-test.cfg --localconfig ../test/catlfish-test-local-merge.cfg) || (echo "Merge failed" ; false) +(cd ${INSTDIR} ; python ../tools/verifysct.py --sct-file=tests/submittedcerts --parallel 1 ${BASEURL} --publickey=tests/keys/logkey.pem --cafile tests/httpsca/demoCA/cacert.pem) || (echo "Verification of SCT:s failed"; false) +(cd ${INSTDIR}/tests && ../../tools/check-sth.py ${BASEURL} --publickey=keys/logkey.pem --cur-sth=stored-sth --cafile httpsca/demoCA/cacert.pem) -- cgit v1.1