summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarco Ieni <11428655+MarcoIeni@users.noreply.github.com>2020-11-28 20:48:40 +0100
committerGitHub <noreply@github.com>2020-11-28 14:48:40 -0500
commit64a9027f96ccca5990f85eefb0dbc0bbcb049272 (patch)
tree9f1a33c215db540020b984153c4ec4dd813cc51f /tests
parent4f167f4c7aff1d06d587e43187519f0590c5e49e (diff)
GitHub Continuous Integration: run tests on linux, mac and windows (#411)
* GitHub actions: add integration tests Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> Co-authored-by: danyspin97 <oss@danyspin97.org> Co-authored-by: surveyor3 <samuelebertollo.sb@gmail.com> * GitHub actions: fix jobs names Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> * GitHub actions: remove windows from integration tests Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> Co-authored-by: danyspin97 <oss@danyspin97.org> Co-authored-by: surveyor3 <samuelebertollo.sb@gmail.com> * GitHub actions: fix target variable name Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> Co-authored-by: danyspin97 <oss@danyspin97.org> Co-authored-by: surveyor3 <samuelebertollo.sb@gmail.com> Co-authored-by: danyspin97 <oss@danyspin97.org> Co-authored-by: surveyor3 <samuelebertollo.sb@gmail.com> Co-authored-by: Dan Davison <dandavison7@gmail.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_deprecated_options4
-rwxr-xr-xtests/test_raw_output_matches_git_on_full_repo_history6
2 files changed, 8 insertions, 2 deletions
diff --git a/tests/test_deprecated_options b/tests/test_deprecated_options
index 2b058dc9..5ff59801 100755
--- a/tests/test_deprecated_options
+++ b/tests/test_deprecated_options
@@ -1,6 +1,8 @@
#!/bin/bash
-DELTA="./target/release/delta --no-gitconfig"
+# if first arg provided, use it, otherwise default to release
+DELTA_BIN=${1:=./target/release/delta}
+DELTA="$DELTA_BIN --no-gitconfig"
foreground_color=red
for decoration_attr in box underline plain; do
diff --git a/tests/test_raw_output_matches_git_on_full_repo_history b/tests/test_raw_output_matches_git_on_full_repo_history
index f212d2f4..667cbd68 100755
--- a/tests/test_raw_output_matches_git_on_full_repo_history
+++ b/tests/test_raw_output_matches_git_on_full_repo_history
@@ -1,5 +1,9 @@
#!/bin/bash
-DELTA="./target/release/delta --no-gitconfig --raw --max-line-length 0"
+
+# if first arg provided, use it, otherwise default to release
+DELTA_BIN=${1:=./target/release/delta}
+DELTA="$DELTA_BIN --no-gitconfig --raw --max-line-length 0"
+
ANSIFILTER="./etc/bin/ansifilter"
GIT_ARGS="log --patch --stat --numstat"
diff -u <(git $GIT_ARGS | $ANSIFILTER) <(git $GIT_ARGS | $DELTA | $ANSIFILTER)