1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
# Test that the install command can install a custom value of the broport
# broctl option.
#
# @TEST-EXEC: bash %INPUT
. broctl-test-setup
ret=0
broctl install
# Verify that the test port number is not installed by default
grep -q 41234 $BROCTL_INSTALL_PREFIX/spool/installed-scripts-do-not-touch/auto/standalone-layout.bro && ret=1
# Change the configuration to use a test port number
echo "broport=41234" >> $BROCTL_INSTALL_PREFIX/etc/broctl.cfg
broctl install
# Verify that the test port number was installed
grep -q 41234 $BROCTL_INSTALL_PREFIX/spool/installed-scripts-do-not-touch/auto/standalone-layout.bro || ret=1
exit $ret
|