logname (411B)
- #!/usr/bin/env atf-sh
- # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: MPL-2.0
- atf_test_case environ
- environ_body() {
- test -n "${LOGNAME}" || atf_skip "$LOGNAME not set (wtf)"
- atf_check -o "inline:${LOGNAME}\n" ../cmd/logname
- }
- atf_init_test_cases() {
- cd "$(atf_get_srcdir)" || exit 1
- . ../test_functions.sh
- atf_add_test_case environ
- }