Modern testing #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing cstest | |
on: | |
push: | |
paths: | |
- "suite/cstest/**" | |
pull_request: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build Capstone & cstest | |
run: | | |
mkdir build && cd build | |
# build shared library | |
cmake -DCAPSTONE_INSTALL=1 -DBUILD_SHARED_LIBS=1 -DCMAKE_INSTALL_PREFIX=/usr -DCAPSTONE_BUILD_CSTEST=ON .. | |
sudo cmake --build . --config Release --target install | |
cd .. | |
- name: Parsing tests | |
run: | | |
cd suite/cstest/test/ | |
./run_tests.sh | |