File: install-broport.test

package info (click to toggle)
broctl 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 2,220 kB
  • sloc: python: 4,931; sh: 1,188; makefile: 70; awk: 24
file content (23 lines) | stat: -rw-r--r-- 640 bytes parent folder | download
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