logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

false (556B)


  1. #!/usr/bin/env atf-sh
  2. # SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
  4. atf_test_case basic
  5. basic_body() {
  6. atf_check -s exit:1 ../bin/false
  7. }
  8. atf_test_case nohelp
  9. nohelp_body() {
  10. atf_check -s exit:1 ../bin/false --help
  11. }
  12. atf_test_case devfull
  13. devfull_body() {
  14. atf_check -s exit:1 ../bin/false --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. }