diff --git a/.github/workflows/simulation-1.2.yml b/.github/workflows/simulation-1.2.yml index 773699470..4c9890f68 100644 --- a/.github/workflows/simulation-1.2.yml +++ b/.github/workflows/simulation-1.2.yml @@ -204,7 +204,23 @@ jobs: sudo apt-get --no-install-recommends install -y expect ninja-build lcov socat - name: Run RCP Mode run: | + ulimit -c unlimited + ./script/test prepare_coredump_upload OT_OPTIONS=-DOT_READLINE=OFF OT_NODE_TYPE=rcp ./script/test build expect + - name: Copy Shared Libraries + if: ${{ failure() }} + run: | + ./script/test copy_so_lib + - uses: actions/upload-artifact@v2 + if: ${{ failure() }} + with: + name: core-expect-1-2 + path: | + ./build/openthread-simulation-1.2/examples/apps/cli/ot-cli-mtd + ./build/openthread-simulation-1.2/examples/apps/ncp/ot-rcp + ./build/openthread-posix-1.2/src/posix/ot-cli + ./ot-core-dump/* + ./so-lib/* - name: Generate Coverage run: | ./script/test generate_coverage gcc diff --git a/.github/workflows/simulation.yml b/.github/workflows/simulation.yml index 086544a97..a521951fa 100644 --- a/.github/workflows/simulation.yml +++ b/.github/workflows/simulation.yml @@ -279,7 +279,21 @@ jobs: OT_OPTIONS=-DOT_READLINE=OFF sudo apt-get --no-install-recommends install -y expect ninja-build lcov socat - name: Run run: | + ulimit -c unlimited + ./script/test prepare_coredump_upload OT_OPTIONS=-DOT_TIME_SYNC=ON VIRTUAL_TIME=0 ./script/test build expect + - name: Copy Shared Libraries + if: ${{ failure() }} + run: | + ./script/test copy_so_lib + - uses: actions/upload-artifact@v2 + if: ${{ failure() }} + with: + name: core-expect-cli + path: | + ./build/openthread-simulation-1.1/examples/apps/cli/ot-cli-ftd + ./ot-core-dump/* + ./so-lib/* - name: Generate Coverage run: | ./script/test generate_coverage gcc @@ -289,7 +303,22 @@ jobs: path: tmp/coverage.info - name: Run RCP Mode run: | + ulimit -c unlimited + ./script/test prepare_coredump_upload OT_OPTIONS=-DOT_READLINE=OFF VIRTUAL_TIME=0 OT_NODE_TYPE=rcp ./script/test clean build expect + - name: Copy Shared Libraries + if: ${{ failure() }} + run: | + ./script/test copy_so_lib + - uses: actions/upload-artifact@v2 + if: ${{ failure() }} + with: + name: core-expect-rcp + path: | + ./build/openthread-simulation-1.1/examples/apps/ncp/ot-rcp + ./build/openthread-posix-1.1/src/posix/ot-cli + ./ot-core-dump/* + ./so-lib/* - name: Generate Coverage run: | ./script/test generate_coverage gcc @@ -307,7 +336,22 @@ jobs: echo 0 | sudo tee /proc/sys/net/ipv6/conf/all/disable_ipv6 sudo systemctl restart dnsmasq host ipv6.google.com ::1 + ulimit -c unlimited + ./script/test prepare_coredump_upload OT_OPTIONS=-DOT_READLINE=OFF OT_NATIVE_IP=1 VIRTUAL_TIME=0 OT_NODE_TYPE=rcp ./script/test clean build expect + - name: Copy Shared Libraries + if: ${{ failure() }} + run: | + ./script/test copy_so_lib + - uses: actions/upload-artifact@v2 + if: ${{ failure() }} + with: + name: core-expect-tun + path: | + ./build/openthread-simulation-1.1/examples/apps/ncp/ot-rcp + ./build/openthread-posix-1.1/src/posix/ot-cli + ./ot-core-dump/* + ./so-lib/* - name: Generate Coverage run: | ./script/test generate_coverage gcc diff --git a/script/test b/script/test index add138181..7e20f1305 100755 --- a/script/test +++ b/script/test @@ -387,12 +387,12 @@ do_package() do_prepare_coredump_upload() { echo "$PWD/ot-core-dump/corefile-%e-%p-%t" | sudo tee /proc/sys/kernel/core_pattern - mkdir ot-core-dump + mkdir -p ot-core-dump } do_copy_so_lib() { - mkdir so-lib + mkdir -p so-lib cp /lib/x86_64-linux-gnu/libgcc_s.so.1 ./so-lib cp /lib/x86_64-linux-gnu/libc.so.6 ./so-lib cp /lib64/ld-linux-x86-64.so.2 ./so-lib