[ARVADOS] updated: 1.3.0-526-ge6f350e56
Git user
git at public.curoverse.com
Wed Mar 20 13:28:55 UTC 2019
Summary of changes:
build/run-tests.sh | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
via e6f350e56674e3f19d24755b94a22e59cf8478b6 (commit)
via b286e013ab8ccc64d06ee107c155a03696fddeed (commit)
from 19ab7c19fcd56b05ff2d06f7fb4b66a515c90f4b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit e6f350e56674e3f19d24755b94a22e59cf8478b6
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date: Wed Mar 20 09:28:24 2019 -0400
14947: Accept test suite options in interactive mode.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>
diff --git a/build/run-tests.sh b/build/run-tests.sh
index bce3ed5a7..2a1bf9068 100755
--- a/build/run-tests.sh
+++ b/build/run-tests.sh
@@ -1147,13 +1147,14 @@ test_all() {
help_interactive() {
echo "== Interactive commands:"
- echo "TARGET (short for 'test DIR')"
+ echo "TARGET (short for 'test DIR')"
echo "test TARGET"
- echo "test TARGET:py3 (test with python3)"
+ echo "test TARGET:py3 (test with python3)"
+ echo "test TARGET -check.vv (pass arguments to test)"
echo "install TARGET"
- echo "install env (go/python libs)"
- echo "install deps (go/python libs + arvados components needed for integration tests)"
- echo "reset (...services used by integration tests)"
+ echo "install env (go/python libs)"
+ echo "install deps (go/python libs + arvados components needed for integration tests)"
+ echo "reset (...services used by integration tests)"
echo "exit"
echo "== Test targets:"
echo "${!testfuncargs[@]}" | tr ' ' '\n' | sort | column
@@ -1179,20 +1180,21 @@ if [[ -z ${interactive} ]]; then
test_all
else
if [[ -e "$VENVDIR/bin/activate" ]]; then stop_services; fi
- setreaddefault() {
- readdefault="$verb $target"
- if [[ -n "$verb" && "$readdefault" != "install deps" ]]; then
+ setnextcmd() {
+ if [[ "$nextcmd" != "install deps" ]]; then
:
elif [[ -e "$VENVDIR/bin/activate" ]]; then
- readdefault="test lib/cmd"
+ nextcmd="test lib/cmd"
else
- readdefault="install deps"
+ nextcmd="install deps"
fi
}
echo
help_interactive
- setreaddefault
- while read -p 'What next? ' -e -i "${readdefault}" verb target; do
+ nextcmd="install deps"
+ setnextcmd
+ while read -p 'What next? ' -e -i "${nextcmd}" nextcmd; do
+ read verb target opts <<<"${nextcmd}"
case "${verb}" in
"" | "help")
help_interactive
@@ -1204,11 +1206,8 @@ else
stop_services
;;
*)
- if [[ -z "${target}" ]]; then
- target="${verb}"
- verb=test
- fi
target="${target%/}"
+ testargs["$target"]="${opts}"
case "$target" in
all | deps)
${verb}_${target}
@@ -1227,7 +1226,7 @@ else
failures=()
fi
cd "$WORKSPACE"
- setreaddefault
+ setnextcmd
done
echo
fi
commit b286e013ab8ccc64d06ee107c155a03696fddeed
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date: Tue Mar 19 16:23:55 2019 -0400
14947: Install controller (cmd/arvados-server) for integration tests.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>
diff --git a/build/run-tests.sh b/build/run-tests.sh
index c35b54427..bce3ed5a7 100755
--- a/build/run-tests.sh
+++ b/build/run-tests.sh
@@ -1061,6 +1061,7 @@ test_apps/workbench_profile() {
install_deps() {
# Install parts needed by test suites
do_install env
+ do_install cmd/arvados-server
do_install sdk/cli
do_install sdk/perl
do_install sdk/python pip
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list