suite/cstest/README.md
This directory contains a tool for regression testing core of Capstone
brew install cmocka
Or download & build from source code Cmocka
Build Cmocka
cd cmocka_dir
mkdir build
cd build
cmake ..
make
sudo make isntall
cstestcd suite/cstest
make
Usage: cstest [-e] [-f <file_name.cs>] [-d <directory>]
-e : test all commented testTest for all closed issues
cd suite/cstest
./build/cstest -f ./issues.cs
cd suite/cstest
./build/cstest -f ../MC/AArch64/basic-a64-instructions.s.cs
cd suite/cstest
./build/cstest -d ../MC
cd suite/cstest
make cstest
Usage cstest_report.py [-Dc] -t <cstest_path> [-f <file_name.cs>] [-d <directory>]
-D : print details-c : auto comment out failed testExample:
./cstest_report.py -t build/cstest -d ../MC/PowerPC/
./cstest_report.py -t build/cstest -f issues.cs