time.t (628B)
- #!/usr/bin/env cram
- # SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: MPL-2.0
- $ cd $TESTDIR/../cmd
- $ ./time
- Usage: time command [argument ...]
- $ ./time -f
- time: Error: Unrecognised option: '-f'
- Usage: time command [argument ...]
- [1]
- $ ./time /var/empty/e/no/ent
- time: execvp: No such file or directory
- real 0.[0-9]* (re)
- user 0.[0-9]* (re)
- sys 0.[0-9]* (re)
- [127]
- $ ./time false
- real 0.[0-9]* (re)
- user 0.[0-9]* (re)
- sys 0.[0-9]* (re)
- [1]
- $ ./time true
- real 0.[0-9]* (re)
- user 0.[0-9]* (re)
- sys 0.[0-9]* (re)