false (535B)
- #!/usr/bin/env atf-sh
- # SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- # SPDX-License-Identifier: MPL-2.0
- atf_test_case basic
- basic_body() {
- atf_check -s exit:1 ../cmd/false
- }
- atf_test_case nohelp
- nohelp_body() {
- atf_check -s exit:1 ../cmd/false --help
- }
- atf_test_case devfull
- devfull_body() {
- atf_check -s exit:1 ../cmd/false --help >/dev/full
- }
- atf_init_test_cases() {
- cd "$(atf_get_srcdir)" || exit 1
- atf_add_test_case basic
- atf_add_test_case nohelp
- atf_add_test_case devfull
- }