Debian Codegraph @

tests/parser

raw symbols SCIP
1 #!/bin/sh
2 #
3 # Minimal regression test suite.
4
5 IAM=$(basename $0)
6
7 if [ ! -d tests/outputs ]; then
8 mkdir tests/outputs
9 fi
10 cat <<EOF >"./${IAM}-conf"
11 #shared-network "example3 " {
12 # subnet 10.0.6.0 netmask 255.255.255.0 {
13 # pool {
14 # range 10.0.6.1 10.0.6.20;
15 # }
16 # }
17 # subnet 10.1.7.0 netmask 255.255.255.0 {
18 # pool {
19 # range 10.1.7.1 10.1.7.20;
20 # }
21 # }
22 #}
23
24 include "tests/confs/complete";
25 EOF
26 dhcpd-pools -c "./${IAM}-conf" --color=never \
27 -l $top_srcdir/tests/leases/$IAM -o tests/outputs/$IAM
28 diff -u $top_srcdir/tests/expected/$IAM tests/outputs/$IAM
29 rm -f "./${IAM}-conf"
30 exit $?