Skip to content

Commit

Permalink
Add tests for inc generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Mar 21, 2024
1 parent d0d0f28 commit dbfdf9b
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/auto-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,38 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Check out repository
uses: actions/checkout@v4

- name: Install clang-format
run: sudo apt install clang-format-18

- name: Install auto-sync package
run: |
pip install .
- name: Check formatting
run: |
python3.11 -m black --check src/autosync
- name: Build llvm-tblgen
run: |
git clone [email protected]:capstone-engine/llvm-capstone.git
cd llvm-capstone
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug ../llvm
cmake --build . --target llvm-tblgen --config Debug
cd ../../
- name: Test generationof inc files
run: |
./src/autosync/ASUpdater.py -a AArch64 -s IncGen
./src/autosync/ASUpdater.py -a Alpha -s IncGen
./src/autosync/ASUpdater.py -a ARM -s IncGen
./src/autosync/ASUpdater.py -a PPC -s IncGen
- name: CppTranslator - Patch tests
run: |
python -m unittest discover src/autosync/cpptranslator/Tests/
python -m unittest discover src/autosync/cpptranslator/Tests/

0 comments on commit dbfdf9b

Please sign in to comment.