Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions testing/Scripts/fake-ifconfig-lo
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
#
# Fake the ifconfig command output.
#
echo "\
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 55523 bytes 621508855 (592.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 55523 bytes 621508855 (592.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0"
10 changes: 9 additions & 1 deletion testing/command/install-cluster-backend-zeromq-ipv6.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# @TEST-DOC: Test using IPv6 addresses enabled the Cluster::Backend::ZeroMQ::ipv6 option.
#
# @TEST-EXEC: bash %INPUT
# Place a custom ifconfig command in a local ./bin directory and override PATH.
# This makes the test use the ./bin/ifconfig command to determine the local
# IP addresses which always produces 127.0.0.1 and ::1, even if the actual
# container instance this test is running in doesn't have ::1 on lo.
#
# @TEST-EXEC: mkdir -p ./bin/
# @TEST-EXEC: cp $SCRIPTS/fake-ifconfig-lo ./bin/ifconfig
#
# @TEST-EXEC: PATH=$(pwd)/bin:$PATH bash %INPUT
#
# @TEST-EXEC: btest-diff zeekctl-config-redefs

Expand Down
Loading