From c975e6c2fcb7afadecf0371c30073791599c8c81 Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Tue, 24 Apr 2018 16:06:50 +0200 Subject: Update the main script for functional tests. Change-Id: I4042386c180297eb80ed1eb9d280016a7c11a087 --- tests/functional/run_tests.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) mode change 100644 => 100755 tests/functional/run_tests.sh diff --git a/tests/functional/run_tests.sh b/tests/functional/run_tests.sh old mode 100644 new mode 100755 index c5cbabbb..d374d17f --- a/tests/functional/run_tests.sh +++ b/tests/functional/run_tests.sh @@ -1,13 +1,17 @@ #!/usr/bin/env bash -echo "starting Moon Functional Tests" +MOON_HOME=${1:-.} -COMPONENTS="moon_authz, moon_interface, moon_manager, moon_orchestrator, moon_wrapper" +echo "Starting Moon Functional Tests on ${MOON_HOME}" + +cd ${MOON_HOME} + +COMPONENTS="moon_manager moon_wrapper" for dir in ${COMPONENTS}; do echo "Testing component ${dir}" cd ${MOON_HOME}/${dir} - docker run --rm --volume $(pwd):/data wukongsun/moon_forming:latest /bin/bash /root/switch.sh functest + bash ../tests/functional/run_tests_for_component.sh done # TODO: download tests results -- cgit 1.2.3-korg