We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 823dbcd commit a643ff9Copy full SHA for a643ff9
run_tests
@@ -0,0 +1,18 @@
1
+#!/usr/bin/env bash
2
+#
3
+
4
+errors=0
5
6
+for file in ./tests/* ; do
7
+ if [[ -e "$file" ]] ; then
8
+ echo "$file"
9
+ echo "--"
10
+ bash "$file" ; ((errors += $?))
11
+ echo ""
12
+ fi
13
+done
14
15
+if [[ "$errors" -ne 0 ]] ; then
16
+ echo "Test failures: $errors"
17
+ exit "$errors"
18
+fi
tests/no_dupes
@@ -0,0 +1,8 @@
+exts="$(dircolors LS_COLORS | head -n1 | sed 's/=[^:]*//g ; s/:/\n/g')"
+exts_sorted="$(sort <<< "$exts")"
+exts_uniq="$(sort -u <<< "$exts")"
+diff --color=auto --text --report-identical-files <(echo "$exts_uniq") <(echo "$exts_sorted")
0 commit comments