forked from CampagneLaboratory/NYoSh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-tests.sh
More file actions
executable file
·25 lines (22 loc) · 836 Bytes
/
run-tests.sh
File metadata and controls
executable file
·25 lines (22 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
WORKING_DIR=`pwd`
COPY_BACK_LOCATION=$1
NUM_OF_SUBMITTED_SUITES=0
for fullfile in $(find ./solutions/*/classes_gen -name "*-remote-submit.ext.sh" -print);
do
dir=$(dirname "${fullfile}")
file=$(basename "$fullfile")
cd "${dir}"
echo "Submitting test ${file}"
/bin/bash "${file}" copy-back-location: "$USER@$HOSTNAME:${COPY_BACK_LOCATION}"
echo "Submission completed for ${file}."
NUM_OF_SUBMITTED_SUITES=$((NUM_OF_SUBMITTED_SUITES + 1))
cd "${WORKING_DIR}"
done
#wait until all the plugins reports are copied back from the GOBYWEB_PLUGIN_TEST_RUNNER task
REPORTS_FILES=$(ls -1 ${COPY_BACK_LOCATION} | wc -l)
while [ "$REPORTS_FILES" -ne "$NUM_OF_SUBMITTED_SUITES" ]
do
echo "Waiting for $COPY_BACK_LOCATION"
sleep 10
REPORTS_FILES=$(ls -1 ${COPY_BACK_LOCATION} | wc -l)
done