[PATCH] makefile: run Rust tests if cargo is installed
Raphaël Gomès
raphael.gomes at octobus.net
Wed Aug 21 12:51:23 EDT 2019
I figured patchbomb would add [PATCH STABLE], but I was wrong, it has to
be specified. So this patch is for the stable branch.
On 8/21/19 6:09 PM, Raphaël Gomès wrote:
> # HG changeset patch
> # User Raphaël Gomès <rgomes at octobus.net>
> # Date 1566403010 -7200
> # Wed Aug 21 17:56:50 2019 +0200
> # Branch stable
> # Node ID 5b9efc6098154fb5079f06b3c485b58363e0f43d
> # Parent 302dbc9d52beeb2ef677aa18b3fa005bbce2134e
> makefile: run Rust tests if cargo is installed
>
> While no particular minimum toolchain version is targeted as of yet, this
> serves as a first step to make more people/machines run the Rust tests.
>
> diff -r 302dbc9d52be -r 5b9efc609815 Makefile
> --- a/Makefile Fri Aug 16 15:41:53 2019 +0300
> +++ b/Makefile Wed Aug 21 17:56:50 2019 +0200
> @@ -110,8 +110,11 @@
> check: tests
>
> tests:
> - cd tests && $(PYTHON) run-tests.py $(TESTFLAGS)
> -
> + if [ -x "$$(command -v cargo)" ]; then \
> + # Run Rust tests if cargo is installed
> + cd $(HGROOT)/rust/hg-cpython && cargo test --quiet --all; \
> + fi;
> + cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) && \
> test-%:
> cd tests && $(PYTHON) run-tests.py $(TESTFLAGS) $@
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
More information about the Mercurial-devel
mailing list