-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
121 changed files
with
5,307 additions
and
621 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash -e | ||
|
||
PROJECT_ID=$1 | ||
shift 1 | ||
|
||
SITE_PATH=sites/udmi_site_model | ||
DEVICE_ID=AHU-1 | ||
|
||
PUBBER_OUT=/tmp/pubber.log | ||
SEQUENCER_OUT=/tmp/sequencer.log | ||
RESULTS_OUT=/tmp/test_itemized.out | ||
GOLDEN_FILE=etc/test_itemized.out | ||
|
||
rm -f $RESULTS_OUT $SEQUENCER_OUT $PUBBER_OUT | ||
touch $RESULTS_OUT $SEQUENCER_OUT $PUBBER_OUT | ||
|
||
while read -u 7 action test_name remainder; do | ||
if [[ $action != TEST ]]; then | ||
continue; | ||
fi | ||
pubber_opts=${remainder/RESULT*/} | ||
|
||
echo -n "TEST $test_name $pubber_opts" >> $RESULTS_OUT | ||
echo "TEST $test_name $pubber_opts" | ||
|
||
serial_no=sequencer-$RANDOM | ||
bin/pubber $SITE_PATH $PROJECT_ID $DEVICE_ID $serial_no $pubber_opts > $PUBBER_OUT 2>&1 & | ||
WAITING=60 | ||
for i in `seq 1 $WAITING`; do | ||
if [[ -n $(fgrep "Connection complete" $PUBBER_OUT) ]]; then | ||
break | ||
fi | ||
sleep 1 | ||
done | ||
|
||
if [[ $i -eq $WAITING ]]; then | ||
echo pubber startup failed: | ||
cat $PUBBER_OUT | ||
false | ||
fi | ||
|
||
bin/sequencer $SITE_PATH $PROJECT_ID $DEVICE_ID $serial_no $test_name 2>&1 | tee $SEQUENCER_OUT | ||
|
||
kill $(ps ax | fgrep pubber | fgrep java | awk '{print $1}') | ||
|
||
result=$(grep -E -m 1 "RESULT [a-z]+ $test_name " $SEQUENCER_OUT) | ||
echo ${result/*sequencer RESULT/RESULT} >> $RESULTS_OUT | ||
|
||
sleep 2 | ||
|
||
done 7< $GOLDEN_FILE |
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
File renamed without changes.
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,2 @@ | ||
TEST writeback_success_state noWriteback RESULT fail writeback_success_state timeout waiting for point filter_differential_pressure_setpoint to have value_state applied | ||
TEST writeback_success_apply noPointState RESULT pass writeback_success_apply Sequence complete |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.