summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-08-07 20:20:43 +0300
committerLars Wirzenius <liw@liw.fi>2015-08-07 20:20:43 +0300
commite3a89e350816a5862f2c6fe492ca4eb1cc1c0b2a (patch)
tree962fde7c1d0688ec6d570d6f438b5679cd01f350
parenta9cedf7475975d4efbb52533207fc9ea44c3fa7a (diff)
downloadobnam-benchmarks-e3a89e350816a5862f2c6fe492ca4eb1cc1c0b2a.tar.gz
Add test-run to run an example
-rwxr-xr-xtest-run10
-rw-r--r--test.yaml6
2 files changed, 13 insertions, 3 deletions
diff --git a/test-run b/test-run
new file mode 100755
index 0000000..3bad01d
--- /dev/null
+++ b/test-run
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -eu
+
+rm -rf test.dir
+mkdir test.dir
+mkdir test.dir/html
+mkdir test.dir/reports
+
+./obbench test.yaml master~2 master~1 master
diff --git a/test.yaml b/test.yaml
index 72ece83..af817ae 100644
--- a/test.yaml
+++ b/test.yaml
@@ -15,7 +15,7 @@ benchmarks:
obnam: backup
- obnam: restore
- obnam: backup
-reports_dir: /home/liw/obnam/benchmarks/reports
-html_dir: /home/liw/obnam/benchmarks/html
+reports_dir: /home/liw/obnam/benchmarks/test.dir/reports
+html_dir: /home/liw/obnam/benchmarks/test.dir/html
publish_html: echo PUBLISHING HTML HERE
-state: /home/liw/obnam/benchmarks/state.yaml
+state: /home/liw/obnam/benchmarks/test.dir/state.yaml