Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8445 pr tests #2778

Draft
wants to merge 6 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
77 changes: 77 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
version: 2.1

# loosely based on react's: https://github.com/facebook/react/blob/main/.circleci/config.yml
commands:
install_java17:
steps:
- run:
name: Install Java 17
command: |
sudo apt update && \
sudo apt -y install openjdk-17-jdk openjdk-17-jre
install_java8:
steps:
- run:
name: Install Liberica Java 8
command: |
# technique taken from https://stackoverflow.com/a/71384057/2375948
wget -O- https://download.bell-sw.com/pki/GPG-KEY-bellsoft | gpg --dearmor | sudo tee /usr/share/keyrings/bellsoft.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/bellsoft.gpg] https://apt.bell-sw.com/ stable main" |\
sudo tee /etc/apt/sources.list.d/bellsoft.list && \
sudo apt update && \
sudo apt -y install bellsoft-java8-full
install_dependencies:
steps:
- run:
name: Install Dependencies
command: |
sudo apt update &&
sudo apt -y install build-essential autoconf libtool automake zip ant \
libpq-dev \
testdisk libafflib-dev libewf-dev libvhdi-dev libvmdk-dev
build_tsk:
steps:
- run:
name: Build The Sleuth Kit and Install
command: |
./bootstrap &&
./configure &&
make &&
sudo make install
test_tsk:
steps:
- run:
name: Run The Sleuth Kit Tests
command: |
ant -f ./bindings/java clean dist test

jobs:
java_8_test_job:
description: Java 8 Test
docker:
- image: cimg/base:2022.11
steps:
- checkout
- install_java8
- install_dependencies
- build_tsk
- test_tsk

java_17_test_job:
description: Java 17 Test
docker:
- image: cimg/base:2022.11
steps:
- checkout
- install_java17
- install_dependencies
- build_tsk
- test_tsk

workflows:
java_8_test:
jobs:
- java_8_test_job
java_17_test:
jobs:
- java_17_test_job
75 changes: 75 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: The Sleuth Kit Tests

on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]


jobs:
java8build:
runs-on: ubuntu-latest
env:
JAVA_HOME: /usr/lib/jvm/bellsoft-java8-full-amd64
steps:
- uses: actions/checkout@v3
- name: Install Java 8
run: |
# technique taken from https://stackoverflow.com/a/71384057/2375948
wget -O- https://download.bell-sw.com/pki/GPG-KEY-bellsoft | gpg --dearmor | sudo tee /usr/share/keyrings/bellsoft.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/bellsoft.gpg] https://apt.bell-sw.com/ stable main" |\
sudo tee /etc/apt/sources.list.d/bellsoft.list && \
sudo apt update && \
sudo apt -y install bellsoft-java8-full
- name: Install Dependencies
run: |
sudo apt update &&
sudo apt -y install build-essential autoconf libtool automake git zip wget ant \
libpq-dev \
testdisk libafflib-dev libewf-dev libvhdi-dev libvmdk-dev
- name: Fix Line Endings
run: |
sudo apt update &&
sudo apt -y install dos2unix &&
find . \( -name "*.m4" -o -name "*.ac" -o -name "*.am" \) | xargs dos2unix
- name: Build And Install
run: |
chmod a+x ./bootstrap &&
./bootstrap &&
chmod a+x ./configure &&
./configure &&
make &&
sudo make install
- name: Run The Sleuth Kit tests
run: ant -f ./bindings/java clean dist test

java17build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Java 17
run: |
sudo apt update &&
sudo apt -y install openjdk-17-jdk openjdk-17-jre
- name: Install Dependencies
run: |
sudo apt update &&
sudo apt -y install build-essential autoconf libtool automake git zip wget ant \
libpq-dev \
testdisk libafflib-dev libewf-dev libvhdi-dev libvmdk-dev
- name: Fix Line Endings
run: |
sudo apt update &&
sudo apt -y install dos2unix &&
find . \( -name "*.m4" -o -name "*.ac" -o -name "*.am" \) | xargs dos2unix
- name: Build And Install
run: |
chmod a+x ./bootstrap &&
./bootstrap &&
chmod a+x ./configure &&
./configure &&
make &&
sudo make install
- name: Run The Sleuth Kit tests
run: ant -f ./bindings/java clean dist test