summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-08-05 16:15:12 -0400
committerDan Davison <dandavison7@gmail.com>2020-08-05 16:29:15 -0400
commit2da099e53d5c0a7597757bca5b53bbef5d449e8b (patch)
tree2d263a45d7f048cc835f53fb416517018d996e8c /tests
parent66f072e347c6bc7919daadb4eb34bd5077ad26e9 (diff)
Add diagnostics script
Diffstat (limited to 'tests')
-rwxr-xr-xtests/diagnostics18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/diagnostics b/tests/diagnostics
new file mode 100755
index 00000000..82a2f2b0
--- /dev/null
+++ b/tests/diagnostics
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+commands=(
+ "delta --version"
+ "less --version | head -n1"
+ "env | grep -E '(less|pager|bat)'"
+ "printf '\e[34m\e[43mtext\e[m\n'"
+ "printf '\e[38;5;19m\e[48;5;226mtext\e[m\n'"
+ "printf '\e[38;2;0;0;255m\e[48;2;255;255;0mtext\e[m\n'"
+ "delta <(echo a) <(echo b) | cat -A"
+ "delta <(echo a) <(echo b)"
+)
+
+for cmd in "${commands[@]}"; do
+ echo "> $cmd"
+ eval "$cmd"
+ echo
+done