4 # filter directories, and create relevant ones on the board
5 find testing -type d | \
6 grep -v -E "(.(git|idea|vscode)|__pycache__)" | \
7 xargs -n1 -I {} sh -c "echo Creating directory {} ...; ampy --port ${PORT} mkdir --exists-okay {}"
9 # put top-level modules in place
10 for NAME in agnostic unittest
12 echo "Copying ${NAME}.py ..."
13 ampy --port ${PORT} put ${NAME}.py ${NAME}.py
16 # recursively sync folders of nested packages
17 for NAME in board digitalio mcp microcontroller testing
19 find ${NAME} -name '*.py'| xargs -n1 -I {} sh -c "echo Copying {} ...; ampy --port ${PORT} put {} {}"