From: Aleš Mrázek Date: Thu, 14 Mar 2024 14:49:31 +0000 (+0100) Subject: tests: JSON schema packaging tests X-Git-Tag: v6.0.9~17^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39e45bc40a70fd81ab3205a8ae1fa8420b89efb1;p=thirdparty%2Fknot-resolver.git tests: JSON schema packaging tests --- diff --git a/tests/packaging/interactive/schema.sh b/tests/packaging/interactive/schema.sh new file mode 100755 index 000000000..3ea45d522 --- /dev/null +++ b/tests/packaging/interactive/schema.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +kresctl schema +if [ "$?" -ne "0" ]; then + echo "Failed to generate JSON schema with 'kresctl'" + exit 1 +fi + +kresctl schema --live +if [ "$?" -ne "0" ]; then + echo "Failed to get JSON schema from the running resolver" + exit 1 +fi