-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix two build-breaking issues introduced in [1]. * Update Dockerfile for new integration tests * alpine doesn't have bash; make integration tests use sh * stdout line endings on Windows contain CRLF References 1. 7c419a7 "ci, sample: add tests for child processes"
- Loading branch information
Showing
8 changed files
with
73 additions
and
69 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 was deleted.
Oops, something went wrong.
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/sh | ||
|
||
set -e | ||
|
||
# close standard input to ignore it | ||
exec 0>/dev/null | ||
|
||
[ "$SAMEDEC_RATE" = "22050" ] | ||
[ "$SAMEDEC_EVENT" = "Practice/Demo Warning" ] | ||
[ "$SAMEDEC_ORG" = "EAS" ] | ||
[ "$SAMEDEC_SIGNIFICANCE" = "W" ] | ||
[ "$SAMEDEC_LOCATIONS" = "372088 091724 919623 645687 745748 175234 039940 955869 091611 304171 931612 334828 179485 569615 809223 830187 611340 014693 472885 084645 977764 466883 406863 390018 701741 058097 752790 311648 820127 255900 581947" ] | ||
[ "$SAMEDEC_ISSUETIME" = "$SAMEDEC_PURGETIME" ] | ||
|
||
echo "+OK" |
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# close standard input to ignore it | ||
exec 0>/dev/null | ||
|
||
[ "$SAMEDEC_EVENT" = "National Periodic Test" ] | ||
[ "$SAMEDEC_ORG" = "PEP" ] | ||
[ "$SAMEDEC_SIGNIFICANCE" = "T" ] | ||
[ "$SAMEDEC_LOCATIONS" = "000000" ] | ||
|
||
lifetime=$(( SAMEDEC_PURGETIME - SAMEDEC_ISSUETIME)) | ||
[ "$lifetime" -eq $(( 30*60 )) ] | ||
|
||
echo "+OK" |
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 was deleted.
Oops, something went wrong.
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/sh | ||
|
||
set -e | ||
|
||
# close standard input to ignore it | ||
exec 0>/dev/null | ||
|
||
[ "$SAMEDEC_EVENT" = "Severe Thunderstorm Warning" ] | ||
[ "$SAMEDEC_ORIGINATOR" = "Weather Service" ] | ||
[ "$SAMEDEC_SIGNIFICANCE" = "W" ] | ||
|
||
lifetime=$(( SAMEDEC_PURGETIME - SAMEDEC_ISSUETIME)) | ||
[ "$lifetime" -eq $(( 1*60*60 + 30*60 )) ] | ||
|
||
echo "+OK" |