-
Notifications
You must be signed in to change notification settings - Fork 537
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #481 from ChIoT-Tech/master
- Loading branch information
Showing
7 changed files
with
80 additions
and
16 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
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,9 +1,22 @@ | ||
@ECHO OFF | ||
REM Windows CMD file to run golang Paho tests with docker mosquitto instance | ||
cls | ||
:start | ||
docker-compose up -d | ||
REM Docker for windows does not support publishing to 127.0.0.1 so set the address for the tests to use. | ||
set TEST_FVT_ADDR=0.0.0.0 | ||
go test -v ../../ | ||
REM `--count 1` prevents the system from using cached results. Note that running the tests multiple times may fail | ||
REM because the broker state will not be as expected | ||
go test --count 1 -v ../../ | ||
rem go test -race -v ../../ | ||
docker-compose down | ||
IF ERRORLEVEL 1 GOTO failed | ||
GOTO successful | ||
|
||
:failed | ||
docker-compose down | ||
echo "Error" | ||
exit | ||
|
||
:successful | ||
docker-compose down | ||
REM goto start |
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