Skip to content

Commit

Permalink
Add new generator for MC test trnaslation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Apr 26, 2024
1 parent b15b1d6 commit 97192b0
Show file tree
Hide file tree
Showing 10 changed files with 483 additions and 315 deletions.
1 change: 1 addition & 0 deletions .github/workflows/auto-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
- name: Test Header patcher
run: |
python -m unittest src/autosync/Tests/test_header_patcher.py
python -m unittest src/autosync/Tests/test_mcupdater.py
- name: Differ - Test save file is up-to-date
run: |
Expand Down
12 changes: 2 additions & 10 deletions suite/MC/README
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Input files used to test instructions of architectures and modes.

The test cases are taken from `llvm/test/MC`. Note that the LLVM tests
The test cases are taken from `llvm/test/MC`. Note that most of the LLVM tests
are for **encoding** of instructions (`asm_string -> bytes`).

We test the decoding (`bytes -> asm_string`).
Expand All @@ -15,15 +15,7 @@ against `llvm-objdump`.

### Update test files

Run the update script with the paths to LLVM's `MC` test directories

```
cd capstone/suite/MC
./Update.py -a <ARCH> -d llvm-project/llvm/test/MC
./Update.py -a <ARCH> -d llvm-project/llvm/test/MC/Disassembler
```

You can update more fine grained. Check the help to get the possible options.
Check `suite/auto-sync/README.md`

### Test file formatting

Expand Down
304 changes: 0 additions & 304 deletions suite/MC/Update.py

This file was deleted.

Loading

0 comments on commit 97192b0

Please sign in to comment.