sleep (525B)
- #!/usr/bin/env atf-sh
- # SPDX-FileCopyrightText: 2017-2023 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: MPL-2.0
- atf_test_case real
- real_body() {
- atf_check -e 'inline:real 1.000000\nuser 0.000000\nsys 0.000000\n' \time -p ../cmd/sleep 1
- }
- atf_test_case decimal
- decimal_body() {
- atf_check -e 'inline:real 0.100000\nuser 0.000000\nsys 0.000000\n' \time -p ../cmd/sleep .1
- }
- atf_init_test_cases() {
- cd "$(atf_get_srcdir)" || exit 1
- atf_add_test_case real
- atf_add_test_case decimal
- }