From 467ef5c6da7b71249b166f63aaeab5a4b0566d03 Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Sat, 11 Dec 2021 20:13:18 +0000 Subject: [PATCH] Add `v4ip`, `v6ip` and `x6ip` unit test Signed-off-by: Richard T Bonhomme --- easytls-unit-tests.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/easytls-unit-tests.sh b/easytls-unit-tests.sh index 97a08cd..393d8fa 100755 --- a/easytls-unit-tests.sh +++ b/easytls-unit-tests.sh @@ -789,6 +789,21 @@ DBUG_DIR="$WORK_DIR/et-tdir1/easytls/metadata" "$EASYTLS_CMD" $EASYTLS_OPTS $TEST_CMD || \ fail "Unit test error 72: $TEST_CMD" + print "------------------------------------------------------------" + print "$EASYTLS_CMD $EASYTLS_OPTS version" + "$EASYTLS_CMD" $EASYTLS_OPTS v4ip '1.2.3.0/24' || \ + fail "Unit test error 71: version" + + print "------------------------------------------------------------" + print "$EASYTLS_CMD $EASYTLS_OPTS version" + "$EASYTLS_CMD" $EASYTLS_OPTS v6ip '2000::1:2:3:4/64' || \ + fail "Unit test error 71: version" + + print "------------------------------------------------------------" + print "$EASYTLS_CMD $EASYTLS_OPTS version" + "$EASYTLS_CMD" $EASYTLS_OPTS x6ip '2000:1:2:3:4::/80' || \ + fail "Unit test error 71: version" + print "------------------------------------------------------------" print "$EASYTLS_CMD $EASYTLS_OPTS version" "$EASYTLS_CMD" $EASYTLS_OPTS version || \