Skip to content

Commit 4401a13

Browse files
committed
Ignoring tests with bash_unit as it is now
1 parent 308c139 commit 4401a13

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This test demonstrates some test skipping logic that
2+
# one can implement with bash_unit
3+
4+
todo_will_always_be_siped() {
5+
fail "This test is always skipped"
6+
}
7+
8+
if uname | grep Linux
9+
then
10+
test_proc_exists() {
11+
assert "ls /proc/" "there should exist /proc on Linux"
12+
}
13+
test_another_test_to_run_only_on_linux() {
14+
assert "mkdir /tmp/foo/bar -p"
15+
}
16+
fi
17+
18+
test_that_always_run() {
19+
assert true
20+
}
21+
22+
if uname | grep Darwin
23+
then
24+
test_proc_does_not_exist() {
25+
assert_fail "ls /proc/" "there should not exist /proc on Darwin"
26+
}
27+
test_another_test_to_run_only_on_darwin() {
28+
assert "mkdir -p /tmp/foo/bar"
29+
}
30+
fi

0 commit comments

Comments
 (0)