summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-06-09 08:57:29 -0400
committerDan Davison <dandavison7@gmail.com>2020-06-09 08:57:29 -0400
commit98a1f238e27ac847cdcc2336843be2754c236fae (patch)
tree846f3124e503717412c0eb4879ef24efa324b3da /tests
parent8051afd5fac14a7debd4912b4945571a8858d340 (diff)
Add --no-gitconfig option
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_color_only_output_matches_git_on_full_repo_history3
-rwxr-xr-xtests/test_deprecated_options26
2 files changed, 17 insertions, 12 deletions
diff --git a/tests/test_color_only_output_matches_git_on_full_repo_history b/tests/test_color_only_output_matches_git_on_full_repo_history
index c4513f75..c654863c 100755
--- a/tests/test_color_only_output_matches_git_on_full_repo_history
+++ b/tests/test_color_only_output_matches_git_on_full_repo_history
@@ -1,3 +1,4 @@
#!/bin/bash
+DELTA="./target/release/delta --no-gitconfig --color-only"
GIT_ARGS="log --patch --stat --numstat"
-diff -u <(git $GIT_ARGS | perl -pe 's/\e\[[0-9;]*[mK]//g') <(git $GIT_ARGS | ./target/release/delta --color-only | perl -pe 's/\e\[[0-9;]*[mK]//g')
+diff -u <(git $GIT_ARGS | perl -pe 's/\e\[[0-9;]*[mK]//g') <(git $GIT_ARGS | $DELTA | perl -pe 's/\e\[[0-9;]*[mK]//g')
diff --git a/tests/test_deprecated_options b/tests/test_deprecated_options
index daf62581..2b058dc9 100755
--- a/tests/test_deprecated_options
+++ b/tests/test_deprecated_options
@@ -1,23 +1,27 @@
+#!/bin/bash
+
+DELTA="./target/release/delta --no-gitconfig"
+
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 | $DELTA --commit-style $decoration_attr
+ git show | $DELTA --file-style $decoration_attr
+ git show | $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 | $DELTA --commit-color $foreground_color
+ git show | $DELTA --file-color $foreground_color
+ git show | $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
+ git show | $DELTA --commit-color $foreground_color --commit-style $decoration_attr
+ git show | $DELTA --file-color $foreground_color --file-style $decoration_attr
+ git show | $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
+ git show | $DELTA $option $background_color
done
-git show | ./target/release/delta --theme=GitHub --highlight-removed
+git show | $DELTA --theme=GitHub --highlight-removed