File: test.bats

package info (click to toggle)
charliecloud 0.43-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 3,084 kB
  • sloc: python: 6,021; sh: 4,284; ansic: 3,863; makefile: 598
file content (14 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CH_TEST_TAG=$ch_test_tag
load "$CHTEST_DIR"/common.bash

setup () {
    prerequisites_ok seccomp
}

@test "${ch_tag}/fifos only" {
    ch-run "$ch_img" -- sh -c 'ls -lh /_*'
    # shellcheck disable=SC2016
    ch-run "$ch_img" -- sh -c 'test $(ls /_* | wc -l) == 2'
    ch-run "$ch_img" -- test -p /_mknod_fifo
    ch-run "$ch_img" -- test -p /_mknodat_fifo
}