Skip to content

Commit

Permalink
shm (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-stefanovic authored Apr 13, 2022
1 parent 59106a4 commit 577b777
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Binary file removed tests/shm/shm_1024mb
Binary file not shown.
Binary file removed tests/shm/shm_512mb
Binary file not shown.
6 changes: 6 additions & 0 deletions tests/shm/shm_docker.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
load "../support/bats-support/load"
load "../support/bats-assert/load"

setup() {
curl http://packages.semaphoreci.com/tools/shm_512mb -o ~/toolbox/tests/shm/shm_512mb
curl http://packages.semaphoreci.com/tools/shm_1024mb -o ~/toolbox/tests/shm/shm_1024mb
chmod +x ~/toolbox/tests/shm/shm_*mb
}

@test "shm: write 512MB to shared memory" {
run ~/toolbox/tests/shm/shm_512mb
assert_line --partial "Writing Process: Shared Memory Write: Wrote 536870911 bytes"
Expand Down
6 changes: 6 additions & 0 deletions tests/shm/shm_ubuntu.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
load "../support/bats-support/load"
load "../support/bats-assert/load"

setup() {
curl http://packages.semaphoreci.com/tools/shm_512mb -o ~/toolbox/tests/shm/shm_512mb
curl http://packages.semaphoreci.com/tools/shm_1024mb -o ~/toolbox/tests/shm/shm_1024mb
chmod +x ~/toolbox/tests/shm/shm_*mb
}

@test "shm: write 512MB to shared memory" {
run ~/toolbox/tests/shm/shm_512mb
assert_line --partial "Writing Process: Shared Memory Write: Wrote 536870911 bytes"
Expand Down

0 comments on commit 577b777

Please sign in to comment.