JIRA: TRNSPRTPCE-482
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I71038c8c51719158694167e95c26833978d0ff86
--- /dev/null
+#!/bin/sh
+
+if [ -z "$USE_ODL_ALT_KARAF_INSTALL_DIR" ]; then
+ exit
+fi
+
+cd $(dirname $0)
+
+if [ -f ../"$USE_ODL_ALT_KARAF_INSTALL_DIR"/target/assembly/bin/karaf_ ]; then
+ exit
+fi
+
+. ./reflectwarn.sh
+cd ../$USE_ODL_ALT_KARAF_INSTALL_DIR
+mvn clean install -B -q -s ../tests/odl_settings.xml -DskipTests -Dmaven.javadoc.skip=true
+./target/assembly/ressources/post_install_for_tests.sh
#!/bin/sh
+if [ "$USE_LIGHTY" != "True" ]; then
+ ./build_karaf_for_tests.sh
+fi
+
for arg in $@; do
if [ -z "$test_suite" ]; then
test_suite=$1
sh -c "mv ../olm/src/main/java/org/opendaylight/transportpce/olm/util/OlmUtils.java_ ../olm/src/main/java/org/opendaylight/transportpce/olm/util/OlmUtils.java"
#patch Karaf exec for the same reason at runtime and also to have the possibility to use alternative ports
sh -c "../karaf/target/assembly/ressources/post_install_for_tests.sh"
- sh -c 'if [ "$USE_LIGHTY" != "True" ]; then . $PWD/reflectwarn.sh && (for suffix in 121 221 71; do cd ../"karaf$suffix"/; mvn clean install -B -q -s ../tests/odl_settings.xml -DskipTests -Dmaven.javadoc.skip=true; ./target/assembly/ressources/post_install_for_tests.sh;done) ; fi'
#build Lighty if needed
sh -c 'if [ "$USE_LIGHTY" = "True" ]; then (cd ../lighty && ./build.sh); fi'