-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chromaway/ngcccbase#67: chromaway/ngcccbase#105: system tests.
also much better startup scripts.
- Loading branch information
Showing
8 changed files
with
88 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.vagrant/ | ||
stack/system-tests.properties |
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,14 @@ | ||
#!/bin/bash | ||
|
||
FILE=stack/system-tests.properties | ||
|
||
echo enabling system tests | ||
echo to turn off, delete this file: $FILE | ||
|
||
cat >"$FILE" <<END | ||
#use "yes" or "no" | ||
SYSTEM_TESTS_ENABLED=yes | ||
END | ||
|
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,4 @@ | ||
#!/bin/bash | ||
|
||
vagrant ssh -c './run-system-tests.sh' | ||
|
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,34 @@ | ||
#!/bin/bash | ||
|
||
SYSTEM_TESTS_ENABLED=no | ||
|
||
[[ -r system-tests.properties ]] && source system-tests.properties | ||
|
||
if [[ "$SYSTEM_TESTS_ENABLED" = "yes" ]]; then | ||
echo system tests are enabled | ||
else | ||
echo system tests are disabled | ||
exit 0 | ||
fi | ||
|
||
function failure() { | ||
echo SYSTEM TESTS FAILED: $@ | ||
exit 1 | ||
} | ||
|
||
echo add_color_set | ||
curl --silent 'http://localhost:2750/add_color_set/obc:d6bb09f56243f0e43094aa44f48d42f773763ee411bee8e1e4faa9ac03157056:0:0,obc:b1586cd10b32f78795b86e9a3febe58dcb59189175fad884a7f4a6623b77486e:0:0/orange,yellow' | | ||
grep --quiet 'd2c626205c7e6576230beb705536b6b1bd46aa3bdfd61cbcb51b8e9eba525556' || | ||
failure 'add_color_set expected to see d2c6' | ||
|
||
echo get_color_set | ||
curl --silent 'http://localhost:2750/get_color_set/d2c626205c7e6576230beb705536b6b1bd46aa3bdfd61cbcb51b8e9eba525556' | | ||
grep --quiet 'd6bb09f56243f0e43094aa44f48d42f773763ee411bee8e1e4faa9ac03157056' || | ||
failure 'get_color_set d2c6 expected to see d6bb' | ||
|
||
|
||
|
||
echo SYSTEM TESTS SUCCEEDED | ||
|
||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/bash | ||
|
||
echo you must hit CTRL-C *twice* to exit | ||
|
||
exec vagrant ssh -c 'tail -f ~/startup-watcher.txt' | ||
|