Tests for the directory path fix

This commit is contained in:
Benjamin Sago 2017-04-29 10:56:17 +01:00
parent e671217d60
commit 3d97dffc24
2 changed files with 9 additions and 0 deletions

3
xtests/dir_paths Normal file
View File

@ -0,0 +1,3 @@
target
target/debug
target/debug/build

View File

@ -66,6 +66,12 @@ $exa $testcases/file-names-exts/music.* -I "*.ogg" -1 2>&1 | diff -q - $re
$exa $testcases/file-names-exts/music.* -I "*.ogg|*.mp3" -1 2>&1 | diff -q - $results/empty || exit 1
# Paths and directories
# These directories are created in the VM users home directory (the default
# location) when a Cargo build is done.
(cd; $exa -1d target target/debug target/debug/build | diff -q - $results/dir_paths) || exit 1
# Links
COLUMNS=80 $exa $testcases/links 2>&1 | diff -q - $results/links || exit 1
$exa $testcases/links -1 2>&1 | diff -q - $results/links_1 || exit 1