~sircmpwn/ctools

ref: 16cab053e27d4a7046c005b5becae9b0564d8211 ctools/test/true -rwxr-xr-x 183 bytes
16cab053 — Christopher Vittal Make test scripts POSIX compliant 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
tool="true"
. "$HARNESS"

should_return_zero() {
	true
}

should_return_zero_w_flags() {
	true -a 123 foobar
}

runtests \
	should_return_zero \
	should_return_zero_w_flags