Skip to content

Commit

Permalink
Remove McSema from testing (#831)
Browse files Browse the repository at this point in the history
We don't have enough time to support the required changes as
dependencies are updated. Anvill and rellic are receiving more
development effort at this time
  • Loading branch information
ekilmer authored Oct 5, 2021
1 parent 9395d14 commit 64af8d8
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 133 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/vcpkg_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,51 +274,6 @@ jobs:
cmake --build . --target install
./install/bin/anvill-decompile-json-* -spec ../tools/decompile-json/tests/specs/ret0.json -bc_out ./ret0.bc -ir_out ret0.ir
- name: 'Anvill-McSema build - custom remill'
shell: 'bash'
if: ${{ matrix.llvm != 'llvm-12' && matrix.llvm != 'llvm-13' }}
run: |
cd anvill-mcsema
rm -rf build
mkdir -p build && cd build
cmake -G Ninja \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX="$(pwd)/install" \
-DVCPKG_ROOT="${VCPKG_ROOT}" \
-DANVILL_ENABLE_INSTALL_TARGET=ON \
-Dremill_DIR="$(pwd)/../../remill/build/install/lib/cmake/remill" \
..
cmake --build .
cmake --build . --target install
./install/bin/anvill-decompile-json-* -spec ../tools/decompile-json/tests/specs/ret0.json -bc_out ./ret0.bc -ir_out ret0.ir
- name: 'Test mcsema build'
shell: 'bash'
if: ${{ matrix.llvm != 'llvm-12' && matrix.llvm != 'llvm-13' }}
run: |
cd mcsema
rm -rf build
mkdir -p build && cd build
cmake -G Ninja \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX="$(pwd)/install" \
-DVCPKG_ROOT="${VCPKG_ROOT}" \
-Dremill_DIR="$(pwd)/../../remill/build/install/lib/cmake/remill" \
-Danvill_DIR="$(pwd)/../../anvill-mcsema/build/install/lib/cmake/anvill" \
..
cmake --build .
cmake --build . --target install
./install/bin/mcsema-lift-* --version
./install/bin/mcsema-lift-* --arch amd64 --os linux --cfg ../tests/test_suite_generator/generated/prebuilt_cfg/amd64/linux/cfg/hello_world --output hello_world.bc
# See https://github.com/lifting-bits/mcsema/issues/753
if [ ${{ matrix.host.arch }} == "arm64" ] ; then
./install/bin/mcsema-lift-* --arch x86 --os linux --cfg ../tests/test_suite_generator/generated/prebuilt_cfg/x86/linux/cfg/hello_world --output hello_world.bc || true
else
./install/bin/mcsema-lift-* --arch x86 --os linux --cfg ../tests/test_suite_generator/generated/prebuilt_cfg/x86/linux/cfg/hello_world --output hello_world.bc
fi
- name: Publish Release Assets
if: |
github.event.release
Expand Down
37 changes: 0 additions & 37 deletions .github/workflows/vcpkg_ci_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,43 +232,6 @@ jobs:
cmake --build . --target install
./install/bin/anvill-decompile-json-* -spec ../tools/decompile-json/tests/specs/ret0.json -bc_out ./ret0.bc -ir_out ret0.ir
- name: 'Anvill-McSema build - custom remill'
shell: 'bash'
if: ${{ matrix.llvm != 'llvm-12' && matrix.llvm != 'llvm-13' }}
run: |
cd anvill-mcsema
mkdir -p build && cd build
cmake -G Ninja \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX="$(pwd)/install" \
-DVCPKG_ROOT="${VCPKG_ROOT}" \
-DANVILL_ENABLE_INSTALL_TARGET=ON \
-Dremill_DIR="$(pwd)/../../remill/build/install/lib/cmake/remill" \
..
cmake --build .
cmake --build . --target install
./install/bin/anvill-decompile-json-* -spec ../tools/decompile-json/tests/specs/ret0.json -bc_out ./ret0.bc -ir_out ret0.ir
- name: 'Test mcsema build'
shell: 'bash'
if: ${{ matrix.llvm != 'llvm-12' && matrix.llvm != 'llvm-13' }}
run: |
cd mcsema
mkdir -p build && cd build
cmake -G Ninja \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX="$(pwd)/install" \
-DVCPKG_ROOT="${VCPKG_ROOT}" \
-Dremill_DIR="$(pwd)/../../remill/build/install/lib/cmake/remill" \
-Danvill_DIR="$(pwd)/../../anvill-mcsema/build/install/lib/cmake/anvill" \
..
cmake --build .
cmake --build . --target install
./install/bin/mcsema-lift-* --version
./install/bin/mcsema-lift-* --arch amd64 --os linux --cfg ../tests/test_suite_generator/generated/prebuilt_cfg/amd64/linux/cfg/hello_world --output hello_world.bc
./install/bin/mcsema-lift-* --arch x86 --os linux --cfg ../tests/test_suite_generator/generated/prebuilt_cfg/x86/linux/cfg/hello_world --output hello_world.bc
- name: Publish Release Assets
if: |
github.event.release
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/vcpkg_ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,48 +232,6 @@ jobs:
& ( Get-ChildItem install\bin | Where-Object {$_.name -match "anvill-decompile-json-.*.exe"} ) -spec ..\tools\decompile-json\tests\specs\ret0.json -bc_out ret0.bc -ir_out ret0.ir
- name: 'Anvill-McSema build - custom remill'
if: ${{ matrix.llvm == 'llvm-11' }}
run: |
cd anvill-mcsema
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue .\build
New-Item -Path .\build -ItemType Directory
cd build
cmake -T ClangCl `
-DCMAKE_VERBOSE_MAKEFILE=ON `
-DCMAKE_INSTALL_PREFIX="$(pwd)\install" `
-DVCPKG_ROOT="${env:VCPKG_ROOT}" `
-DANVILL_ENABLE_INSTALL_TARGET=ON `
-Dremill_DIR="$(pwd)\..\..\remill\build\install\lib\cmake\remill" `
..
cmake --build . --config Release -j
cmake --build . --config Release --target install
& ( Get-ChildItem install\bin | Where-Object {$_.name -match "anvill-decompile-json-.*.exe"} ) -spec ..\tools\decompile-json\tests\specs\ret0.json -bc_out ret0.bc -ir_out ret0.ir
- name: 'Test mcsema build'
if: ${{ matrix.llvm == 'llvm-11' }}
run: |
cd mcsema
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue .\build
New-Item -Path .\build -ItemType Directory
cd build
cmake -T ClangCl `
-DCMAKE_VERBOSE_MAKEFILE=ON `
-DCMAKE_INSTALL_PREFIX="$(pwd)\install" `
-DVCPKG_ROOT="${env:VCPKG_ROOT}" `
-DMCSEMA_INSTALL_PYTHON2_LIBS=OFF `
-DMCSEMA_INSTALL_PYTHON3_LIBS=OFF `
-Dremill_DIR="$(pwd)\..\..\remill\build\install\lib\cmake\remill" `
-Danvill_DIR="$(pwd)\..\..\anvill-mcsema\build\install\lib\cmake\anvill" `
..
cmake --build . --config Release -j
cmake --build . --config Release --target install
& ( Get-ChildItem install\mcsema\bin | Where-Object {$_.name -match "mcsema-lift-.*.exe"} ) --version
& ( Get-ChildItem install\mcsema\bin | Where-Object {$_.name -match "mcsema-lift-.*.exe"} ) --arch amd64 --os linux --cfg ..\tests\test_suite_generator\generated\prebuilt_cfg\amd64\linux\cfg\hello_world --output hello_world.bc
& ( Get-ChildItem install\mcsema\bin | Where-Object {$_.name -match "mcsema-lift-.*.exe"} ) --arch x86 --os linux --cfg ..\tests\test_suite_generator\generated\prebuilt_cfg\x86\linux\cfg\hello_world --output hello_world.bc
- name: Publish Release Assets
if: |
github.event.release
Expand Down
7 changes: 0 additions & 7 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[submodule "mcsema"]
path = mcsema
url = https://github.com/lifting-bits/mcsema.git
branch = master
[submodule "remill"]
path = remill
url = https://github.com/lifting-bits/remill.git
Expand All @@ -14,6 +10,3 @@
path = rellic
url = https://github.com/lifting-bits/rellic.git
branch = master
[submodule "anvill-mcsema"]
path = anvill-mcsema
url = https://github.com/lifting-bits/anvill.git
1 change: 0 additions & 1 deletion anvill-mcsema
Submodule anvill-mcsema deleted from bc3183
1 change: 0 additions & 1 deletion mcsema
Submodule mcsema deleted from d538ca

0 comments on commit 64af8d8

Please sign in to comment.