logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

time.t (628B)


  1. #!/usr/bin/env cram
  2. # SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. $ cd $TESTDIR/../cmd
  5. $ ./time
  6. Usage: time command [argument ...]
  7. $ ./time -f
  8. time: Error: Unrecognised option: '-f'
  9. Usage: time command [argument ...]
  10. [1]
  11. $ ./time /var/empty/e/no/ent
  12. time: execvp: No such file or directory
  13. real 0.[0-9]* (re)
  14. user 0.[0-9]* (re)
  15. sys 0.[0-9]* (re)
  16. [127]
  17. $ ./time false
  18. real 0.[0-9]* (re)
  19. user 0.[0-9]* (re)
  20. sys 0.[0-9]* (re)
  21. [1]
  22. $ ./time true
  23. real 0.[0-9]* (re)
  24. user 0.[0-9]* (re)
  25. sys 0.[0-9]* (re)