Skip to content

Commit

Permalink
adds travis check for regular kernel example
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeter committed Jul 26, 2018
1 parent 621cb34 commit 29c3598
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -58,6 +58,9 @@ env:
# point force example
- TESTMAKE=5 TESTCOV=0 TEST="" CUDA=false

# regular kernel example
- TESTMAKE=6 TESTCOV=0 TEST="--enable-vectorization" CUDA=false


before_install:
# informations on git
Expand Down
13 changes: 13 additions & 0 deletions .travis/run_tests.sh
Expand Up @@ -15,6 +15,7 @@ case "$TESTMAKE" in
3) dir=EXAMPLES/regional_Greece_small/ ;;
4) dir=EXAMPLES/global_small/ ;;
5) dir=EXAMPLES/point_force/ ;;
6) dir=EXAMPLES/regular_kernel/ ;;
*) dir=EXAMPLES/regional_Greece_small/ ;;
esac

Expand Down Expand Up @@ -157,6 +158,18 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTMAKE" == "1" ]; then
fi
echo -en 'travis_fold:end:coverage.point-force\\r'

echo 'Coverage...' && echo -en 'travis_fold:start:coverage.regular-kernel\\r'
if [ "$TESTCOV" == "1" ] && [ "$TESTMAKE" == "1" ]; then
##
## testing regular_kernel
##
cd EXAMPLES/regular_kernel/
sed -i "s:^RECORD_LENGTH_IN_MINUTES .*:RECORD_LENGTH_IN_MINUTES = 0.0:" DATA/Par_file
./run_this_example.sh
cd $WORKDIR
fi
echo -en 'travis_fold:end:coverage.regular-kernel\\r'

echo 'Coverage...' && echo -en 'travis_fold:start:coverage.global-small\\r'
if [ "$TESTCOV" == "1" ] && [ "$TESTMAKE" == "2" ]; then
##
Expand Down
3 changes: 3 additions & 0 deletions Makefile.in
Expand Up @@ -352,6 +352,7 @@ DEFAULT = \
xconvolve_source_timefunction \
xcreate_movie_AVS_DX \
xcreate_movie_GMT_global \
xwrite_profile \
$(EMPTY_MACRO)

ifeq ($(ADIOS), yes)
Expand Down Expand Up @@ -416,6 +417,7 @@ help:
@echo " xconvolve_source_timefunction"
@echo " xcreate_movie_AVS_DX"
@echo " xcreate_movie_GMT_global"
@echo " xwrite_profile"
@echo ""
@echo "additional executables:"
@echo "- auxiliary executables: [make aux]"
Expand All @@ -428,6 +430,7 @@ endif
@echo " xcombine_surf_data"
@echo " xcombine_AVS_DX"
@echo " xconvolve_source_timefunction"
@echo " xwrite_profile"
@echo ""
@echo "- movie executables: [make movies]"
@echo " xcreate_movie_AVS_DX"
Expand Down

0 comments on commit 29c3598

Please sign in to comment.