Skip to content

Commit

Permalink
armv7m: test Makefile, explicitly calling qemu-arm-static allows simp…
Browse files Browse the repository at this point in the history
…ler setup on CI machine (debian)
  • Loading branch information
tfaoliveira committed Oct 10, 2023
1 parent 5a5ed3d commit 6a0ee37
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,19 +178,33 @@ ifeq ($(ARCH),amd64)
(valgrind --leak-check=full --error-exitcode=1 --log-file=$@ ./$*memory) $(CIL) || true
endif

## -- %.out
ifeq ($(ARCH),armv7m)
%.out: %
$(CIC)
(cd $(dir $*) && qemu-arm-static $(notdir $*) > $(notdir $*).out) $(CIL) || true
else
%.out: %
$(CIC)
(cd $(dir $*) && ./$(notdir $*) > $(notdir $*).out) $(CIL) || true
endif

$(STDOUT):
ifeq ($(ARCH),amd64)
%memory.stdout: %memory
(valgrind --leak-check=full --error-exitcode=1 ./$*memory) $(CIL) || true
endif

## -- %.stdout
ifeq ($(ARCH),armv7m)
%.stdout: %
$(CIC)
(cd $(dir $*) && qemu-arm-static $(notdir $*) && echo) $(CIL) || true
else
%.stdout: %
$(CIC)
(cd $(dir $*) && ./$(notdir $*) && echo) $(CIL) || true
endif


# --------------------------------------------------------------------
Expand Down

0 comments on commit 6a0ee37

Please sign in to comment.