uname (601B)
- #!/usr/bin/env atf-sh
- # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: MPL-2.0
- atf_test_case noargs
- noargs_body() {
- atf_check -o "inline:$(uname -s)\n" ../cmd/uname
- }
- atf_test_case all
- all_body() {
- atf_check -o "inline:$(uname -s) $(uname -n) $(uname -r) $(uname -v) $(uname -m)\n" ../cmd/uname -a
- }
- atf_test_case sysname
- sysname_body() {
- atf_check -o "inline:$(uname -s)\n" ../cmd/uname -s
- }
- atf_init_test_cases() {
- cd "$(atf_get_srcdir)" || exit 1
- atf_add_test_case noargs
- atf_add_test_case all
- atf_add_test_case sysname
- }