mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-14 00:14:05 +00:00
Test for debug mode
This commit is contained in:
parent
1081762657
commit
80e3d6fcaf
2
xtests/debug
Normal file
2
xtests/debug
Normal file
@ -0,0 +1,2 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user