Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ jobs:
tar -xf cache/gamecube-tools-1.0.2-1-linux.pkg.tar.xz opt/devkitpro/tools/bin/elf2dol --strip-components=4
sudo cp elf2dol /usr/local/bin/elf2dol
tar -xf cache/ppc-mxml-2.11-2-any.pkg.tar.xz opt/devkitpro/portlibs --strip-components=1

- name: Run tests
run: |
cd test
sudo apt install libmxml-dev
make

- name: Compile
run: |
Expand Down
4 changes: 3 additions & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ LIB_DIRS :=
# Tests
TEST :=

MAKEFLAGS += k
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make more sense to call make -k rather than trying to edit the arguments from within the makefile?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the CI itself, maybe. But that parameter makes sense when manually called from the console as well, right? With the other change, the tests would stop after the first error which is probably not what you want by default, so setting the flag inside the Makefile seemed more useful.


###############################################################################
# Rule to make everything.
PHONY += all
Expand Down Expand Up @@ -85,7 +87,7 @@ PHONY += regression
regression : $(addprefix test_, $(TEST))

test_% : $(TARGET)
$Q{ $(TARGET) $* && echo "Test $* passed"; } || echo "Test $* failed ($$?)"
$Q{ $(TARGET) $* && echo "Test $* passed"; } || { echo "Test $* failed ($$?)"; false; }

###############################################################################
# Special build rules
Expand Down