diff options
Diffstat (limited to 'rpkid.with_tls/tests/Makefile')
-rw-r--r-- | rpkid.with_tls/tests/Makefile | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/rpkid.with_tls/tests/Makefile b/rpkid.with_tls/tests/Makefile new file mode 100644 index 00000000..d194e546 --- /dev/null +++ b/rpkid.with_tls/tests/Makefile @@ -0,0 +1,66 @@ +# $Id$ + +all: protocol-samples + +clean: + rm -rf smoketest.dir left-right-protocol-samples publication-protocol-samples yamltest.dir + +protocol-samples: left-right-protocol-samples/.stamp publication-protocol-samples/.stamp + +left-right-protocol-samples/.stamp: left-right-protocol-samples.xml split-protocol-samples.xsl + rm -rf left-right-protocol-samples + mkdir left-right-protocol-samples + xsltproc --param verbose 0 --stringparam dir left-right-protocol-samples split-protocol-samples.xsl left-right-protocol-samples.xml + touch $@ + +publication-protocol-samples/.stamp: publication-protocol-samples.xml split-protocol-samples.xsl + rm -rf publication-protocol-samples + mkdir publication-protocol-samples + xsltproc --param verbose 0 --stringparam dir publication-protocol-samples split-protocol-samples.xsl publication-protocol-samples.xml + touch $@ + +parse-test: protocol-samples + python xml-parse-test.py + +all-tests:: parse-test + +all-tests:: + python smoketest.py -y smoketest.1.yaml + +all-tests:: + python smoketest.py -y smoketest.2.yaml + +test all-tests:: + python smoketest.py -y smoketest.3.yaml + +all-tests:: + python smoketest.py -y smoketest.4.yaml + +all-tests:: + python smoketest.py -y smoketest.5.yaml + +test all-tests:: + python smoketest.py -y smoketest.6.yaml + +all-tests:: + python smoketest.py -y smoketest.7.yaml + +profile: all + find smoketest.dir -name '*.prof' -delete + python smoketest.py -y smoketest.2.yaml -p + for i in smoketest.dir/*.prof; do python -c "import pstats;pstats.Stats('$$i').sort_stats('time').print_stats()"; done + +# This isn't a full exercise of the yamltest framework, but is +# probably as good as we can do under make. + +YAMLTEST_CONFIG = smoketest.1.yaml + +yamltest: + rm -rf yamltest.dir rcynic-data + python sql-cleaner.py + python yamltest.py ${YAMLTEST_CONFIG} + +backup: + python sql-dumper.py + tar cvvzf yamltest.backup.$$(TZ='' date +%Y.%m.%d.%H.%M.%S).tgz screenlog.* yamltest.dir backup.*.sql + rm backup.*.sql |