Skip to content

Commit

Permalink
make test_arm
Browse files Browse the repository at this point in the history
  • Loading branch information
hasumikin committed Jun 1, 2022
1 parent e522d41 commit 21cce56
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apt install -y \
make \
qemu \
qemu-kvm \
qemu-system-arm
qemu-user-static

RUN gem update --system

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GEM
i18n (1.10.0)
concurrent-ruby (~> 1.0)
minitest (5.15.0)
mrubyc-test (0.7.2)
mrubyc-test (0.7.3)
activesupport (~> 7.0)
rufo (~> 0.12)
thor (~> 1.2)
Expand Down
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,20 @@ package: clean

.PHONY: test setup_test check_tag debug_test

test: check_tag
test: test_arm test_host

test_arm:
make run_test CC=arm-linux-gnueabi-gcc QEMU=qemu-arm-static

test_host:
make run_test CC=gcc

run_test: check_tag
docker run --mount type=bind,src=${PWD}/,dst=/work/mrubyc \
-e CFLAGS="-DMRBC_USE_HAL_POSIX=1 -DMRBC_USE_MATH=1 -DMAX_SYMBOLS_COUNT=500 $(CFLAGS)" \
-e MRBC="/work/mruby/build/host/bin/mrbc" \
mrubyc-dev /bin/sh -c "cd mrblib; make distclean all && cd -; \
CC=$(CC) QEMU=$(QEMU) \
bundle exec mrubyc-test --every=10 \
--mrbc-path=/work/mruby/build/host/bin/mrbc \
$(file)"
Expand Down

0 comments on commit 21cce56

Please sign in to comment.