mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-30 08:50:42 +00:00
0a67596f70
* Add test with ASAN enabled.
* Fix leaks in cstool and cs.c
* Add work around so ASAN binaries don't DEADSIGNAL due to too many randomized address bits.
* Add ASAN build arguments to cstest
* Fix leaks in cstest
* Use cstest binary build by the main build.
* Add clonging step for cmocka when cstest is build
* Skip Python tests for ASAN
* Remove make build from CI
* Fix leaks in cstest.
- Rewrite split to remove leaks and improve runtime by 6%
- Add free()
* Fix cmocka external project to stable branch.
* Revert "Fix leaks in cstest."
This reverts commit bf8ee125b0c58f9c794eb081a69c80f8a71825cd.
* Fix memleaks in cstest
* Document adding of ASAN job to release guide
* Add CAPSTONE_BUILD_CSTEST to build docs
* Fix double free
* Add more detail tests to CI and fix them
* Initialize variables
* Fix typo
* Update cstest build docs
* Revert "Remove make build from CI"
This reverts commit 84f7360c6da6183cd41bec0fef3e1d0a2ee49ddf.
* Make cstest only run for cmake builds.
* Add cstest job for make build.
* Add CAPSTONE_DIET build test.
* Compile the compatibility header test with ASAN if enabled.
* Fix DIET build by excluding not used code.
* Missing "
* Build static library with ASAN and DIET if enabled.
* Revert "Add CAPSTONE_DIET build test."
This reverts commit 71e1469dee
.
32 lines
1.6 KiB
Bash
32 lines
1.6 KiB
Bash
#!/bin/sh -x
|
|
|
|
cstool -d x64 0x4 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d arm 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d aarch64 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d alpha 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d mips64 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d ppc64 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d sparc 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d systemz 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d xcore 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d m68k 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d tms320c64x 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d m6811 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d cpu12 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d hd6309 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d hcs08 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d evm 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d 6502 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d 65c02 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d w65c02 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d 65816 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d wasm 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d bpf 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d ebpf 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d riscv64 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d sh 0x1 | grep "ERROR: invalid assembly code" &&
|
|
cstool -d tc162 0x1 | grep "ERROR: invalid assembly code"
|
|
|
|
# One successful disassembly
|
|
cstool -d x64 0xc5,0xca,0x58,0xd4
|