]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
CI FreeBSD: Enable radclient tests
authorTerry Burton <tez@terryburton.co.uk>
Thu, 6 Jan 2022 20:21:23 +0000 (20:21 +0000)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 7 Jan 2022 14:29:20 +0000 (09:29 -0500)
.github/workflows/ci-freebsd.yml
src/tests/radclient/all.mk

index cf0c93819ec4521341c90c099f01182f9be7510d..71b7c79fc21a431c34afb80917228b2ad7422527 100644 (file)
@@ -87,8 +87,6 @@ jobs:
           cd freeradius
           ./configure
           gmake -j `sysctl -n hw.ncpu`
-          # Failing with: Failed to send packet for ID 123: udp_send failed: EINVAL: Invalid argument
-          echo 'test.radclient:' > src/tests/radclient/all.mk
           gmake test
 
     #
index bc6d25a5d14e40aa2602421a1695f2d3c0d7df80..2d1428291842c0b3e0483fd49a01d3aaf4775993 100644 (file)
@@ -55,9 +55,10 @@ $(OUTPUT)/%: $(DIR)/% | $(TEST).radiusd_kill $(TEST).radiusd_start
                fi;                                                                 \
        fi
 #
-#      Lets normalize the loopback interface on OSX
+#      Lets normalize the loopback interface on OSX and FreeBSD
 #
        $(Q)if [ "$$(uname -s)" = "Darwin" ]; then sed -i .bak 's/via lo0/via lo/g' $(FOUND); fi
+       $(Q)if [ "$$(uname -s)" = "FreeBSD" ]; then sed -i .bak 's/via (null)/via lo/g' $(FOUND); fi
 #
 #      Remove all entries with "^_EXIT.*CALLED .*/"
 #      It is necessary to match all builds with/without -DNDEBUG