Skip to content

Commit 5a8c6b6

Browse files
Makefile: Install dependencies libs for onewire tests. (#80)
Signed-off-by: Ramya Subramanyam <ramya.subramanyam@infineon.com>
1 parent 77de799 commit 5a8c6b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,14 @@ test_spi_connected1_loopback: TESTS=-DTEST_SPI_CONNECTED1_LOOPBACK
175175
test_spi_connected2_masterpingpong: TESTS=-DTEST_SPI_CONNECTED2_MASTERPINGPONG
176176
test_spi_connected2_slavepingpong: TESTS=-DTEST_SPI_CONNECTED2_SLAVEPINGPONG
177177

178+
.PHONY: install_onewire_libs
179+
install_onewire_libs:
180+
$(Q) arduino-cli lib update-index
181+
$(Q) arduino-cli lib install "OneWire"
178182

179183
## OneWire tests targets
180184
test_onewire_DS18x20: TESTS=-DTEST_ONEWIRE_DS18x20
185+
test_onewire_DS18x20: install_onewire_libs
181186

182187
# Arduino-cli commands
183188

0 commit comments

Comments
 (0)