logo

utils-std

Collection of commonly available Unix tools

true (497B)


  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 basic
  5. basic_body() {
  6. atf_check ../cmd/true
  7. }
  8. atf_test_case nohelp
  9. nohelp_body() {
  10. atf_check ../cmd/true --help
  11. }
  12. atf_test_case devfull
  13. devfull_body() {
  14. atf_check ../cmd/true --help >/dev/full
  15. }
  16. atf_init_test_cases() {
  17. cd "$(atf_get_srcdir)" || exit 1
  18. atf_add_test_case basic
  19. atf_add_test_case nohelp
  20. atf_add_test_case devfull
  21. }