logo

system-testsuite

Unix system testsuite (highlights broken bits in GNU and BusyBox)

sed (490B)


  1. #!/usr/bin/env atf-sh
  2. # Copyright © 2021 Haelwenn (lanodan) Monnier <contact+system-testsuite@hacktivis.me>
  3. # SPDX-License-Identifier: BSD-3-Clause
  4. atf_test_case pcmd
  5. pcmd_body() {
  6. atf_check -o 'file:sed_bre_addr.fixture' sed -n p sed_bre_addr.fixture
  7. }
  8. atf_test_case brepcmd
  9. brepcmd_body() {
  10. atf_check -o 'inline:line2
  11. line3
  12. line4
  13. ' sed -n '/line2/,/line4/p' sed_bre_addr.fixture
  14. }
  15. atf_init_test_cases() {
  16. cd "$(atf_get_srcdir)"
  17. atf_add_test_case pcmd
  18. atf_add_test_case brepcmd
  19. }