logo

utils-std

Collection of commonly available Unix tools

logname (411B)


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