sed (490B)
- #!/usr/bin/env atf-sh
- # Copyright © 2021 Haelwenn (lanodan) Monnier <contact+system-testsuite@hacktivis.me>
- # SPDX-License-Identifier: BSD-3-Clause
- atf_test_case pcmd
- pcmd_body() {
- atf_check -o 'file:sed_bre_addr.fixture' sed -n p sed_bre_addr.fixture
- }
- atf_test_case brepcmd
- brepcmd_body() {
- atf_check -o 'inline:line2
- line3
- line4
- ' sed -n '/line2/,/line4/p' sed_bre_addr.fixture
- }
- atf_init_test_cases() {
- cd "$(atf_get_srcdir)"
- atf_add_test_case pcmd
- atf_add_test_case brepcmd
- }