capstone/tests/integration
2026-08-13 10:29:27 +00:00
..
compat_header RISC-V: Add v5 compatibility behaviour for CS_MODE_RISCVC/RISCV_C (#2996) 2026-07-18 16:58:01 +00:00
CMakeLists.txt Add Valgrind cmake tests. (#3030) 2026-08-13 10:29:27 +00:00
README.md Modern Testing (#2456) 2024-08-31 21:33:38 +08:00
test_assert_macros.c Add pre-release version to as macro (#2935) 2026-05-28 09:19:43 +00:00
test_customized_mnem.c Add workflow to check for C code formatting and format all code with clang-format-17 (#2744) 2025-08-27 08:50:50 +00:00
test_iter.c Add workflow to check for C code formatting and format all code with clang-format-17 (#2744) 2025-08-27 08:50:50 +00:00
test_litbase.c xtensa: update to espressif/llvm-project (#2533) 2024-11-10 21:55:40 +08:00
test_poc.c Fix access to uninitialized memory. (#3011) 2026-08-13 09:18:52 +00:00
test_skipdata.c Add workflow to check for C code formatting and format all code with clang-format-17 (#2744) 2025-08-27 08:50:50 +00:00
test_winkernel.cpp Modern Testing (#2456) 2024-08-31 21:33:38 +08:00

This directory contains some test code to show how to use Capstone API.

  • test_iter.c: This code shows how to use the API cs_disasm_iter() to decode one instruction at a time inside a loop.

  • test_customized_mnem.c: This code shows how to use MNEMONIC option to customize instruction mnemonic at run-time, and then how to reset the engine to use the default mnemonic.

  • test_winkernel.cpp This code shows how to use Capstone from a Windows driver.