From 098788c98e9780b9bf95c1f52cde40f7110e6897 Mon Sep 17 00:00:00 2001 From: Benjamin Sago Date: Thu, 29 Jun 2017 14:03:17 +0100 Subject: [PATCH] Add sort tests for name and ext and lowercase --- xtests/file-names-exts-case | 23 +++++++++++++++++++++++ xtests/file-names-exts-ext | 23 +++++++++++++++++++++++ xtests/file-names-exts-ext-case | 23 +++++++++++++++++++++++ xtests/run.sh | 14 ++++++++++---- 4 files changed, 79 insertions(+), 4 deletions(-) create mode 100644 xtests/file-names-exts-case create mode 100644 xtests/file-names-exts-ext create mode 100644 xtests/file-names-exts-ext-case diff --git a/xtests/file-names-exts-case b/xtests/file-names-exts-case new file mode 100644 index 0000000..27eb2cb --- /dev/null +++ b/xtests/file-names-exts-case @@ -0,0 +1,23 @@ +#SAVEFILE# +COMPRESSED.ZIP +DOCUMENT.XLSX +IMAGE.PNG +MUSIC.OGG +Makefile +VIDEO.AVI +backup~ +compiled.class +compiled.coffee +compiled.js +compiled.o +compressed.tar.gz +compressed.tgz +crypto.asc +crypto.signature +document.pdf +file.tmp +image.svg +lossless.flac +lossless.wav +music.mp3 +video.wmv diff --git a/xtests/file-names-exts-ext b/xtests/file-names-exts-ext new file mode 100644 index 0000000..fbdf712 --- /dev/null +++ b/xtests/file-names-exts-ext @@ -0,0 +1,23 @@ +#SAVEFILE# +backup~ +Makefile +crypto.asc +VIDEO.AVI +compiled.class +compiled.coffee +lossless.flac +compressed.tar.gz +compiled.js +music.mp3 +compiled.o +MUSIC.OGG +document.pdf +IMAGE.PNG +crypto.signature +image.svg +compressed.tgz +file.tmp +lossless.wav +video.wmv +DOCUMENT.XLSX +COMPRESSED.ZIP diff --git a/xtests/file-names-exts-ext-case b/xtests/file-names-exts-ext-case new file mode 100644 index 0000000..5aa680a --- /dev/null +++ b/xtests/file-names-exts-ext-case @@ -0,0 +1,23 @@ +#SAVEFILE# +Makefile +backup~ +crypto.asc +VIDEO.AVI +compiled.class +compiled.coffee +lossless.flac +compressed.tar.gz +compiled.js +music.mp3 +compiled.o +MUSIC.OGG +document.pdf +IMAGE.PNG +crypto.signature +image.svg +compressed.tgz +file.tmp +lossless.wav +video.wmv +DOCUMENT.XLSX +COMPRESSED.ZIP diff --git a/xtests/run.sh b/xtests/run.sh index a4383a9..b5045e5 100755 --- a/xtests/run.sh +++ b/xtests/run.sh @@ -79,10 +79,16 @@ COLUMNS=80 $exa $testcases/file-names -R 2>&1 | diff -q - $results/file_names_R $exa $testcases/file-names/* 2>/dev/null -# File types -$exa $testcases/file-names-exts -1 2>&1 --sort=Name | diff -q - $results/file-names-exts || exit 1 -$exa $testcases/specials -l 2>&1 | diff -q - $results/specials || exit 1 -$exa $testcases/specials -F -l 2>&1 | diff -q - $results/specials_F || exit 1 +# Sorting and extension file types +$exa $testcases/file-names-exts -1 2>&1 --sort=Name | diff -q - $results/file-names-exts || exit 1 +$exa $testcases/file-names-exts -1 2>&1 --sort=name | diff -q - $results/file-names-exts-case || exit 1 +$exa $testcases/file-names-exts -1 2>&1 --sort=Ext | diff -q - $results/file-names-exts-ext || exit 1 +$exa $testcases/file-names-exts -1 2>&1 --sort=ext | diff -q - $results/file-names-exts-ext-case || exit 1 + + +# Other file types +$exa $testcases/specials -l 2>&1 | diff -q - $results/specials || exit 1 +$exa $testcases/specials -F -l 2>&1 | diff -q - $results/specials_F || exit 1 # Ignores