diff --git a/tests/shm/shm_1024mb b/tests/shm/shm_1024mb deleted file mode 100755 index d426b829..00000000 Binary files a/tests/shm/shm_1024mb and /dev/null differ diff --git a/tests/shm/shm_512mb b/tests/shm/shm_512mb deleted file mode 100755 index f95257a5..00000000 Binary files a/tests/shm/shm_512mb and /dev/null differ diff --git a/tests/shm/shm_docker.bats b/tests/shm/shm_docker.bats index b01c0d0e..9c2738e7 100644 --- a/tests/shm/shm_docker.bats +++ b/tests/shm/shm_docker.bats @@ -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" diff --git a/tests/shm/shm_ubuntu.bats b/tests/shm/shm_ubuntu.bats index b01c0d0e..9c2738e7 100644 --- a/tests/shm/shm_ubuntu.bats +++ b/tests/shm/shm_ubuntu.bats @@ -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"