diff options
author | Magnus Ahltorp <map@kth.se> | 2016-08-25 15:24:40 +0200 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2016-10-05 10:08:43 +0200 |
commit | 3be07b6f8ad46cf7ad4aff31e097a416f61ad50d (patch) | |
tree | b12205f730c63fd9f489a0984d0b18cecf49f8b9 | |
parent | 0effa68d641a1af9d9750bf195600f9640d89e34 (diff) |
Remove formatupgrade tests
-rw-r--r-- | Makefile | 57 |
1 files changed, 0 insertions, 57 deletions
@@ -166,49 +166,6 @@ tests-wait: tests-makemk: tools/compileconfig.py --config=test/catlfish-test.cfg --testmakefile=test/test.mk --machines 1 -tests-formatupgrade-prepare: - rm -r $(INSTDIR)/tests/mergedb - rm -r $(INSTDIR)/tests/machine/machine-1 - mkdir $(INSTDIR)/tests/machine/machine-1 - cp -r test/oldformat/db $(INSTDIR)/tests/machine/machine-1 - cp -r test/oldformat/mergedb $(INSTDIR)/tests - @(cd $(INSTDIR) && python ../tools/convertdb.py tests/machine/machine-1/db/certentries) - -tests-formatupgrade-run: - @(cd $(INSTDIR) && rm -r fetchcertstore-old || true) - @(cd $(INSTDIR) && mkdir fetchcertstore-old) - @(cd $(INSTDIR) && python ../tools/fetchallcerts.py $(BASEURL) --no-check-signature --store fetchcertstore-old --publickey=tests/keys/logkey.pem --cafile tests/httpsca/demoCA/cacert.pem) || (echo "Verification failed" ; false) - @(cd $(INSTDIR)/fetchcertstore-old && unzip 0000.zip) - @(cd $(INSTDIR) && python ../tools/comparecert.py ../tools/testcerts/cert1.txt fetchcertstore-old/00000000) || (echo "Verification failed" ; false) - @(cd $(INSTDIR) && python ../tools/comparecert.py ../tools/testcerts/cert2.txt fetchcertstore-old/00000001) || (echo "Verification failed" ; false) - @(cd $(INSTDIR) && python ../tools/comparecert.py ../tools/testcerts/cert3.txt fetchcertstore-old/00000002) || (echo "Verification failed" ; false) - @(cd $(INSTDIR) && python ../tools/comparecert.py ../tools/testcerts/cert4.txt fetchcertstore-old/00000003) || (echo "Verification failed" ; false) - @(cd $(INSTDIR) && python ../tools/comparecert.py ../tools/testcerts/cert5.txt fetchcertstore-old/00000004) || (echo "Verification failed" ; false) - @(cd $(INSTDIR) && python ../tools/comparecert.py ../tools/testcerts/pre1.txt:../tools/testcerts/pre2.txt fetchcertstore-old/00000005:fetchcertstore-old/00000006) || (echo "Verification failed" ; false) - -tests-formatupgrade-prepare2: - -rm $(INSTDIR)/tests/machine/machine-1/db/sth - @(cd $(INSTDIR) && python ../tools/convertdb.py tests/mergedb/chains) - rm -r $(INSTDIR)/tests/mergedb-secondary - mkdir $(INSTDIR)/tests/mergedb-secondary - mkdir $(INSTDIR)/tests/mergedb-secondary/chains - touch $(INSTDIR)/tests/mergedb-secondary/logorder - printf 0 > $(INSTDIR)/tests/mergedb-secondary/verifiedsize - -tests-formatupgrade-run2: - @(cd $(INSTDIR) && ../tools/merge --config ../test/catlfish-test.cfg --localconfig ../test/catlfish-test-local-merge.cfg) || (echo "Merge failed" ; false) - @diff -r -x nursery -x verifiedsize -x fetched -x sth -x verified.\* catlfish/tests/mergedb catlfish/tests/mergedb-secondary || (echo "Merge databases not matching" ; false) - @(cd $(INSTDIR) && rm -r fetchcertstore-old || true) - @(cd $(INSTDIR) && mkdir fetchcertstore-old) - @(cd $(INSTDIR) && python ../tools/fetchallcerts.py $(BASEURL) --no-check-signature --store fetchcertstore-old --publickey=tests/keys/logkey.pem --cafile tests/httpsca/demoCA/cacert.pem) || (echo "Verification failed" ; false) - @(cd $(INSTDIR)/fetchcertstore-old && unzip 0000.zip) - @(cd $(INSTDIR) && python ../tools/comparecert.py ../tools/testcerts/cert1.txt fetchcertstore-old/00000000) || (echo "Verification failed" ; false) - @(cd $(INSTDIR) && python ../tools/comparecert.py ../tools/testcerts/cert2.txt fetchcertstore-old/00000001) || (echo "Verification failed" ; false) - @(cd $(INSTDIR) && python ../tools/comparecert.py ../tools/testcerts/cert3.txt fetchcertstore-old/00000002) || (echo "Verification failed" ; false) - @(cd $(INSTDIR) && python ../tools/comparecert.py ../tools/testcerts/cert4.txt fetchcertstore-old/00000003) || (echo "Verification failed" ; false) - @(cd $(INSTDIR) && python ../tools/comparecert.py ../tools/testcerts/cert5.txt fetchcertstore-old/00000004) || (echo "Verification failed" ; false) - @(cd $(INSTDIR) && python ../tools/comparecert.py ../tools/testcerts/pre1.txt:../tools/testcerts/pre2.txt fetchcertstore-old/00000005:fetchcertstore-old/00000006) || (echo "Verification failed" ; false) - tests: @make tests-makemk @make tests-prepare @@ -234,20 +191,6 @@ tests: @make tests-wait @make tests-stop -tests-formatupgrade: - @make tests-makemk - @make tests-prepare - @make tests-formatupgrade-prepare - @make tests-start - @make tests-formatupgrade-run || (make tests-stop ; false) - @make tests-wait - @make tests-stop - @make tests-formatupgrade-prepare2 - @make tests-start - @make tests-formatupgrade-run2 || (make tests-stop ; false) - @make tests-wait - @make tests-stop - tests-createca: mkdir $(INSTDIR)/tests/httpsca ( cd $(INSTDIR)/tests/httpsca ; \ |