Skip to content

Commit

Permalink
Fix unit tests after native board fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Sep 24, 2021
1 parent 5d5ca8b commit 1242936
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
48 changes: 24 additions & 24 deletions scripts/build/expected_all_platform_commands.txt
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# Generating {real_platform}-native-all_clusters
gn gen --check --fail-on-unused-args --root={root}/examples/all-clusters-app/linux {out}/{real_platform}-native-all_clusters
# Generating {host_platform}-{host_board}-all_clusters
gn gen --check --fail-on-unused-args --root={root}/examples/all-clusters-app/linux {out}/{host_platform}-{host_board}-all_clusters

# Generating {real_platform}-native-chip_tool
gn gen --check --fail-on-unused-args --root={root}/examples/chip-tool {out}/{real_platform}-native-chip_tool
# Generating {host_platform}-{host_board}-chip_tool
gn gen --check --fail-on-unused-args --root={root}/examples/chip-tool {out}/{host_platform}-{host_board}-chip_tool

# Generating {real_platform}-native-thermostat
gn gen --check --fail-on-unused-args --root={root}/examples/thermostat/linux {out}/{real_platform}-native-thermostat
# Generating {host_platform}-{host_board}-thermostat
gn gen --check --fail-on-unused-args --root={root}/examples/thermostat/linux {out}/{host_platform}-{host_board}-thermostat

# Generating linux-arm64-arm64-all_clusters
# Generating linux-arm64-all_clusters
bash -c '
PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \
gn gen --check --fail-on-unused-args --root={root}/examples/all-clusters-app/linux '"'"'--args=target_cpu="arm64" is_clang=true chip_crypto="mbedtls" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-arm64-all_clusters'
gn gen --check --fail-on-unused-args --root={root}/examples/all-clusters-app/linux '"'"'--args=target_cpu="arm64" is_clang=true chip_crypto="mbedtls" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-all_clusters'

# Generating linux-arm64-arm64-chip_tool
# Generating linux-arm64-chip_tool
bash -c '
PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \
gn gen --check --fail-on-unused-args --root={root}/examples/chip-tool '"'"'--args=target_cpu="arm64" is_clang=true chip_crypto="mbedtls" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-arm64-chip_tool'
gn gen --check --fail-on-unused-args --root={root}/examples/chip-tool '"'"'--args=target_cpu="arm64" is_clang=true chip_crypto="mbedtls" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-chip_tool'

# Generating linux-arm64-arm64-thermostat
# Generating linux-arm64-thermostat
bash -c '
PKG_CONFIG_PATH="SYSROOT_AARCH64/lib/aarch64-linux-gnu/pkgconfig" \
gn gen --check --fail-on-unused-args --root={root}/examples/thermostat/linux '"'"'--args=target_cpu="arm64" is_clang=true chip_crypto="mbedtls" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-arm64-thermostat'
gn gen --check --fail-on-unused-args --root={root}/examples/thermostat/linux '"'"'--args=target_cpu="arm64" is_clang=true chip_crypto="mbedtls" sysroot="SYSROOT_AARCH64"'"'"' {out}/linux-arm64-thermostat'

# Generating qpg-qpg6100-lock
gn gen --check --fail-on-unused-args --root={root}/examples/lock-app/qpg {out}/qpg-qpg6100-lock
Expand Down Expand Up @@ -168,23 +168,23 @@ west build --cmake-only -d {out}/telink-tlsr9518adk80d-light -b tlsr9518adk80d {
# Generating tizen-arm-light
bash -c 'gn gen --check --fail-on-unused-args --root={root}/examples/lighting-app/linux '"'"'--args= target_os="tizen" target_cpu="arm" sysroot="TEST_TIZEN_HOME"'"'"' {out}/tizen-arm-light'

# Building {real_platform}-native-all_clusters
ninja -C {out}/{real_platform}-native-all_clusters
# Building {host_platform}-{host_board}-all_clusters
ninja -C {out}/{host_platform}-{host_board}-all_clusters

# Building {real_platform}-native-chip_tool
ninja -C {out}/{real_platform}-native-chip_tool
# Building {host_platform}-{host_board}-chip_tool
ninja -C {out}/{host_platform}-{host_board}-chip_tool

# Building {real_platform}-native-thermostat
ninja -C {out}/{real_platform}-native-thermostat
# Building {host_platform}-{host_board}-thermostat
ninja -C {out}/{host_platform}-{host_board}-thermostat

# Building linux-arm64-arm64-all_clusters
ninja -C {out}/linux-arm64-arm64-all_clusters
# Building linux-arm64-all_clusters
ninja -C {out}/linux-arm64-all_clusters

# Building linux-arm64-arm64-chip_tool
ninja -C {out}/linux-arm64-arm64-chip_tool
# Building linux-arm64-chip_tool
ninja -C {out}/linux-arm64-chip_tool

# Building linux-arm64-arm64-thermostat
ninja -C {out}/linux-arm64-arm64-thermostat
# Building linux-arm64-thermostat
ninja -C {out}/linux-arm64-thermostat

# Building qpg-qpg6100-lock
ninja -C {out}/qpg-qpg6100-lock
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
def build_expected_output(root: str, out: str) -> List[str]:
with open(os.path.join(SCRIPT_ROOT, 'expected_all_platform_commands.txt'), 'rt') as f:
for l in f.readlines():
yield l.replace("{root}", root).replace("{out}", out).replace('{real_platform}', HostBoard.NATIVE.PlatformName())
yield l.replace("{root}", root).replace("{out}", out).replace('{host_platform}', HostBoard.NATIVE.PlatformName()).replace('{host_board}', HostBoard.NATIVE.BoardName())


def build_actual_output(root: str, out: str) -> List[str]:
Expand Down

0 comments on commit 1242936

Please sign in to comment.