sleep.sh (400B)
- #!/bin/sh
- # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: MPL-2.0
- plans=4
- target="$(dirname "$0")/../cmd/sleep"
- . "$(dirname "$0")/tap.sh"
- t --exit=1 noargs '' 'sleep: error: No duration argument passed
- '
- t --exit=1 zero '0' 'sleep: error: Got a total duration of 0
- '
- t zero-one 0.1 ''
- t_args chainload 'hello' 0.01 printf hello