Skip to content

The Great Pcode Extractor Refactoring #695

The Great Pcode Extractor Refactoring

The Great Pcode Extractor Refactoring #695

name: Acceptance tests
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
acceptance-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the cwe_checker docker image
run: docker build -t cwe_checker .
- name: Build and run docker image for cross compiling
run: |
pushd test/artificial_samples
docker build -t cross_compiling .
docker run --rm -v $(pwd)/build:/home/cwe/artificial_samples/build cross_compiling sudo python3 -m SCons
popd
pushd test/lkm_samples
./build.sh
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.82.0
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --locked --no-fail-fast -p acceptance_tests_ghidra -F docker -- --show-output --ignored
- name: Generate zip with test binaries
run: |
zip artificial_samples.zip test/artificial_samples/build/*.out
zip lkm_samples.zip test/lkm_samples/build/*.ko
- name: Archive test binaries
uses: actions/upload-artifact@v4
with:
name: acceptance-test-binaries
path: |
artificial_samples.zip
lkm_samples.zip
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the docker image
run: docker build -t cwe_checker .
- name: Check functionality of the image
run: docker run --rm cwe_checker /bin/echo | grep -q CWE676