X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8486a93eb80d0ba888c7795747bbba81f1c2c16f..d1a6af60533f6d1fb4d4f00f7556f0d8500db3b9:/build/run-tests.sh diff --git a/build/run-tests.sh b/build/run-tests.sh index ee52c4b9dd..44865951ff 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -58,7 +58,7 @@ defaults to $HOME/arvados-api-server if that directory exists. More information and background: -https://arvados.org/projects/arvados/wiki/Running_tests +https://dev.arvados.org/projects/arvados/wiki/Running_tests Available tests: @@ -94,7 +94,6 @@ lib/pam lib/service services/api services/githttpd -services/crunchstat services/dockercleaner services/fuse services/fuse:py3 @@ -106,6 +105,9 @@ services/keep-balance services/login-sync services/crunch-dispatch-local services/crunch-dispatch-slurm +services/workbench2 +services/workbench2_units +services/workbench2_integration services/ws sdk/cli sdk/python @@ -150,7 +152,6 @@ VENVDIR= VENV3DIR= PYTHONPATH= GEMHOME= -PERLINSTALLBASE= R_LIBS= export LANG=en_US.UTF-8 @@ -232,14 +233,6 @@ sanity_checks() { echo -n 'nginx: ' PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin" nginx -v \ || fatal "No nginx. Try: apt-get install nginx" - echo -n 'perl: ' - perl -v | grep version \ - || fatal "No perl. Try: apt-get install perl" - for mod in ExtUtils::MakeMaker JSON LWP Net::SSL; do - echo -n "perl $mod: " - perl -e "use $mod; print \"\$$mod::VERSION\\n\"" \ - || fatal "No $mod. Try: apt-get install perl-modules libcrypt-ssleay-perl libjson-perl libwww-perl" - done echo -n 'gitolite: ' which gitolite \ || fatal "No gitolite. Try: apt-get install gitolite3" @@ -621,7 +614,7 @@ initialize() { fi # Set up temporary install dirs (unless existing dirs were supplied) - for tmpdir in VENV3DIR GOPATH GEMHOME PERLINSTALLBASE R_LIBS + for tmpdir in VENV3DIR GOPATH GEMHOME R_LIBS do if [[ -z "${!tmpdir}" ]]; then eval "$tmpdir"="$temp/$tmpdir" @@ -633,9 +626,6 @@ initialize() { rm -vf "${WORKSPACE}/tmp/*.log" - export PERLINSTALLBASE - export PERL5LIB="$PERLINSTALLBASE/lib/perl5${PERL5LIB:+:$PERL5LIB}" - export R_LIBS export GOPATH @@ -711,6 +701,9 @@ do_test() { apps/workbench_units | apps/workbench_functionals | apps/workbench_integration) suite=apps/workbench ;; + services/workbench2_units | services/workbench2_integration) + suite=services/workbench2 + ;; *) suite="${1}" ;; @@ -725,7 +718,7 @@ do_test() { stop_services check_arvados_config "$1" ;; - gofmt | doc | lib/cli | lib/cloud/azure | lib/cloud/ec2 | lib/cloud/cloudtest | lib/cmd | lib/dispatchcloud/sshexecutor | lib/dispatchcloud/worker) + gofmt | doc | lib/cli | lib/cloud/azure | lib/cloud/ec2 | lib/cloud/cloudtest | lib/cmd | lib/dispatchcloud/sshexecutor | lib/dispatchcloud/worker | services/workbench2_units | services/workbench2_integration | services/workbench2) check_arvados_config "$1" # don't care whether services are running ;; @@ -928,17 +921,12 @@ install_sdk/R() { fi } -install_sdk/perl() { - cd "$WORKSPACE/sdk/perl" \ - && perl Makefile.PL INSTALL_BASE="$PERLINSTALLBASE" \ - && make install INSTALLDIRS=perl -} - install_sdk/cli() { install_gem arvados-cli sdk/cli } install_services/login-sync() { + install_gem arvados sdk/ruby install_gem arvados-login-sync services/login-sync } @@ -1011,6 +999,11 @@ install_apps/workbench() { && RAILS_ENV=test RAILS_GROUPS=assets "$bundle" exec rake npm:install } +install_services/workbench2() { + cd "$WORKSPACE/services/workbench2" \ + && make yarn-install ARVADOS_DIRECTORY="${WORKSPACE}" +} + test_doc() { ( set -e @@ -1061,6 +1054,19 @@ test_services/login-sync() { && "$bundle" exec rake test TESTOPTS=-v ${testargs[services/login-sync]} } +test_services/workbench2_units() { + cd "$WORKSPACE/services/workbench2" && make unit-tests ARVADOS_DIRECTORY="${WORKSPACE}" WORKSPACE="$(pwd)" ${testargs[services/workbench2]} +} + +test_services/workbench2_integration() { + cd "$WORKSPACE/services/workbench2" && make integration-tests-in-docker ARVADOS_DIRECTORY="${WORKSPACE}" WORKSPACE="$(pwd)" ${testargs[services/workbench2]} +} + +test_services/workbench2() { + test_services/workbench2_units + test_services/workbench2_integration +} + test_apps/workbench_units() { local TASK="test:units" cd "$WORKSPACE/apps/workbench" \ @@ -1096,7 +1102,6 @@ install_deps() { do_install env do_install cmd/arvados-server go do_install sdk/cli - do_install sdk/perl do_install sdk/python pip "${VENV3DIR}/bin/" do_install sdk/ruby do_install services/api @@ -1109,7 +1114,6 @@ install_all() { do_install doc do_install sdk/ruby do_install sdk/R - do_install sdk/perl do_install sdk/cli do_install services/login-sync for p in "${pythonstuff[@]}" @@ -1125,6 +1129,7 @@ install_all() { done do_install services/api do_install apps/workbench + do_install services/workbench2 } test_all() { @@ -1162,6 +1167,7 @@ test_all() { do_test apps/workbench_integration do_test apps/workbench_benchmark do_test apps/workbench_profile + do_test services/workbench2 } test_go() {