summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-02-18 23:27:17 -0500
committerTavian Barnes <tavianator@tavianator.com>2019-02-18 23:27:17 -0500
commit21d92d3a1285d32e33d4d43894fd8139dfabca8e (patch)
treec9b2db9bf8fff1e49f143e38452b1fdf91fffdbf /tests.sh
parentfc8345f1e1f1739b7fea2d521fb723aff817fa0b (diff)
downloadbfs-21d92d3a1285d32e33d4d43894fd8139dfabca8e.tar.xz
tests: Add a test for symlink coloring to a device
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index 926bf6f..189d324 100755
--- a/tests.sh
+++ b/tests.sh
@@ -185,7 +185,7 @@ function make_rainbow() {
ln "$1/mh1" "$1/mh2"
mkfifo "$1/pipe"
# TODO: block
- # TODO: chardev
+ ln -s /dev/null "$1/chardev_link"
ln -s nowhere "$1/broken"
"$TESTS/mksock" "$1/socket"
touchp "$1"/s{u,g,ug}id
@@ -621,6 +621,7 @@ bfs_tests=(
# Primaries
test_color
+ test_color_L
test_color_mh
test_color_mh0
test_color_or
@@ -1819,6 +1820,10 @@ function test_color() {
LS_COLORS= bfs_diff rainbow -color
}
+function test_color_L() {
+ LS_COLORS= bfs_diff -L rainbow -color
+}
+
function test_color_mh() {
LS_COLORS="mh=01:" bfs_diff rainbow -color
}