From 43b0a34a3f993c1912488dad07c70f0860e98849 Mon Sep 17 00:00:00 2001 From: kabeor <1597915586@qq.com> Date: Fri, 19 Nov 2021 13:37:09 +0800 Subject: [PATCH 1/2] add CI Test support --- .github/workflows/CITest.yml | 21 +++++++++++++++++++++ tests/test_all.sh | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/CITest.yml create mode 100644 tests/test_all.sh diff --git a/.github/workflows/CITest.yml b/.github/workflows/CITest.yml new file mode 100644 index 0000000000..df4309ad61 --- /dev/null +++ b/.github/workflows/CITest.yml @@ -0,0 +1,21 @@ +name: Run Test +on: [push, pull_request] +env: + CI: true +jobs: + tests: + runs-on: ubuntu-20.04 + name: build_test on ubuntu 20.04 + + steps: + - uses: actions/checkout@v2 + + - name: make + shell: 'script -q -e -c "bash {0}"' + run: | + ./make.sh + make check + sudo make install + cp libcapstone.so.* bindings/python/libcapstone.so + cd tests + ./test_all.sh \ No newline at end of file diff --git a/tests/test_all.sh b/tests/test_all.sh new file mode 100644 index 0000000000..7145c1c4b4 --- /dev/null +++ b/tests/test_all.sh @@ -0,0 +1,21 @@ +./test_arm +./test_arm64 +./test_basic +./test_bpf +./test_customized_mnem +./test_detail +./test_evm +./test_iter +./test_m680x +./test_m68k +./test_mips +./test_mos65xx +./test_ppc +./test_skipdata +./test_sparc +./test_systemz +./test_tms320c64x +./test_wasm +./test_winkernel +./test_x86 +./test_xcore \ No newline at end of file From 6b02e79da69730ac34a9b252904a74676acf3c97 Mon Sep 17 00:00:00 2001 From: kabeor <1597915586@qq.com> Date: Fri, 19 Nov 2021 13:40:27 +0800 Subject: [PATCH 2/2] fix test_all.sh permission issue --- .github/workflows/CITest.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CITest.yml b/.github/workflows/CITest.yml index df4309ad61..1d2c6dd7f6 100644 --- a/.github/workflows/CITest.yml +++ b/.github/workflows/CITest.yml @@ -18,4 +18,5 @@ jobs: sudo make install cp libcapstone.so.* bindings/python/libcapstone.so cd tests + chmod +x ./test_all.sh ./test_all.sh \ No newline at end of file