Skip to content

Commit

Permalink
Import scene before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bamboo committed Nov 19, 2024
1 parent 86b3168 commit 9d701c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
.PHONY: test

test: bin/s7
test: bin/s7 demo/.godot
scons && bin/s7 test/test-main.scm

demo/.godot: $(wildcard demo/addons/**) $(wildcard demo/bin/**)
godot --path demo --headless --import

bin/s7: s7/s7.c
mkdir -p bin
gcc s7/s7.c -o bin/s7 -DWITH_MAIN -DWITH_SYSTEM_EXTRAS -DWITH_C_LOADER=0 -I. -O2 -g -ldl -lm
Expand Down

0 comments on commit 9d701c0

Please sign in to comment.