#!/bin/sh12describe "wait4path"34it_shows_usage_by_default() {5test "$(runit)" = "usage: ${COMMAND} <object on mount point>"6}78it_exits_for_existing_paths() {9output=$(runit wait4path)10assert_success $?11assert_empty $output12}13it_exits_for_existing_mounts() {14output=$(runit /)15assert_success $?16assert_empty $output17}1819it_should_wait_for_mount() {20# mkdir /tmp/foo && mdmfs -s 32m md /tmp/foo21true22}2324################################################################################2526COMMAND=./wait4path/wait4path27source "t/assertions.sh"282930