File: test-basic_run.sh

package info (click to toggle)
libfiu 1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 768 kB
  • sloc: ansic: 2,633; python: 973; makefile: 599; sh: 309
file content (21 lines) | stat: -rwxr-xr-x 499 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

set -ex

# Very basic test, nothing enabled.
./wrap fiu-run true

# Same as above, but including the posix preloader.
./wrap fiu-run -x true

# Now with an unused failure point.
./wrap fiu-run -c "enable name=p1" true

# open() failure.
( ! ./wrap fiu-run -x -c "enable name=posix/io/oc/open" cat /dev/null )

# Deprecated option: -e.
( ! ./wrap fiu-run -x -e "posix/io/oc/open" cat /dev/null )

# Deprecated option: -p.
( ! ./wrap fiu-run -x -e "posix/io/oc/open" -p 1 cat /dev/null )