From 7911944633560de0f68203d6e9ed3bb45ad33c55 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 19 Nov 2020 03:28:51 -0700 Subject: [PATCH] tests: add getopt regression test for multicall stub --- tests/Kyuafile | 1 + tests/multicall_test | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100755 tests/multicall_test diff --git a/tests/Kyuafile b/tests/Kyuafile index a7fb909..6a8019b 100644 --- a/tests/Kyuafile +++ b/tests/Kyuafile @@ -2,6 +2,7 @@ syntax(2) test_suite('ifupdown-ng') +atf_test_program{name='multicall_test'} atf_test_program{name='ifquery_test'} atf_test_program{name='ifup_test'} atf_test_program{name='ifdown_test'} diff --git a/tests/multicall_test b/tests/multicall_test new file mode 100755 index 0000000..0b4c3ab --- /dev/null +++ b/tests/multicall_test @@ -0,0 +1,11 @@ +#!/usr/bin/env atf-sh + +. $(atf_get_srcdir)/test_env.sh + +tests_init \ + regress_getopt + +regress_getopt_body() { + atf_check -e not-inline:'-F: applet not found' -o ignore -s exit:1 \ + ifupdown ifquery -F +}