Skip to content

Commit

Permalink
Add optional enable_all_packages 'all' argument (#482)
Browse files Browse the repository at this point in the history
Now you can pass in 4th 'all' argument and it will enable all packages with
the checkin-test-sems.sh script.

That is useful when you want to force the testing of all packages or when
there are no packages changed and the script aborts because there are no
enables.
  • Loading branch information
bartlettroscoe authored and lxmota committed Jun 28, 2017
1 parent 813e642 commit f8bd6c5
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion cmake/std/sems/remote-pull-test-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ else
fi
echo "Blocking or nonblocking: '$blocking_or_nonblocking'"

enable_all_packages=$4
if [ "$enable_all_packages" == "" ] ; then
# Don't enable all packages
enable_all_packages_arg=""
elif [ "$enable_all_packages" == "all" ] ; then
enable_all_packages_arg="--enable-all-packages=on"
else
# Invalid value!
echo "Error: Forth argument value '$enable_all_packages' is not acceptable! Must pass in 'all' or empty ''!"
exit 4
fi
echo "enable_all_packages_arg = '$enable_all_packages_arg'"

cd $local_trilinos_base_dir/Trilinos/
local_branch_name=`git rev-parse --abbrev-ref HEAD`

Expand Down Expand Up @@ -94,7 +107,7 @@ remote_branch_update_cmnds="cd $remote_trilinos_base_dir/Trilinos && git checkou
# will not allow the enable of the package. (This actually happened with the
# Tempus package.)

remote_checkin_test_cmnds="cd $remote_trilinos_base_dir/Trilinos/CHECKIN && ./checkin-test-sems.sh --do-all --no-rebase --push"
remote_checkin_test_cmnds="cd $remote_trilinos_base_dir/Trilinos/CHECKIN && ./checkin-test-sems.sh $enable_all_packages_arg --do-all --no-rebase --push"

cd $local_trilinos_base_dir

Expand Down

0 comments on commit f8bd6c5

Please sign in to comment.