echo (787B)
- #!/usr/bin/env atf-sh
 - # SPDX-FileCopyrightText: 2017-2022 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
 - # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
 - atf_test_case empty
 - empty_body() {
 - atf_check -o "inline:\n" ../bin/echo
 - }
 - atf_test_case hello
 - hello_body() {
 - atf_check -o "inline:hello world\n" ../bin/echo hello world
 - }
 - atf_test_case doubledash
 - doubledash_body() {
 - atf_check -o "inline:-- hello\n" ../bin/echo -- hello
 - }
 - atf_test_case devfull
 - devfull_body() {
 - atf_check -s exit:1 -e 'inline:write(1, buffer, arg_len): No space left on device\n' sh -c '../bin/echo hello world >/dev/full'
 - }
 - atf_init_test_cases() {
 - cd "$(atf_get_srcdir)" || exit 1
 - atf_add_test_case empty
 - atf_add_test_case hello
 - atf_add_test_case doubledash
 - atf_add_test_case devfull
 - }