Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/openlaunchd
Path: blob/master/t/wait4path-test.sh
374 views
1
#!/bin/sh
2
3
describe "wait4path"
4
5
it_shows_usage_by_default() {
6
test "$(runit)" = "usage: ${COMMAND} <object on mount point>"
7
}
8
9
it_exits_for_existing_paths() {
10
output=$(runit wait4path)
11
assert_success $?
12
assert_empty $output
13
}
14
it_exits_for_existing_mounts() {
15
output=$(runit /)
16
assert_success $?
17
assert_empty $output
18
}
19
20
it_should_wait_for_mount() {
21
# mkdir /tmp/foo && mdmfs -s 32m md /tmp/foo
22
true
23
}
24
25
################################################################################
26
27
COMMAND=./wait4path/wait4path
28
source "t/assertions.sh"
29
30