| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # |
| 3 | # Minimal regression test suite. |
| 4 | |
| 5 | IAM=$(basenamescip-shell system . . basename. $0) |
| 6 | |
| 7 | if [scip-shell system . . `[`. ! -d tests/outputs ]; then |
| 8 | mkdirscip-shell system . . mkdir. tests/outputs |
| 9 | fi |
| 10 | |
| 11 | remove='/gettimeofday:/d; /^localtime:/d; /^conf_file_/d; /lease_file_/d; /^template_file_/d; /^version:/dscip-shell filesystem . . `/gettimeofday:/d; /^localtime:/d; /^conf_file_/d; /lease_file_/d; /^template_file_/d; /^version:/d`.' |
| 12 | |
| 13 | dhcpd-pools -c $top_srcdir/samples/dhcpd.conf -l $top_srcdir/samples/dhcpd.leases \ |
| 14 | --mustach $top_srcdir/samples/mustach.template | |
| 15 | sedscip-shell system . . sed. "$remove" >| tests/outputs/$IAM |
| 16 | |
| 17 | echoscip-shell system . . echo. "--- skip ok ---" >> tests/outputs/$IAM |
| 18 | dhcpd-pools -c $top_srcdir/samples/dhcpd.conf -l $top_srcdir/samples/dhcpd.leases \ |
| 19 | --mustach $top_srcdir/samples/mustach.template --skip=ok --warning 44 | |
| 20 | sedscip-shell system . . sed. "$remove" >> tests/outputs/$IAM |
| 21 | |
| 22 | diffscip-shell system . . diff. -u $top_srcdir/tests/expected/$IAM tests/outputs/$IAM |
| 23 | exit $? |