提交 80e3d6fc 编写于 作者: B Benjamin Sago

Test for debug mode

上级 10817626
DEBUG:exa::fs::file: Statting file "/testcases/attributes/dirs/no-xattrs_empty"
INFO:exa::fs::dir: Reading directory "/testcases/attributes/dirs/no-xattrs_empty"
......@@ -17,7 +17,10 @@ results="/vagrant/xtests"
# We want to use strict mode here. It’s important that no combination of
# testing flags happens to work by accident!
export EXA_STRICT=1
export EXA_STRICT="1"
# We also don’t want to see reams and reams of debug output.
export EXA_DEBUG=""
# Check that no files were created more than a year ago.
......@@ -188,6 +191,11 @@ $exa --time 2>&1 | diff -q - $results/error_value || exit 1
$exa --long=time 2>&1 | diff -q - $results/error_overvalued || exit 1
# Debug mode
# (uses an empty directory so it prints nothing to stdout)
EXA_DEBUG="1" $exa $testcases/attributes/dirs/no-xattrs_empty -lh 2>&1 | diff -q - $results/debug || exit 1
# And finally...
$exa --help | diff -q - $results/help || exit 1
$exa --help --long | diff -q - $results/help_long || exit 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册