xref: /spdk/autorun.sh (revision 2172c432cfdaecc5a279d64e37c6b51e794683c1)
1#!/usr/bin/env bash
2
3set -e
4
5rootdir=$(readlink -f $(dirname $0))
6
7conf=~/autorun-spdk.conf
8
9# If the configuration of tests is not provided, no tests will be carried out.
10if [[ ! -f $conf ]]; then
11	echo "ERROR: $conf doesn't exist"
12	exit 1
13fi
14
15echo "Test configuration:"
16cat "$conf"
17
18# Runs agent scripts
19$rootdir/autobuild.sh "$conf"
20sudo -E $rootdir/autotest.sh "$conf"
21$rootdir/autopackage.sh "$conf"
22