File: full-json

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 (14 lines) | stat: -rwxr-xr-x 394 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#
# Minimal regression test suite.

if [ ! -d tests/outputs ]; then
	mkdir tests/outputs
fi

dhcpd-pools -f J -c $top_srcdir/tests/confs/same-twice \
		 -l $top_srcdir/tests/leases/same-twice |
		sed '/"version":"/d; /"conf_file_.*":/d; /"lease_file_.*":/d' \
		>| tests/outputs/same-twice-json
diff -u $top_srcdir/tests/expected/same-twice-json tests/outputs/same-twice-json
exit $?