ifupdown-ng/tests/ifquery_test
2020-07-19 00:17:42 -06:00

15 lines
276 B
Text
Executable file

#!/usr/bin/env atf-sh
. $(atf_get_srcdir)/test_env.sh
tests_init \
noargs \
loopback_always_configured
noargs_body() {
atf_check -s exit:1 -e ignore ifquery
}
loopback_always_configured_body() {
atf_check -s exit:0 -o match:"inet loopback" ifquery --pretty-print lo
}