summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-03-11 14:08:45 -0500
committerTavian Barnes <tavianator@tavianator.com>2017-03-11 14:08:45 -0500
commit486ddbcdd9281683ab1ade83c5c4a7aac8175aa7 (patch)
tree636c62e9eb6bda921265e00fa6ea6c225a9e9503 /tests.sh
parent21f6c460fcda0161993f75421614efb6971af23b (diff)
downloadbfs-486ddbcdd9281683ab1ade83c5c4a7aac8175aa7.tar.xz
Add a test for colored output
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index 46fcc52..5d5a3b5 100755
--- a/tests.sh
+++ b/tests.sh
@@ -309,6 +309,7 @@ bfs_tests=(
test_flag_expr_path
test_expr_flag_path
test_expr_path_flag
+ test_colors
)
BSD=yes
@@ -1044,6 +1045,10 @@ function test_precedence() {
bfs_diff basic \( -name foo -type d -o -name bar -a -type f \) -print , \! -empty -type f -print
}
+function test_colors() {
+ LS_COLORS= bfs_diff links -color
+}
+
passed=0
failed=0