Add test #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test PyLLVMPass | |
runs-on: ubuntu-latest | |
steps: | |
- name: "checkout repository" | |
uses: actions/checkout@v4 | |
- name: "install deps" | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
run: | | |
sudo apt update | |
sudo apt install clang-18 | |
ls /usr/lib/x86_64-linux-gnu/ | grep libclang | |
cargo build | |
pip install pytest | |
- name: "run tests" | |
run: | | |
cd test | |
LLVM_CONFIG=llvm-config-18 PYLLVM_PLUGIN_PATH=../target/debug/libpyllvmpass.so pytest |