logo

utils-std

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

install.sh (600B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. plans=10
  5. WD="$(dirname "$0")"
  6. target="${WD}/../cmd/install"
  7. . "${WD}/tap.sh"
  8. env > foo
  9. mkdir bar
  10. t destnamed 'foo bar/foo_named' ''
  11. t_cmd destnamed_cmp '' cmp foo bar/foo_named
  12. t dir 'foo bar/' ''
  13. t_cmd dir_cmp '' cmp foo bar/foo
  14. t mode '-m755 foo bar/exe' ''
  15. t_cmd mode_test '' test -x bar/exe
  16. t createdirs '-D foo bar/baz/foo'
  17. t_cmd createdirs_cmp '' cmp foo bar/baz/foo
  18. t makedirs '-d bar/makedirs'
  19. t_cmd makedirs_test '' test -d bar/makedirs
  20. rm -r foo bar