Skip to content

add testrunner stub

add testrunner stub #1

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/testrunner.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/testrunner.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: testrunner
on:
pull_request:
branches:
-master
paths-ignore:
- "*.md"
- "*.txt"
- "doxyfile"
workflow_dispatch:
concurrency:
group: ci-${{ github.head_ref }}
cancel-in-progress: true
jobs:
testrunner:
strategy:
fail-fast: true
matrix:
sanitizer: [none, address]
type: [RelWithDebInfo, Release]
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build
run: ./build.sh -t "${{ matrix.type }}" -o "-fsanitize=${{ matrix.sanitizer }}"
- name: Run tests
run: |
cd $build
tar -xvzf input.tar.gz
cd ..
for shrinkingFactor in 64 128 256; do
for threadCount in 1 2 4; do
for case in mok_structure mok_fluid big; do
echo "Running $case on $threadCount threads with $shrinkingFactor shrinking ..."
export OMP_NUM_THREADS=$threadCount
if ! build/bin/mcgs_testrunner \
test/${case}.mm test/${case}_rhs.mm \
-s $shrinkingFactor $shrinkingFactor \
-i 1e2
then exit 1
fi
done
done
done