@@ -102,7 +102,17 @@ for test in $TESTLIST; do
fi
fi
+ # check --document-all-subtests handling
+ echo " Checking subtest documentation..."
+ DOCS=`./$test --document-all-subtests`
+ RET=$?
+
+ if [ $RET -ne 0 -a $RET -ne 79 ]; then
+ fail $test
+ fi
+
# check invalid subtest handling
echo " Checking invalid subtest handling..."
- ./$test --run-subtest invalid-subtest > /dev/null 2>&1 && fail $test
+ ./$test --run-subtest invalid-subtest > /dev/null 2>&1 && fail "$test --run-subtest invalid"
+ ./$test --document-subtest invalid-subtest > /dev/null 2>&1 && fail "$test --document-subtest invalid"
done
Signed-off-by: Petri Latvala <petri.latvala@intel.com> --- tests/igt_command_line.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)