]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Disable test algorithm randomization if Python is missing
authorTom Krizek <tkrizek@isc.org>
Wed, 16 Nov 2022 14:55:16 +0000 (15:55 +0100)
committerTom Krizek <tkrizek@isc.org>
Fri, 23 Dec 2022 11:37:46 +0000 (12:37 +0100)
This change is motivated by the fact that our Windows CI image doesn't
have a Python interpreter.

bin/tests/system/conf.sh.common

index 97afbfec17bccae54b365d0bc0f71fa5177659f2..868bcfc351ade1b35b6d7376f75be8a339b82f5c 100644 (file)
@@ -305,7 +305,20 @@ send() {
 # There are multiple algoritms sets to choose from (see get_algorithms.py). To
 # override the default choice, set the ALGORITHM_SET env var (see mkeys system
 # test for example).
-eval "$($PYTHON "$TOP_SRCDIR/bin/tests/system/get_algorithms.py")"
+if test -x "$PYTHON"; then
+    eval "$($PYTHON "$TOP_SRCDIR/bin/tests/system/get_algorithms.py")"
+else
+    # 9.16 workaround for our Windows CI which lacks Python
+    DEFAULT_ALGORITHM=ECDSAP256SHA256
+    DEFAULT_ALGORITHM_NUMBER=13
+    DEFAULT_BITS=256
+    ALTERNATIVE_ALGORITHM=RSASHA256
+    ALTERNATIVE_ALGORITHM_NUMBER=8
+    ALTERNATIVE_BITS=1280
+    DISABLED_ALGORITHM=ECDSAP384SHA384
+    DISABLED_ALGORITHM_NUMBER=14
+    DISABLED_BITS=384
+fi
 
 # Default HMAC algorithm.
 export DEFAULT_HMAC=hmac-sha256