Skip to content

Commit c26fe01

Browse files
committed
Remove nested .git from TestCases/TestCases and add nested preconditioner test scripts
1 parent 8e00bff commit c26fe01

File tree

530 files changed

+61398
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

530 files changed

+61398
-1
lines changed

TestCases/TestCases

Lines changed: 0 additions & 1 deletion
This file was deleted.

TestCases/TestCases/.travis.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Continous Integration setup for SU2.
2+
# Tests with the SU2 develop branch when the TestCases repository is modified.
3+
4+
language: cpp
5+
6+
compiler:
7+
- g++
8+
9+
notifications:
10+
email:
11+
recipients:
12+
13+
14+
branches:
15+
only:
16+
- develop
17+
18+
env:
19+
global:
20+
CXXFLAGS=-O3
21+
BUILD_DIR=$TRAVIS_BUILD_DIR/SU2
22+
matrix:
23+
# Serial build and test
24+
- CONFIGURE_COMMAND="./configure --prefix=$BUILD_DIR --enable-PY_WRAPPER"
25+
TEST_SCRIPT=serial_regression.py
26+
# Parallel build and test
27+
- CONFIGURE_COMMAND="./configure --enable-mpi --with-cc=mpicc --with-cxx=mpicxx --prefix=$BUILD_DIR --enable-PY_WRAPPER"
28+
TEST_SCRIPT=parallel_regression.py
29+
30+
before_install:
31+
# install the necessary packages
32+
- sudo apt-get update -qq
33+
- sudo apt-get install -qq python-numpy python-scipy python-pip mpich2 swig
34+
# Move all of the test data for easier copying into the SU2 repo
35+
- mkdir TestData
36+
- shopt -s extglob
37+
- mv -- !(TestData) TestData
38+
# Get the code
39+
- git clone https://github.com/su2code/SU2.git
40+
- cd SU2
41+
- git checkout develop
42+
43+
install:
44+
- sudo pip install mpi4py
45+
- echo $BUILD_DIR
46+
- echo $CONFIGURE_COMMAND
47+
- $CONFIGURE_COMMAND
48+
- make -j 4
49+
- make install
50+
51+
# Add environmental variables according to the configure step
52+
- export SU2_RUN=$BUILD_DIR/bin
53+
- export SU2_HOME=$BUILD_DIR
54+
- export PATH=$PATH:$SU2_RUN
55+
- export PYTHONPATH=$PYTHONPATH:$SU2_RUN
56+
57+
before_script:
58+
# Copy the test case data from above into the folder structure
59+
- cp -R ../TestData/* ./TestCases/
60+
# Enter the SU2/TestCases/ directory, which is now ready to run
61+
- cd TestCases/
62+
63+
script:
64+
# run the tests
65+
python $TEST_SCRIPT
66+

TestCases/TestCases/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
--------------------------------
2+
SU2: The Open-Source CFD Code
3+
--------------------------------
4+
5+
Computational analysis tools have revolutionized the way we design aerospace systems, but most established codes are proprietary, unavailable, or prohibitively expensive for many users. The SU2 team is changing this, making computational analysis and design freely available as open-source software and involving everyone in its creation and development.
6+
7+
-----------------------------------------------------------
8+
SU2 TEST CASES
9+
-----------------------------------------------------------
10+
11+
SU2 provides an extensive collection of common test cases. The test cases contain meshes and configuration files that can be run to ensure different components of the suite are working properly. The directory structure is organized by governing equations and their specific cases.
12+
13+
The files found within these directories serve two purposes:
14+
15+
1. A subset of the available cases are used for regression testing internally by the development team. The configuration files and meshes are automatically downloaded and executed with the latest version of SU2 at regular intervals. Any changes in the output of the specified test cases are immediately reported to the developers. These cases are controlled by the Python scripts in the root of the test cases directory, e.g., serial_regression.py.
16+
17+
2. The entire suite of test cases is provided to the community as a way to get started with SU2 and its many configuration options, including settings that the developers consider to be good starting points. Often, you will find a test case that is similar to your problem of interest, and the available configuration files can be modified to suit your needs.
18+
19+
Note that, while many of the cases are used for regression testing, this test case suite is provided **without any guarantees on performance or expected results** (check out the [tutorials](https://su2code.github.io/tutorials/home/) for more thoroughly maintained cases). Keep in mind that small changes to the configuration options can often result in large changes to the output. We encourage the community to experiment with these test cases, or even try (and share!) other interesting validation cases with SU2!
20+
21+
Happy testing!
22+
23+
- The SU2 Development Team

0 commit comments

Comments
 (0)