File: test_mc.sh

package info (click to toggle)
capstone 5.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie, trixie-proposed-updates
  • size: 58,188 kB
  • sloc: ansic: 96,086; cpp: 67,489; cs: 29,510; python: 25,829; pascal: 24,412; java: 15,582; ml: 14,473; makefile: 1,275; sh: 479; ruby: 386
file content (15 lines) | stat: -rwxr-xr-x 599 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# This script test all architectures by default.
# At the output are all the mismatches between Capstone (CS) & LLVM (MC).
# While most differences coming from the fact that Capstone uses more friendly
# number format, some mismatches might be because Capstone is based on older
# version of LLVM (which should be fixed in the next release)

find MC/ -name *.cs | ./test_mc.py

# To test just one architecture, specify the corresponsing dir:
# $ find MC/X86 -name *.cs | ./test_mc.py

# To test just one input file, run test_mc.py with that file:
# $ ./test_mc.py MC/X86/x86-32-fma3.s.cs