summaryrefslogtreecommitdiffstats
path: root/tests/test_deprecated_options
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_deprecated_options')
-rwxr-xr-xtests/test_deprecated_options21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test_deprecated_options b/tests/test_deprecated_options
new file mode 100755
index 00000000..2bd8741b
--- /dev/null
+++ b/tests/test_deprecated_options
@@ -0,0 +1,21 @@
+foreground_color=red
+for decoration_attr in box underline plain; do
+
+ git show | ./target/release/delta --commit-style $decoration_attr
+ git show | ./target/release/delta --file-style $decoration_attr
+ git show | ./target/release/delta --hunk-style $decoration_attr
+
+ git show | ./target/release/delta --commit-color $foreground_color
+ git show | ./target/release/delta --file-color $foreground_color
+ git show | ./target/release/delta --hunk-color $foreground_color
+
+ git show | ./target/release/delta --commit-color $foreground_color --commit-style $decoration_attr
+ git show | ./target/release/delta --file-color $foreground_color --file-style $decoration_attr
+ git show | ./target/release/delta --hunk-color $foreground_color --hunk-style $decoration_attr
+
+done
+
+background_color=blue
+for option in --minus-color --plus-color --minus-emph-color --plus-emph-color; do
+ git show | ./target/release/delta $option $background_color
+done