summaryrefslogtreecommitdiffstats
path: root/src/spdk/autorun.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/spdk/autorun.sh')
-rwxr-xr-xsrc/spdk/autorun.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/spdk/autorun.sh b/src/spdk/autorun.sh
new file mode 100755
index 000000000..0e5c4c3de
--- /dev/null
+++ b/src/spdk/autorun.sh
@@ -0,0 +1,21 @@
+#!/usr/bin/env bash
+
+set -e
+
+rootdir=$(readlink -f $(dirname $0))
+
+conf=~/autorun-spdk.conf
+
+# If the configuration of tests is not provided, no tests will be carried out.
+if [[ ! -f $conf ]]; then
+ echo "ERROR: $conf doesn't exist"
+ exit 1
+fi
+
+echo "Test configuration:"
+cat "$conf"
+
+# Runs agent scripts
+$rootdir/autobuild.sh "$conf"
+sudo -E WITH_DPDK_DIR="$WITH_DPDK_DIR" $rootdir/autotest.sh "$conf"
+$rootdir/autopackage.sh "$conf"