first pass at something that will actually run simulator tests, at least in docker

tmp/arduino-cli-pre-rebase
Jesse Vincent 4 years ago
parent ea0a0c3dd6
commit f74b87e2de
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -90,7 +90,7 @@ prepare-virtual:
$(MAKE) -C $(BOARD_HARDWARE_PATH)/keyboardio prepare-virtual
simulator-tests: prepare-virtual
simulator-tests: install-arduino-cli configure-arduino-cli install-arduino-core-avr prepare-virtual
$(MAKE) -C tests all
docker-simulator-tests:

@ -28,9 +28,15 @@ XFER_DIR="$(pwd)/.docker_xfer"
mkdir -p "${XFER_DIR}"
tar -cf "${XFER_DIR}/kaleidoscope.tar" \
--exclude bin/arduino-cli --exclude .docker_xfer --exclude .git --exclude _build --exclude testing/googletest/build \
--exclude .arduino/data \
--exclude bin/arduino-cli \
--exclude .docker_xfer \
--exclude .git \
--exclude _build \
--exclude testing/googletest/build \
.
echo "The bundle is coming from ${BOARD_HARDWARE_PATH}/keyboardio"
(cd "${BOARD_HARDWARE_PATH}/keyboardio" && tar -cf "${XFER_DIR}/bundle.tar" \
--exclude .git --exclude avr/libraries/Kaleidoscope .)
@ -44,6 +50,7 @@ docker run --rm $DOCKER_RUN_INTERACTIVE_OPTS \
--mount type=volume,source=kaleidoscope-persist,destination=/kaleidoscope-persist,consistency=delegated \
--mount type=volume,source=kaleidoscope-googletest-build,destination=/kaleidoscope/hardware/keyboardio/avr/libraries/Kaleidoscope/testing/googletest/build,consistency=delegated \
--mount type=volume,source=kaleidoscope-build,destination=/kaleidoscope/hardware/keyboardio/avr/libraries/Kaleidoscope/_build,consistency=delegated \
--env ARDUINO_DIRECTORIES_USER=/kaleidoscope \
kaleidoscope/docker "$*"

@ -6,7 +6,7 @@ libcommon_a := ${top_dir}/_build/lib/libcommon.a
TEST_PATH ?= tests/
TESTS ?= $(shell find ${top_dir}/${TEST_PATH} -name 'sketch.ino' -exec dirname {} \;)
TESTS ?= $(shell find ${top_dir}/${TEST_PATH} -name '*.ino' -exec dirname {} \;)
.PHONY: clean cmake-clean all googletest
generate-testcases:

Loading…
Cancel
Save