From 77c337e8ca2428242a4942bb9540fe9852b1da50 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Mon, 30 Nov 2015 22:33:42 +0100 Subject: [PATCH] check number of keys in trustedkeys file --- regression-tests/tests/00dnssec-grabkeys/command | 5 +++++ regression-tests/tests/00dnssec-grabkeys/expected_result | 1 + .../tests/00dnssec-grabkeys/expected_result.dnssec | 1 + 3 files changed, 7 insertions(+) create mode 100644 regression-tests/tests/00dnssec-grabkeys/expected_result.dnssec diff --git a/regression-tests/tests/00dnssec-grabkeys/command b/regression-tests/tests/00dnssec-grabkeys/command index 4f363a2d6..1e0bac73f 100755 --- a/regression-tests/tests/00dnssec-grabkeys/command +++ b/regression-tests/tests/00dnssec-grabkeys/command @@ -17,3 +17,8 @@ done echo "server:" >> unbound-host.conf echo " do-not-query-address: 192.168.0.0/16" >> unbound-host.conf echo ' trust-anchor-file: "trustedkeys"' >> unbound-host.conf + +if [ -e trustedkeys ] +then + cat trustedkeys | wc -l +fi \ No newline at end of file diff --git a/regression-tests/tests/00dnssec-grabkeys/expected_result b/regression-tests/tests/00dnssec-grabkeys/expected_result index e69de29bb..573541ac9 100644 --- a/regression-tests/tests/00dnssec-grabkeys/expected_result +++ b/regression-tests/tests/00dnssec-grabkeys/expected_result @@ -0,0 +1 @@ +0 diff --git a/regression-tests/tests/00dnssec-grabkeys/expected_result.dnssec b/regression-tests/tests/00dnssec-grabkeys/expected_result.dnssec new file mode 100644 index 000000000..f599e28b8 --- /dev/null +++ b/regression-tests/tests/00dnssec-grabkeys/expected_result.dnssec @@ -0,0 +1 @@ +10 -- 2.40.0