mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-02 03:48:41 +00:00
Use git clean -fdx instead of make clean in external projects
This commit is contained in:
@@ -232,16 +232,15 @@ Each one is a binary RNG file which is passed to the `rgbgfx_test` program.
|
|||||||
Each `.cfg` file corresponds to one test.
|
Each `.cfg` file corresponds to one test.
|
||||||
Each one defines the parameters for a real external project that builds using RGBDS.
|
Each one defines the parameters for a real external project that builds using RGBDS.
|
||||||
|
|
||||||
1. Make sure the downstream project supports
|
1. Ensure that the downstream project supports a `RGBDS` variable to build with
|
||||||
|
a non-system copy of RGBDS in some directory, i.e.
|
||||||
<code>make <var><target></var> RGBDS=<var><path/to/rgbds/></var></code>.
|
<code>make <var><target></var> RGBDS=<var><path/to/rgbds/></var></code>.
|
||||||
While the test suite supports any Make target name, only
|
Only [GNU Make](https://www.gnu.org/software/make/) is currently supported.
|
||||||
[Make](//gnu.org/software/make) is currently supported, and the Makefile must
|
|
||||||
support a `RGBDS` variable to use a non-system RGBDS directory.
|
|
||||||
2. Create the new `.cfg` file, following the existing ones.
|
2. Create the new `.cfg` file, following the existing ones.
|
||||||
|
|
||||||
If an external project does not support `make RGBDS=`, or otherwise fails to
|
If an external project does not support `make RGBDS=`, or otherwise fails to
|
||||||
build with current RGBDS, then then you can edit the project to build correctly,
|
build with current RGBDS, then you can edit the project to build correctly, and
|
||||||
and create a patch with `git diff` to be committed as
|
create a patch with `git diff` to be committed as
|
||||||
<code>test/external/patches/<var><project></var>.patch</code>.
|
<code>test/external/patches/<var><project></var>.patch</code>.
|
||||||
|
|
||||||
## Container images
|
## Container images
|
||||||
|
|||||||
Vendored
+1
-1
@@ -22,7 +22,7 @@ if ! cd "$EXT_TEST_REPO"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
RGBDS_PATH="RGBDS=../../../"
|
RGBDS_PATH="RGBDS=../../../"
|
||||||
make clean $RGBDS_PATH
|
git clean -fdx # Clean any previous build products so `make` rebuilds everything from scratch.
|
||||||
make -j4 "$EXT_TEST_TARGET" $RGBDS_PATH
|
make -j4 "$EXT_TEST_TARGET" $RGBDS_PATH
|
||||||
|
|
||||||
hash="$(sha1sum -b "$EXT_TEST_FILE" | head -c 40)"
|
hash="$(sha1sum -b "$EXT_TEST_FILE" | head -c 40)"
|
||||||
|
|||||||
Reference in New Issue
Block a user