From ce58a3016e2daae10ac529aa6397f59c0a6fa339 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 21 Apr 2019 23:01:08 -0400 Subject: tests/parse_control.common.sh: Convert to TAP --- diff --git a/tests/local.mk b/tests/local.mk index fd2115a..2920d12 100644 --- a/tests/local.mk +++ b/tests/local.mk @@ -10,7 +10,8 @@ TESTS = $(check_PROGRAMS) tests_parse_control_basic_SOURCES = \ tests/parse_control.basic.sh \ tests/parse_control.common.sh \ - tests/common.sh \ + tests/aux/common.sh \ + tests/aux/tap-functions.sh \ src/output.sh \ src/control.sh tests_parse_control_basic_LDADD = $(tests_parse_control_basic_SOURCES:.sh=.sho) diff --git a/tests/parse_control.common.sh b/tests/parse_control.common.sh index 9eee27b..c8a413c 100644 --- a/tests/parse_control.common.sh +++ b/tests/parse_control.common.sh @@ -38,13 +38,15 @@ para() main() { + plan_ 1 + parse_control - field para "${req_fields}" <<-EOF ${packages} EOF printf 'Required fields: %s\n\n' "${req_fields}" - test_diff "${results}" "${test_results}" + is_diff 'parse_control() paragraphs' "${results}" "${test_results}" return 0 } -- cgit v0.9.1