-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing that parallel execution actually works is a bit difficult, so the most trivial way of doing it is to just have a bunch of sleep tests and make sure that they run faster than would be possible if they were run in serial. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
- Loading branch information
Showing
8 changed files
with
84 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@test "slow test 1" { | ||
sleep 3s | ||
} | ||
|
||
@test "slow test 2" { | ||
sleep 3s | ||
} | ||
|
||
@test "slow test 3" { | ||
sleep 3s | ||
} | ||
|
||
@test "slow test 4" { | ||
sleep 3s | ||
} | ||
|
||
@test "slow test 5" { | ||
sleep 3s | ||
} | ||
|
||
@test "slow test 6" { | ||
sleep 3s | ||
} | ||
|
||
@test "slow test 7" { | ||
sleep 3s | ||
} | ||
|
||
@test "slow test 8" { | ||
sleep 3s | ||
} | ||
|
||
@test "slow test 9" { | ||
sleep 3s | ||
} | ||
|
||
@test "slow test 10" { | ||
sleep 3s | ||
} |
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 @@ | ||
../../bats/parallel.bats |
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 @@ | ||
../../bats/parallel.bats |
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 @@ | ||
../../bats/parallel.bats |
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 @@ | ||
../../bats/parallel.bats |
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