From 1ee058d5eab4d1ba2c43ecf28a0ff2181d74c821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 13 Dec 2021 21:47:16 +0100 Subject: [PATCH] Add more testcases for stricter configuration parsing --- test/Makefile.am | 4 +++- test/test-0102.sh | 5 +++++ test/test-0103.sh | 5 +++++ test/test-0104.sh | 19 +++++++++++++++++++ test/test-0105.sh | 25 +++++++++++++++++++++++++ test/test-config.104.in | 8 ++++++++ test/test-config.105.in | 8 ++++++++ 7 files changed, 73 insertions(+), 1 deletion(-) create mode 100755 test/test-0104.sh create mode 100755 test/test-0105.sh create mode 100644 test/test-config.104.in create mode 100644 test/test-config.105.in Index: logrotate-3.18.1/test/Makefile.am =================================================================== --- logrotate-3.18.1.orig/test/Makefile.am +++ logrotate-3.18.1/test/Makefile.am @@ -91,7 +91,9 @@ TEST_CASES = \ test-0100.sh \ test-0101.sh \ test-0102.sh \ - test-0103.sh + test-0103.sh \ + test-0104.sh \ + test-0105.sh EXTRA_DIST = \ compress \ Index: logrotate-3.18.1/test/test-0102.sh =================================================================== --- logrotate-3.18.1.orig/test/test-0102.sh +++ logrotate-3.18.1/test/test-0102.sh @@ -14,3 +14,8 @@ if [ $? -eq 0 ]; then echo "No error, but there should be one." exit 3 fi + +checkoutput <