-
Notifications
You must be signed in to change notification settings - Fork 28
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
1 parent
92ea5f8
commit 59106a4
Showing
6 changed files
with
94 additions
and
2 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
Binary file not shown.
Binary file not shown.
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,20 @@ | ||
#!/usr/bin/env bats | ||
|
||
load "../support/bats-support/load" | ||
load "../support/bats-assert/load" | ||
|
||
@test "shm: write 512MB to shared memory" { | ||
run ~/toolbox/tests/shm/shm_512mb | ||
assert_line --partial "Writing Process: Shared Memory Write: Wrote 536870911 bytes" | ||
assert_line --partial "Writing Process: Complete" | ||
[ $(cat /tmp/system-metrics2 | awk -F "," '{print $4}' | grep -o '[0-9]\+' | sort -n | tail -n 1) -ge 510 ] | ||
run sleep 2 | ||
} | ||
|
||
@test "shm: write 1024MB to shared memory" { | ||
run ~/toolbox/tests/shm/shm_1024mb | ||
assert_line --partial "Writing Process: Shared Memory Write: Wrote 1073741823 bytes" | ||
assert_line --partial "Writing Process: Complete" | ||
[ $(cat /tmp/system-metrics2 | awk -F "," '{print $4}' | grep -o '[0-9]\+' | sort -n | tail -n 1) -ge 1020 ] | ||
run sleep 2 | ||
} |
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,20 @@ | ||
#!/usr/bin/env bats | ||
|
||
load "../support/bats-support/load" | ||
load "../support/bats-assert/load" | ||
|
||
@test "shm: write 512MB to shared memory" { | ||
run ~/toolbox/tests/shm/shm_512mb | ||
assert_line --partial "Writing Process: Shared Memory Write: Wrote 536870911 bytes" | ||
assert_line --partial "Writing Process: Complete" | ||
[ $(cat /tmp/system-metrics2 | awk -F "," '{print $4}' | grep -o '[0-9]\+' | sort -n | tail -n 1) -ge 510 ] | ||
run sleep 2 | ||
} | ||
|
||
@test "shm: write 1024MB to shared memory" { | ||
run ~/toolbox/tests/shm/shm_1024mb | ||
assert_line --partial "Writing Process: Shared Memory Write: Wrote 1073741823 bytes" | ||
assert_line --partial "Writing Process: Complete" | ||
[ $(cat /tmp/system-metrics2 | awk -F "," '{print $4}' | grep -o '[0-9]\+' | sort -n | tail -n 1) -ge 1020 ] | ||
run sleep 2 | ||
} |