diff options
author | baude <bbaude@redhat.com> | 2018-02-02 19:05:23 -0600 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-05 20:17:37 +0000 |
commit | 3609b82fe6f5fe268cdbe9f8aba43140c4e81f90 (patch) | |
tree | 885ee7015b2f15ce20cdff768b3468ff4c0ad492 /test/podman_run_cpu.bats | |
parent | 1ac11dcf8423575f4e5f5f758b8989cf3fcc389b (diff) | |
download | podman-3609b82fe6f5fe268cdbe9f8aba43140c4e81f90.tar.gz podman-3609b82fe6f5fe268cdbe9f8aba43140c4e81f90.tar.bz2 podman-3609b82fe6f5fe268cdbe9f8aba43140c4e81f90.zip |
Migrate diff, exec, export, and history to ginkgo
Migrate the diff, exec, export, and history bats tests to
the ginkgo test suite.
Signed-off-by: baude <bbaude@redhat.com>
Closes: #287
Approved by: baude
Diffstat (limited to 'test/podman_run_cpu.bats')
-rw-r--r-- | test/podman_run_cpu.bats | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/test/podman_run_cpu.bats b/test/podman_run_cpu.bats deleted file mode 100644 index ebd411b41..000000000 --- a/test/podman_run_cpu.bats +++ /dev/null @@ -1,71 +0,0 @@ -#!/usr/bin/env bats - -load helpers - -function teardown() { - cleanup_test -} - -function setup() { - copy_images -} - -@test "run cpu-period test" { - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run --rm --cpu-period=5000 ${ALPINE} cat /sys/fs/cgroup/cpu/cpu.cfs_period_us | tr -d '\r'" - echo $output - [ "$status" -eq 0 ] - [ "$output" = 5000 ] -} - -@test "run cpu-quota test" { - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run --rm --cpu-quota=5000 ${ALPINE} cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us | tr -d '\r'" - echo "$output" - [ "$status" -eq 0 ] - [ "$output" = 5000 ] -} - -@test "run cpus test" { - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run --rm --cpus=0.5 ${ALPINE} cat /sys/fs/cgroup/cpu/cpu.cfs_period_us | tr -d '\r'" - echo "$output" - [ "$status" -eq 0 ] - [ "$output" = 100000 ] - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run --rm --cpus=0.5 ${ALPINE} cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us | tr -d '\r'" - echo "$output" - [ "$status" -eq 0 ] - [ "$output" = 50000 ] -} - -@test "run cpu-shares test" { - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run --rm --cpu-shares=2 ${ALPINE} cat /sys/fs/cgroup/cpu/cpu.shares | tr -d '\r'" - echo "$output" - [ "$status" -eq 0 ] - [ "$output" = 2 ] -} - -@test "run cpuset-cpus test" { - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run --rm --cpuset-cpus=0 ${ALPINE} cat /sys/fs/cgroup/cpuset/cpuset.cpus | tr -d '\r'" - echo "$output" - [ "$status" -eq 0 ] - [ "$output" = 0 ] -} - -@test "run cpuset-mems test" { - run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} run --rm --cpuset-mems=0 ${ALPINE} cat /sys/fs/cgroup/cpuset/cpuset.mems | tr -d '\r'" - echo "$output" - [ "$status" -eq 0 ] - [ "$output" = 0 ] -} - -@test "run failure if cpus and cpu-period set together test" { - # skip, error code incorrect with bash -c and will fail centos test without bash -c - run ${PODMAN_BINARY} ${PODMAN_OPTIONS} run --rm --cpu-period=5000 --cpus=0.5 ${ALPINE} /bin/bash - echo "$output" - [ "$status" -ne 0 ] -} - -@test "run failure if cpus and cpu-quota set together test" { - # skip, error code incorrect with bash -c and will fail centos test without bash -c - run ${PODMAN_BINARY} ${PODMAN_OPTIONS} run --rm --cpu-quota=5000 --cpus=0.5 ${ALPINE} /bin/bash - echo "$output" - [ "$status" -ne 0 ] -} |