-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw error on scenario hash mismatch upon solution submission
- Loading branch information
Showing
8 changed files
with
95 additions
and
34 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
8 changes: 8 additions & 0 deletions
8
tournament/scripts/demo/client/test-cases/local/good-submit.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,8 @@ | ||
#!/bin/bash -ex | ||
|
||
cd $(git rev-parse --show-toplevel) | ||
|
||
tournament/scripts/demo/client/submit.sh \ | ||
localhost:8008 \ | ||
data/scenarios/Challenges/arbitrage.yaml \ | ||
data/scenarios/Challenges/_arbitrage/solution.sw |
13 changes: 13 additions & 0 deletions
13
tournament/scripts/demo/client/test-cases/local/wrong-scenario-cached-solution.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,13 @@ | ||
#!/bin/bash -ex | ||
|
||
# This test cases demonstrates the failure whether or | ||
# not the solutions to both scenarios have already been submitted. | ||
|
||
cd $(git rev-parse --show-toplevel) | ||
|
||
tournament/scripts/demo/client/test-cases/local/good-submit.sh | ||
|
||
tournament/scripts/demo/client/submit.sh \ | ||
localhost:8008 \ | ||
data/scenarios/Challenges/dimsum.yaml \ | ||
data/scenarios/Challenges/_arbitrage/solution.sw |