logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git

sleep.sh (354B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. target="$(dirname "$0")/../cmd/sleep"
  5. plans=3
  6. . "$(dirname "$0")/tap.sh"
  7. t --exit=1 noargs '' 'sleep: error: Got a total duration of 0
  8. '
  9. t --exit=1 zero '0' 'sleep: error: Got a total duration of 0
  10. '
  11. t zero-one 0.1 ''