summaryrefslogtreecommitdiffstats
path: root/test/parser/run-parser-tests.in
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2012-03-18 22:19:49 -0700
committerGeoff Levand <geoff@infradead.org>2012-03-18 22:19:49 -0700
commit8bd85461621fb0ff18059305a6c1aecdbc18016c (patch)
treeef74fc1a811fc1c14797b0a2ab0735d37475e0dd /test/parser/run-parser-tests.in
parentd40cc2cc3f7c78a766c7ab26aa0cb73ae17534c0 (diff)
downloadtalos-petitboot-8bd85461621fb0ff18059305a6c1aecdbc18016c.tar.gz
talos-petitboot-8bd85461621fb0ff18059305a6c1aecdbc18016c.zip
Parser test cleanup
Major cleanup of parser tests. * Change test data directory layout to ease test automation. * Remove some unneeded files. * Re-write test wraper script, rename to run-parser-tests. * Rework for autotools. Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'test/parser/run-parser-tests.in')
-rwxr-xr-xtest/parser/run-parser-tests.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/parser/run-parser-tests.in b/test/parser/run-parser-tests.in
new file mode 100755
index 0000000..4c4c2be
--- /dev/null
+++ b/test/parser/run-parser-tests.in
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+test="@abs_builddir@/parser-test"
+data_dir="@abs_srcdir@/data"
+mnt_dir="@prefix@/var/petitboot/mnt"
+
+dirs=$(ls ${data_dir})
+
+mkdir -p ${mnt_dir}
+ln -s ${data_dir} ${mnt_dir}/
+
+for d in ${dirs}; do
+ echo "##### running parser test in ${d} #####"
+ ${test} data ${d}
+done
OpenPOWER on IntegriCloud