ifupdown-ng/tests/ifquery_test

16 lines
276 B
Text
Raw Normal View History

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