-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
cd $LEGOLASDIR | ||
|
||
# Build Legolas | ||
if [[ ! -d build ]]; then | ||
mkdir build | ||
fi | ||
cd build | ||
cmake .. | ||
make -j 2 | ||
cd .. | ||
|
||
# Run regression tests | ||
cd tests/regression_tests | ||
pytest -v regression.py test* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
cd $LEGOLASDIR | ||
|
||
# Pull and compile pFUnit if not yet available | ||
if [[ ! -d tests/pFUnit ]]; then | ||
cd tests | ||
git clone https://github.com/Goddard-Fortran-Ecosystem/pFUnit.git | ||
cd pFUnit | ||
mkdir build | ||
cd build | ||
cmake .. -DSKIP_MPI=YES -DSKIP_OPENMP=YES -DSKIP_FHAMCREST=YES | ||
make -j 2 tests | ||
make -j 2 install | ||
cd ../../.. | ||
fi | ||
|
||
# Build Legolas | ||
if [[ ! -d build ]]; then | ||
mkdir build | ||
fi | ||
cd build | ||
cmake .. | ||
make -j 2 | ||
cd .. | ||
|
||
# Build and run unit tests | ||
cd tests/unit_tests | ||
if [[ ! -d build ]]; then | ||
mkdir build | ||
fi | ||
cd build | ||
env PFUNIT_DIR="$LEGOLASDIR/tests/pFUnit/build/" cmake .. | ||
make -j 2 | ||
cd .. | ||
./test_legolas | ||
|