capstone/suite/cstest
HarDToBelieve 55af82c52a fixed Mos65xx not included in MacOS; Add -D option to report; Add NOREGNAME while testing 2019-02-12 12:58:46 +07:00
..
include fixed Mos65xx not included in MacOS; Add -D option to report; Add NOREGNAME while testing 2019-02-12 12:58:46 +07:00
src fixed Mos65xx not included in MacOS; Add -D option to report; Add NOREGNAME while testing 2019-02-12 12:58:46 +07:00
Makefile fix Makefile 2019-02-09 07:23:44 -08:00
README.md cstest: README 2019-02-12 00:31:45 +08:00
issues.cs fixed Mos65xx not included in MacOS; Add -D option to report; Add NOREGNAME while testing 2019-02-12 12:58:46 +07:00
report.py fixed Mos65xx not included in MacOS; Add -D option to report; Add NOREGNAME while testing 2019-02-12 12:58:46 +07:00

README.md

Regression testing

This directory contains a tool for regression testing core of Capstone

Dependency

  • MacOS users can install cmocka with:
brew install cmocka
  • Or download & build from source code Cmocka

  • Build Cmocka

cd cmocka_dir
mkdir build
cd build
cmake ..
make
sudo make isntall

Build

  • Build cstest
cd suite/cstest
make

Usage

  • Test for all closed issues
cd suite/cstest
./build/cstest -f ./issues.cs
  • Test for some input from LLVM
cd suite/cstest
./build/cstest -f ../MC/AArch64/basic-a64-instructions.s.cs
  • Test for all cs file in a folder
cd suite/cstest
./build/cstest -d ../MC
  • Test all
cd suite/cstest
make cstest

Using report tool

  • Usage python report.py -t <cstest_path> [-f <file_name.cs>] [-d <directory>]

  • Example:

./report.py -t build/cstest -d ../MC/PowerPC/
./report.py -t build/cstest -f issues.cs