File: parser

package info (click to toggle)
dhcpd-pools 3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,124 kB
  • sloc: ansic: 31,353; sh: 4,915; perl: 277; javascript: 74; php: 63; makefile: 50
file content (30 lines) | stat: -rwxr-xr-x 715 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
24
25
26
27
28
29
30
#!/bin/sh
#
# Minimal regression test suite.

IAM=$(basename $0)

if [ ! -d tests/outputs ]; then
	mkdir tests/outputs
fi
cat <<EOF >"./${IAM}-conf"
#shared-network "example3 " {
#       subnet 10.0.6.0  netmask 255.255.255.0 {
#               pool {
#                       range 10.0.6.1 10.0.6.20;
#               }
#       }
#       subnet 10.1.7.0  netmask 255.255.255.0 {
#               pool {
#                       range 10.1.7.1 10.1.7.20;
#               }
#       }
#}

include "tests/confs/complete";
EOF
dhcpd-pools -c "./${IAM}-conf" --color=never \
	    -l $top_srcdir/tests/leases/$IAM -o tests/outputs/$IAM
diff -u $top_srcdir/tests/expected/$IAM tests/outputs/$IAM
rm -f "./${IAM}-conf"
exit $?