Skip to content

Commit

Permalink
fix: make check runs only relevant tests for each platform
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Dec 9, 2024
1 parent 2c07bc0 commit 040454a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,29 @@ _: ##

musl-linux: ## 🗿 Build a fully static cjit using musl-libc on Linux
$(MAKE) -f build/musl.mk
@rm -f .build_done*
date >> .build_done_musl

linux-x86: ## 🐧 Build a dynamically linked cjit using libs found on Linux x86
$(MAKE) -f build/linux.mk
@rm -f .build_done*
date >> .build_done_linux

win-wsl: ## 🪟 Build cjit.exe for WIN64 on an Ubuntu WSL VM using gcc-mingw-w64
$(MAKE) -f build/win-wsl.mk
@rm -f .build_done*
date >> .build_done_win

win-native: ## 🪟 Build cjit.exe for WIN64 on Windows Server
cd ./lib/tinycc; bash configure --targetos=WIN32 --config-backtrace=no; make libtcc.a libtcc1.a
$(MAKE) -f build/win-native.mk
@rm -f .build_done*
date >> .build_done_win

apple-osx: ## 🍎 Build cjit.command for Apple/OSX using clang static
$(MAKE) -f build/osx.mk
@rm -f .build_done*
date >> .build_done_osx

_: ##
------: ## __ Debugging targets
Expand All @@ -51,7 +61,9 @@ _: ##

check: CJIT ?= ./cjit
check: ## 🧪 Run all tests using the currently built binary ./cjit
./test/bats/bin/bats test
@./test/bats/bin/bats test/cli.bats
@[ -r .build_done_linux ] && ./test/bats/bin/bats test/dmon.bats
@[ -r .build_done_win ] && ./test/bats/bin/bats test/windows.bats

_: ##
clean: ## 🧹 Clean the source from all built objects
Expand Down

0 comments on commit 040454a

Please sign in to comment.