From f5f35e8b716040c41f8844e5c988d52f4b93b311 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 26 Sep 2023 13:27:30 -0400 Subject: tests/lib/ob_reduce_deps.sh: Trailing operators --- (limited to 'tests/lib') diff --git a/tests/lib/ob_reduce_deps.sh b/tests/lib/ob_reduce_deps.sh index b1e8609..72f32dd 100755 --- a/tests/lib/ob_reduce_deps.sh +++ b/tests/lib/ob_reduce_deps.sh @@ -22,7 +22,7 @@ set -eu . "${TOP_SRCDIR}/tests/aux/tap-functions.sh" . "${TOP_BUILDDIR}/lib/libopkbuild.${SHSOEXT}.${LIBOPKBUILD_SHSOVERSION}" -plan_ 11 +plan_ 13 # Normal and union AND-lists. @@ -83,6 +83,15 @@ command_ok_ \ x'foo, bar' \ ] +command_ok_ \ + 'NORMAL LIST "foo, bar,"' -- \ + [ x"$(ob_reduce_deps \ + -a 'amd64-linux-glibc' \ + 'foo, bar,' \ + )" = \ + x'foo, bar' \ + ] + # Normal OR-lists. command_ok_ \ @@ -112,6 +121,15 @@ command_ok_ \ x'foo | bar' \ ] +command_ok_ \ + 'NORMAL LIST "foo | bar |"' -- \ + [ x"$(ob_reduce_deps \ + -a 'amd64-linux-glibc' \ + 'foo | bar |' \ + )" = \ + x'foo | bar' \ + ] + # Normal and union AND-lists with arch specs. command_ok_ \ -- cgit v0.9.1