Skip to content

Commit

Permalink
Update build example py unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Dec 16, 2021
1 parent 3c9fc03 commit 5ec48c6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build/testdata/all_targets_except_host.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ esp32-m5stack-all-clusters
esp32-m5stack-all-clusters-ipv6only
esp32-m5stack-all-clusters-rpc
esp32-m5stack-all-clusters-rpc-ipv6only
esp32-qemu-tests
infineon-p6-all-clusters
infineon-p6-light
infineon-p6-lock
Expand Down
18 changes: 18 additions & 0 deletions scripts/build/testdata/build_all_except_host.txt
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,17 @@ bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh;
export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-rpc-ipv6only/sdkconfig.defaults
idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-m5stack-all-clusters-rpc-ipv6only reconfigure'

# Generating esp32-qemu-tests
mkdir -p {out}/esp32-qemu-tests

cp src/test_driver/esp32/sdkconfig_qemu.defaults {out}/esp32-qemu-tests/sdkconfig.defaults

rm -f src/test_driver/esp32/sdkconfig

bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh;
export SDKCONFIG_DEFAULTS={out}/esp32-qemu-tests/sdkconfig.defaults
idf.py -C src/test_driver/esp32 -B {out}/esp32-qemu-tests reconfigure'

# Generating infineon-p6-all-clusters
gn gen --check --fail-on-unused-args --export-compile-commands --root={root}/examples/all-clusters-app/p6 '--args=p6_board="CY8CKIT-062S2-43012"' {out}/infineon-p6-all-clusters

Expand Down Expand Up @@ -1002,6 +1013,13 @@ bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh;
export SDKCONFIG_DEFAULTS={out}/esp32-m5stack-all-clusters-rpc-ipv6only/sdkconfig.defaults
idf.py -C examples/all-clusters-app/esp32 -B {out}/esp32-m5stack-all-clusters-rpc-ipv6only build'

rm -f src/test_driver/esp32/sdkconfig

# Building esp32-qemu-tests
bash -c 'source $IDF_PATH/export.sh; source scripts/activate.sh;
export SDKCONFIG_DEFAULTS={out}/esp32-qemu-tests/sdkconfig.defaults
idf.py -C src/test_driver/esp32 -B {out}/esp32-qemu-tests build'

# Building infineon-p6-all-clusters
ninja -C {out}/infineon-p6-all-clusters

Expand Down
1 change: 1 addition & 0 deletions scripts/build/testdata/glob_star_targets_except_host.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ esp32-m5stack-all-clusters
esp32-m5stack-all-clusters-ipv6only
esp32-m5stack-all-clusters-rpc
esp32-m5stack-all-clusters-rpc-ipv6only
esp32-qemu-tests
infineon-p6-all-clusters
infineon-p6-light
infineon-p6-lock
Expand Down

0 comments on commit 5ec48c6

Please sign in to comment.