Skip to content

Commit

Permalink
Merge pull request #3349 from vdye/feature/ci-subtree-tests
Browse files Browse the repository at this point in the history
Add `contrib/subtree` test execution to CI builds
  • Loading branch information
dscho authored and vdye committed Aug 11, 2021
2 parents 9717039 + abf831b commit 508bb26
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ci/run-build-and-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ linux-gcc)
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
export GIT_TEST_WRITE_REV_INDEX=1
export GIT_TEST_CHECKOUT_WORKERS=2
make test
make test && make -C contrib/subtree test || exit 1
;;
linux-clang)
export GIT_TEST_DEFAULT_HASH=sha1
make test
export GIT_TEST_DEFAULT_HASH=sha256
make test
make test && make -C contrib/subtree test || exit 1
;;
linux-gcc-4.8)
# Don't run the tests; we only care about whether Git can be
# built with GCC 4.8, as it errors out on some undesired (C99)
# constructs that newer compilers seem to quietly accept.
;;
*)
make test
make test && make -C contrib/subtree test || exit 1
;;
esac

Expand Down
3 changes: 3 additions & 0 deletions ci/run-test-slice.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ make --quiet -C t T="$(cd t &&
./helper/test-tool path-utils slice-tests "$1" "$2" t[0-9]*.sh |
tr '\n' ' ')"

# Run the git subtree tests only if main tests succeeded
test 0 != "$1" || make -C contrib/subtree test

check_unignored_build_artifacts
2 changes: 1 addition & 1 deletion contrib/subtree/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ $(GIT_SUBTREE_TEST): $(GIT_SUBTREE)
cp $< $@

test: $(GIT_SUBTREE_TEST)
$(MAKE) -C t/ test
$(MAKE) -C t/ all

clean:
$(RM) $(GIT_SUBTREE)
Expand Down

0 comments on commit 508bb26

Please sign in to comment.