Update the main script for functional tests. 79/56379/1
authorThomas Duval <thomas.duval@orange.com>
Tue, 24 Apr 2018 14:06:50 +0000 (16:06 +0200)
committerThomas Duval <thomas.duval@orange.com>
Tue, 24 Apr 2018 14:06:50 +0000 (16:06 +0200)
Change-Id: I4042386c180297eb80ed1eb9d280016a7c11a087

tests/functional/run_tests.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index c5cbabb..d374d17
@@ -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