| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # |
| 3 | # Test json status field values. |
| 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 | dhcpd-pools -c $top_srcdir/tests/confs/$IAM --format=json -L33 \ |
| 12 | -l $top_srcdir/tests/leases/$IAM -o tests/outputs/$IAM \ |
| 13 | --warning=20 --critical=41 --all-as-shared --snet-alarms --all-as-shared |
| 14 | |
| 15 | echoscip-shell system . . echo. '== minsize' >> tests/outputs/$IAM |
| 16 | dhcpd-pools -c $top_srcdir/tests/confs/$IAM --format=json --limit 33 \ |
| 17 | -l $top_srcdir/tests/leases/$IAM --minsize=20 \ |
| 18 | --warning=20 --critical=41 --all-as-shared --snet-alarms --all-as-shared \ |
| 19 | >> tests/outputs/$IAM |
| 20 | |
| 21 | diffscip-shell system . . diff. -u $top_srcdir/tests/expected/$IAM tests/outputs/$IAM |
| 22 | exit $? |