logo

utils-std

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

check-libs.sh (456B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. set -o pipefail
  5. WD="$(realpath "$(dirname "$0")")/"
  6. log="${WD}/check-libs.log"
  7. err=0
  8. . "${WD}/check-funcs.sh"
  9. cd "$WD"
  10. rm "$log"
  11. if [ "$#" -gt 0 ]
  12. then
  13. for runner
  14. do
  15. wrap_test "$runner"
  16. done
  17. else
  18. for src in test-lib/*.c
  19. do
  20. runner="${src%.c}"
  21. wrap_test "$runner"
  22. done
  23. fi
  24. [ $err = 0 ] && rm "$log"
  25. exit $err