2021-04-09 09:54:28 +02:00
|
|
|
name: 'Test'
|
|
|
|
description: 'Run CryFS Tests'
|
2021-04-19 03:49:59 +02:00
|
|
|
inputs:
|
|
|
|
gtest_args:
|
|
|
|
description: "Extra arguments for gtest runners, for example tests to exclude"
|
|
|
|
required: true
|
2021-04-19 19:24:29 +02:00
|
|
|
extra_env_vars:
|
|
|
|
description: "Extra environment variables to set before running tests"
|
|
|
|
required: true
|
2021-04-09 09:54:28 +02:00
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Run tests
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2021-04-17 18:31:10 +02:00
|
|
|
set -v
|
|
|
|
echo Running on ${{runner.os}}
|
2021-04-09 09:54:28 +02:00
|
|
|
cd build
|
2021-04-19 19:24:29 +02:00
|
|
|
|
|
|
|
export ${{ inputs.extra_env_vars }}
|
|
|
|
|
2021-04-19 03:49:59 +02:00
|
|
|
./test/gitversion/gitversion-test ${{inputs.gtest_args}}
|
|
|
|
./test/cpp-utils/cpp-utils-test ${{inputs.gtest_args}}
|
|
|
|
./test/parallelaccessstore/parallelaccessstore-test ${{inputs.gtest_args}}
|
|
|
|
./test/blockstore/blockstore-test ${{inputs.gtest_args}}
|
|
|
|
./test/blobstore/blobstore-test ${{inputs.gtest_args}}
|
|
|
|
./test/cryfs/cryfs-test ${{inputs.gtest_args}}
|
2021-09-02 03:44:21 +02:00
|
|
|
|
2021-04-17 18:31:10 +02:00
|
|
|
# TODO Also run on macOS once fixed
|
|
|
|
if [[ "${{runner.os}}" == "macOS" ]]; then
|
|
|
|
echo Skipping some tests because they are not fixed for macOS yet
|
|
|
|
else
|
2021-04-19 03:49:59 +02:00
|
|
|
# TODO Also run with TSAN once fixed
|
|
|
|
if [[ "${{matrix.name}}" != "TSAN" ]]; then
|
|
|
|
./test/fspp/fspp-test ${{inputs.gtest_args}}
|
|
|
|
fi
|
|
|
|
./test/cryfs-cli/cryfs-cli-test ${{inputs.gtest_args}}
|
2021-04-17 18:31:10 +02:00
|
|
|
fi
|