-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
6 changed files
with
96 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
success=0 | ||
failure=0 | ||
total=0 | ||
mkdir -p ~/.devon | ||
touch ~/.devon/.license.agreement | ||
rm -rf integration-test | ||
mkdir -p integration-test | ||
cd integration-test | ||
for testpath in "$(dirname $0)"/test-* | ||
do | ||
testcase="${testpath/*\//}" | ||
echo "Running test #${total}: ${testcase}" | ||
mkdir "${testcase}" | ||
cd "${testcase}" | ||
"${testpath}" | ||
result=${?} | ||
if [ "${result}" == 0 ] | ||
then | ||
echo "[SUCCESS] Succeeded running test #${total}: ${testcase}" | ||
let "success++" | ||
else | ||
echo "[ERROR] Failed running test #${total}: ${testcase} - exit code ${result}" | ||
let "failure++" | ||
fi | ||
let "total++" | ||
cd .. | ||
done | ||
echo | ||
echo "*****************************************************" | ||
echo "Executed #${total} test(s), #${success} succeeded and #${failure} failed" | ||
if [ "${failure}" == 0 ] | ||
then | ||
echo "All test succeeded. Fine!" | ||
else | ||
echo "There are test failures! Please check the logs and fix errors." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
function doExtract() { | ||
if [ -f "${1}" ] | ||
then | ||
tar xfz "${1}" || exit 1 | ||
else | ||
echo "Could not find and extract release ${1}" | ||
exit 1 | ||
fi | ||
} | ||
|
||
doExtract ../../devon-ide-scripts-*.tar.gz | ||
./setup "-" | ||
exit ${?} |