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

Add fieldcompare and reference data.

parent 244b7db0
No related branches found
No related tags found
1 merge request!218dynamically create CI pipeline for regression tests.
#!/bin/bash
#################################
# VirtualFludis regression tests
#################################
# 1. Cloning the reference data from github
rm -r reference_data && mkdir -p reference_data
git clone https://github.com/irmb/test_data reference_data
# 2. set up the python environnement
# by cloning our meshio patch and fieldcompare into a venv
python3 -m venv .venv
source .venv/bin/activate
pip install fieldcompare
# 3. Running the specific tests
./regression-tests/driven_cavity_uniform_test.sh
./regression-tests/driven_cavity_test.sh
# How to add a new regression test?
# 1. setup the specfic simulation and run it to create reference data.
# 2. fork https://github.com/irmb/test_data and create a pull request containing the reference data.
......
......@@ -3,6 +3,10 @@
#################################
# Driven Cavity Regression Test
#################################
rm -r reference_data && mkdir -p reference_data
git clone --depth 1 --filter=blob:none --sparse https://github.com/irmb/test_data reference_data
cd reference_data
git sparse-checkout add regression_tests/gpu/DrivenCavity_2Levels
# build VirtualFluids accordingly to our specific test scenario.
# in this case adding -DUSER_APPS="apps/gpu/LBM/DrivenCavity to the cmake command is not necessary, because the DrivenCavity is added to VirtualFluids by default.
......
......@@ -3,6 +3,10 @@
#################################
# Driven Cavity Regression Test
#################################
rm -r reference_data && mkdir -p reference_data
git clone --depth 1 --filter=blob:none --sparse https://github.com/irmb/test_data reference_data
cd reference_data
git sparse-checkout add regression_tests/gpu/DrivenCavity_uniform
# build VirtualFluids accordingly to our specific test scenario.
# in this case adding -DUSER_APPS="apps/gpu/LBM/DrivenCavity to the cmake command is not necessary, because the DrivenCavity is added to VirtualFluids by default.
......
......@@ -14,6 +14,7 @@ stages:
before_script:
- chmod +x ./regression-tests/*
- pip install fieldcompare
{% for regression_test in regression_tests %}
regression-test:{{ regression_test }}:
......
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