|
@@ -3,6 +3,24 @@
|
|
|
echo "Test 02: 2 compilations dans le même dossier, projets différents"
|
|
|
echo "Les deux doivent correctement se dérouler"
|
|
|
|
|
|
+if test "$TRAVIS" = "true";
|
|
|
+then
|
|
|
+ URL_FILE=url_test.pub.txt
|
|
|
+else
|
|
|
+ URL_FILE=url_test.priv.txt
|
|
|
+fi
|
|
|
+
|
|
|
+if test -r "$URL_FILE";
|
|
|
+then
|
|
|
+ URL_BASE=$(head -n1 "$URL_FILE")
|
|
|
+ URL_GARDE=$(tail -n1 "$URL_FILE")
|
|
|
+else
|
|
|
+ echo "'$URL_FILE' introuvable"
|
|
|
+ exit 1
|
|
|
+fi
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
# pids conserve la liste des pids
|
|
|
# retcode conserve le code retour de chaque pid une fois terminé
|
|
|
handle_child() {
|
|
@@ -28,15 +46,15 @@ trap "handle_child" CHLD
|
|
|
./cocktail -v \
|
|
|
-d MonDossier \
|
|
|
-p Abro2 \
|
|
|
- -b 'https%3A%2F%2Fpad.exegetes.eu.org%2Fp%2Fg.DSXI1kGFT1gjor66%24Abro-REP-Tele2-Principal%2Fexport%2Ftxt' \
|
|
|
- -g 'https%3A%2F%2Fpad.exegetes.eu.org%2Fp%2Fg.DSXI1kGFT1gjor66%24Abro-REP-Tele2-Garde%2Fexport%2Ftxt' &
|
|
|
+ -b "$URL_BASE" \
|
|
|
+ -g "$URL_GARDE" &
|
|
|
pids+=($!)
|
|
|
|
|
|
./cocktail -v \
|
|
|
-d MonDossier \
|
|
|
-p Abro3 \
|
|
|
- -b 'https%3A%2F%2Fpad.exegetes.eu.org%2Fp%2Fg.DSXI1kGFT1gjor66%24Abro-REP-Tele2-Principal%2Fexport%2Ftxt' \
|
|
|
- -g 'https%3A%2F%2Fpad.exegetes.eu.org%2Fp%2Fg.DSXI1kGFT1gjor66%24Abro-REP-Tele2-Garde%2Fexport%2Ftxt' &
|
|
|
+ -b "$URL_BASE" \
|
|
|
+ -g "$URL_GARDE" &
|
|
|
pids+=($!)
|
|
|
|
|
|
# Wait until all background processes are stopped
|