add CI Test support

This commit is contained in:
kabeor 2021-11-19 13:37:09 +08:00
parent 9963db3952
commit 204d13a09e
2 changed files with 42 additions and 0 deletions

21
.github/workflows/CITest.yml vendored Normal file
View File

@ -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

21
tests/test_all.sh Normal file
View File

@ -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