Skip to content
Snippets Groups Projects
Commit b355a0b6 authored by Soeren Peters's avatar Soeren Peters
Browse files

Adds drivencavity regression test with fieldcompare and corresponding CI job

parent b904c129
No related branches found
No related tags found
1 merge request!147Add regression test with fieldcompare with corresponding CI job.
...@@ -269,6 +269,29 @@ gpu_numerical_tests: ...@@ -269,6 +269,29 @@ gpu_numerical_tests:
paths: paths:
- $CI_PROJECT_DIR/numerical_tests_gpu_results.txt - $CI_PROJECT_DIR/numerical_tests_gpu_results.txt
###############################################################################
run-regression-tests:
stage: test
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: always
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- when: manual
allow_failure: true
needs: []
tags:
- gpu
- linux
before_script:
- chmod +x ./regression-tests/*
script:
- ./regression-tests/regression-tests.sh
############################################################################### ###############################################################################
## Code analysis ## ## Code analysis ##
...@@ -421,7 +444,7 @@ gcov_gcc_9: ...@@ -421,7 +444,7 @@ gcov_gcc_9:
- coverage/ - coverage/
reports: reports:
coverage_report: coverage_report:
coverage_format: cobertura coverage_format: cobertura
path: coverage/coverage.xml path: coverage/coverage.xml
......
#!/bin/bash
mkdir -p build
cmake -B build --preset=gpu_make -DCMAKE_CUDA_ARCHITECTURES=75 #-DUSER_APPS="apps/gpu/LBM/DrivenCavity"
cd build && make -j 8 && cd ..
./build/bin/DrivenCavity
PATH_TO_DIR=output/DrivenCavity
PATH_TO_REFERENCE_DIR=regression-tests/reference_data/regression_tests_gpu/DrivenCavity
~/.local/bin/fieldcompare dir $PATH_TO_DIR --reference $PATH_TO_REFERENCE_DIR --include-files "*.vtu"
\ No newline at end of file
#!/bin/bash
mkdir -p regression-tests/reference_data
git clone https://github.com/irmb/test_data regression-tests/reference_data
python3 -m venv .venv
source .venv/bin/activate
pip install git+https://github.com/soerenPeters/meshio@update-pyproject-version
pip install git+https://gitlab.com/dglaeser/fieldcompare
./regression-tests/driven_cavity_test.sh
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment