logo

utils-std

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

check-cmds.sh (443B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. WD="$(realpath "$(dirname "$0")")"
  5. log="${WD}/check-cmds.log"
  6. err=0
  7. . "${WD}/check-funcs.sh"
  8. cd "$WD"
  9. rm "$log"
  10. for runner in test-cmd/*.sh
  11. do
  12. [ "$runner" = "test-cmd/tap.sh" ] && continue
  13. [ "$runner" = "test-cmd/init_env.sh" ] && continue
  14. wrap_test "${runner}"
  15. done
  16. [ $err = 0 ] && rm "$log"
  17. exit $err