Changeset 25924
- Timestamp:
- 01/05/21 11:26:26 (4 years ago)
- Location:
- issm/trunk-jpl/jenkins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/jenkins/examples_tests.sh
r25915 r25924 1 1 #!/bin/bash 2 2 ################################################################################ 3 # This script runs the examples tests. It is intended to be called from 4 # jenkins/jenkins.sh and helps organization. 3 # This script runs the examples tests (i.e. contents of examples directory, 4 # which are implementations of the tutorials found at 5 # https://issm.jpl.nasa.gov/documentation/tutorials/). It is intended to be 6 # called from jenkins/jenkins.sh. 7 # 8 # runme files are modifed as needed to fill in statements that would otherwise 9 # be added by user. 10 # 11 # NOTE: 12 # - Indentation of replacement string literals (e.g. 'STEP_EIGHT') is set to 13 # nest cleanly in this file, but will result in unclean nesting runme file 14 # (which should not be an issue) 15 # - Single-line string replacements in runme.m can effectively be performed 16 # using sed. When performing multi-line replacements, perl is a better 17 # option. 5 18 # 6 19 # TODO: … … 27 40 for dir in ./* ; do 28 41 if [ -d "${dir}" ]; then 42 # Temporary short circuit to check single example 43 if [ "${dir}" != "./UncertaintyQuantification" ]; then 44 continue 45 fi 46 29 47 # Some of the examples are incomplete (on purpose). As such, we 30 48 # will have to populate the missing steps in order to make sure … … 581 599 RUN_EXAMPLE=1 582 600 elif [ "${dir}" == "./UncertaintyQuantification" ]; then 583 #Step 3: sampling analysis584 #Index exceeds the number of array elements (1).585 #586 #Error in AreaAverageOntoPartition (line 50)587 # partvector(i)=sum(weightedvector(pos))/sum(md.qmu.vertex_weight(pos));588 #589 #Error in runme (line 78)590 # DeltaHH_on_partition=AreaAverageOntoPartition(md,DeltaHH,partition);591 601 sed -i '.bak' 's|steps=\[1\];|steps=\[1:7\];\n\ntry\n|' $RUNME_FILE 592 RUN_EXAMPLE= 0602 RUN_EXAMPLE=1 593 603 else 594 604 echo "Not implemented yet!" -
issm/trunk-jpl/jenkins/jenkins.sh
r25917 r25924 423 423 # Examples Tests 424 424 # {{{ 425 # The following tests check that the examples (i.e. contents of examples426 # directory, which are implementations of the tutorials found at427 # https://issm.jpl.nasa.gov/documentation/tutorials/) can be run.428 #429 # runme files are modifed as needed to fill in statements that would otherwise430 # be added by user.431 #432 # NOTE:433 # - Indentation of replacement string literals (e.g. 'STEP_EIGHT') is set to434 # nest cleanly in this file, but will result in unclean nesting runme file435 # (which should not be an issue)436 # - Single-line string replacements in runme.m can effectively be performed437 # using sed. When performing multi-line replacements, perl is a better438 # option.439 #440 425 if [ $EXAMPLES_TEST -eq 1 ]; then 441 426 $ISSM_DIR/jenkins/examples_tests.sh
Note:
See TracChangeset
for help on using the changeset viewer.