-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
975ed34
commit aa1dbb5
Showing
41 changed files
with
1,480 additions
and
319 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1514 | ||
1515 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Tests on Linux with LLVM | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.9] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Upgrade pip version | ||
run: | | ||
python -m pip install -U pip | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install python-setuptools libboost-dev | ||
- name: Install Z3 | ||
run: | | ||
sudo apt-get install libz3-dev | ||
python -m pip install z3-solver | ||
- name: Install Capstone | ||
run: | | ||
wget https://github.com/aquynh/capstone/archive/4.0.2.tar.gz | ||
tar -xf ./4.0.2.tar.gz | ||
cd ./capstone-4.0.2 | ||
bash ./make.sh | ||
sudo make install | ||
cd ../ | ||
- name: Install Unicorn | ||
run: | | ||
git clone https://github.com/unicorn-engine/unicorn | ||
cd ./unicorn | ||
git checkout ec4c6365c3c91703b3725540100023f6a03db742 # 1.0.2-rc2 | ||
UNICORN_ARCHS="x86 arm aarch64" ./make.sh # we use unicorn to only test some semantics | ||
sudo make install | ||
cd bindings/python | ||
python ./setup.py install --user | ||
cd ../../../ | ||
- name: Install LIEF | ||
run: | | ||
python -m pip install lief | ||
- name: Compile Triton | ||
run: | | ||
mkdir ./build | ||
cd ./build | ||
cmake -DLLVM_INTERFACE=ON -DLLVM_INCLUDE_DIRS=$(llvm-config-12 --includedir) -DLLVM_LIBRARIES=$(llvm-config-12 --libfiles) .. | ||
sudo make -j3 install | ||
- name: Unittests | ||
run: | | ||
make -C build check |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# - Try to find LLVM | ||
# Once done, this will define | ||
# | ||
# LLVM_INCLUDE_DIRS - the LLVM include directories | ||
# LLVM_LIBRARIES - link these to use LLVM | ||
|
||
if(NOT LLVM_INCLUDE_DIRS) | ||
set(LLVM_INCLUDE_DIRS "$ENV{LLVM_INCLUDE_DIRS}") | ||
endif() | ||
|
||
if(NOT LLVM_LIBRARIES) | ||
set(LLVM_LIBRARIES "$ENV{LLVM_LIBRARIES}") | ||
endif() | ||
|
||
if(NOT LLVM_INCLUDE_DIRS AND NOT LLVM_LIBRARIES) | ||
message(FATAL_ERROR "LLVM not found") | ||
else() | ||
message(STATUS "LLVM includes directory defined: ${LLVM_INCLUDE_DIRS}") | ||
message(STATUS "LLVM libraries defined: ${LLVM_LIBRARIES}") | ||
endif() |
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
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
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
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
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
Oops, something went wrong.