Skip to content
Snippets Groups Projects
Commit e3d7b1c4 authored by root's avatar root
Browse files

Forwarding -b and -B options to `create_instance.sh` so that we can run the...

Forwarding -b and -B options to `create_instance.sh` so that we can run the buildtree test directly like this:
```
./run_systemtest.sh  -n toto -s tests/archive_retrieve.sh -O -D -k -b /buildtree -B CTA-build
```
This will be very helpful to test buildtree in CI automatically.
parent 6ad3d6d3
No related branches found
No related tags found
No related merge requests found
...@@ -22,13 +22,17 @@ SYSTEMTEST_TIMEOUT=3600 ...@@ -22,13 +22,17 @@ SYSTEMTEST_TIMEOUT=3600
die() { echo "$@" 1>&2 ; exit 1; } die() { echo "$@" 1>&2 ; exit 1; }
usage() { cat <<EOF 1>&2 usage() { cat <<EOF 1>&2
Usage: $0 -n <namespace> -s <systemtest_script> [-p <gitlab pipeline ID>] [-t <systemtest timeout in seconds>] [-k] [-O] [-D] Usage: $0 -n <namespace> -s <systemtest_script> [-p <gitlab pipeline ID> | -b <build tree base> -B <build tree subdir> ] [-t <systemtest timeout in seconds>] [-k] [-O] [-D]
Options: Options:
-b The directory containing both the source and the build tree for CTA. It will be mounted RO in the
containers.
-B The subdirectory within the -b directory where the build tree is.
-k keep namespace after systemtest_script run if successful -k keep namespace after systemtest_script run if successful
-O use Ceph account associated to this node (wipe content before tests), by default use local VFS -O use Ceph account associated to this node (wipe content before tests), by default use local VFS
-D use Oracle account associated to this node (wipe content before tests), by default use local sqlite DB -D use Oracle account associated to this node (wipe content before tests), by default use local sqlite DB
Create a kubernetes instance and launch the system test script specified. Create a kubernetes instance and launch the system test script specified.
Makes sure the created instance is cleaned up at the end and return the status of the system test. Makes sure the created instance is cleaned up at the end and return the status of the system test.
EOF EOF
...@@ -40,7 +44,7 @@ exit 1 ...@@ -40,7 +44,7 @@ exit 1
# always delete DB and OBJECTSTORE for tests # always delete DB and OBJECTSTORE for tests
CREATE_OPTS="-D -O" CREATE_OPTS="-D -O"
while getopts "n:s:p:t:kDO" o; do while getopts "n:s:p:b:B:t:kDO" o; do
case "${o}" in case "${o}" in
s) s)
systemtest_script=${OPTARG} systemtest_script=${OPTARG}
...@@ -52,6 +56,12 @@ while getopts "n:s:p:t:kDO" o; do ...@@ -52,6 +56,12 @@ while getopts "n:s:p:t:kDO" o; do
p) p)
CREATE_OPTS="${CREATE_OPTS} -p ${OPTARG}" CREATE_OPTS="${CREATE_OPTS} -p ${OPTARG}"
;; ;;
b)
CREATE_OPTS="${CREATE_OPTS} -b ${OPTARG}"
;;
B)
CREATE_OPTS="${CREATE_OPTS} -B ${OPTARG}"
;;
t) t)
SYSTEMTEST_TIMEOUT=${OPTARG} SYSTEMTEST_TIMEOUT=${OPTARG}
;; ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment