You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
_xeroxz 305167eb51
init commit
3 years ago
..
include init commit 3 years ago
src init commit 3 years ago
Makefile init commit 3 years ago
README.md init commit 3 years ago
build_cstest.sh init commit 3 years ago
cstest_report.py init commit 3 years ago
issues.cs init commit 3 years ago

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

  • Usage: cstest [-e] [-f <file_name.cs>] [-d <directory>]

    • -e : test all commented test
  • 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

Report tool

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

    • -D : print details
    • -c : auto comment out failed test
  • Example:

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