-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding the unit tests for the clean_workspace tool #4947
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
2fdf9b2
Adding the unit tests for the clean_workspace tool
prwolfe 4eebda5
Change gcc 7.2 PR testing to use python 3 and disable Modules tests
prwolfe 976d6bc
test_Modules.py: re-work to run under both python 2 and 3
prwolfe 83c8f93
This commit allows all of the clean_workspace scripts and test to run…
prwolfe 454a9ae
Add stand-alone tests for framework python unittests
prwolfe 557cdd8
move gcc 7.2.0 environment back to python2
prwolfe 17d8ee3
Python testing - resolve issues found during testing
prwolfe 89646d0
Correct shell quoting in the package file replacement for python
prwolfe 9a75450
fix another type of quoting error
prwolfe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This file contains the options needed to both run the pull request testing | ||
# for Trilinos for the Linux GCC 4.8.4 pull request testing builds, and to reproduce | ||
# the errors reported by those builds. Prior to using this this file, the | ||
# appropriate set of SEMS modules must be loaded and accessible through the | ||
# SEMS NFS mount. (See the sems/PullRequestGCC*TestingEnv.sh files.) | ||
|
||
# Usage: cmake -C PullRequestLinuxGCC4.8.4TestingSettings.cmake | ||
|
||
# Misc options typically added by CI testing mode in TriBITS | ||
|
||
# Use the below option only when submitting to the dashboard | ||
#set (CTEST_USE_LAUNCHERS ON CACHE BOOL "Set by default for PR testing") | ||
|
||
set (TFW_Python2_Testing ON CACHE BOOL "Set by default for PR testing") | ||
set (TFW_Python_Testing ON CACHE BOOL "Set by default for PR testing") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/PullRequestLinuxCommonTestingSettings.cmake") | ||
|
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,18 @@ | ||
# This file contains the options needed to both run the pull request testing | ||
# for Trilinos for the Linux GCC 4.8.4 pull request testing builds, and to reproduce | ||
# the errors reported by those builds. Prior to using this this file, the | ||
# appropriate set of SEMS modules must be loaded and accessible through the | ||
# SEMS NFS mount. (See the sems/PullRequestGCC*TestingEnv.sh files.) | ||
|
||
# Usage: cmake -C PullRequestLinuxGCC4.8.4TestingSettings.cmake | ||
|
||
# Misc options typically added by CI testing mode in TriBITS | ||
|
||
# Use the below option only when submitting to the dashboard | ||
#set (CTEST_USE_LAUNCHERS ON CACHE BOOL "Set by default for PR testing") | ||
|
||
set (TFW_Python3_Testing ON CACHE BOOL "Set by default for PR testing") | ||
set (TFW_Python_Testing ON CACHE BOOL "Set by default for PR testing") | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/PullRequestLinuxCommonTestingSettings.cmake") | ||
|
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,43 @@ | ||
# This script can be used to load the appropriate environment for the | ||
# GCC 4.8.4 Pull Request testing build on a Linux machine that has access to | ||
# the SEMS NFS mount. | ||
|
||
# usage: $ source PullRequestGCC4.8.4TestingEnv.sh | ||
|
||
# After the environment is no longer needed, it can be purged using | ||
# $ module purge | ||
# or Trilinos/cmake/unload_sems_dev_env.sh | ||
|
||
source /projects/sems/modulefiles/utils/sems-modules-init.sh | ||
|
||
module load sems-gcc/4.8.4 | ||
module load sems-openmpi/1.10.1 | ||
module load sems-git/2.10.1 | ||
module load sems-boost/1.63.0/base | ||
module load sems-zlib/1.2.8/base | ||
module load sems-hdf5/1.8.12/parallel | ||
module load sems-netcdf/4.4.1/exo_parallel | ||
module load sems-parmetis/4.0.3/parallel | ||
module load sems-scotch/6.0.3/nopthread_64bit_parallel | ||
module load sems-superlu/4.3/base | ||
|
||
# Load the SEMS CMake Module | ||
# - One of the SEMS modules will load CMake 3.4.x also, | ||
# so this will pull in the SEMS cmake 3.10.3 version | ||
# for Trilinos compatibility. | ||
module load sems-cmake/3.10.3 | ||
module load sems-ninja_fortran/1.8.2 | ||
|
||
# we will have implicitly gotten the sems python from | ||
# the boost module above for whaever reason - reset it | ||
# to one that has the mock packages installed | ||
module unload sems-python | ||
# module load sierra-python/2.7.15 - permissions do not allow this, but the execs are ok | ||
PATH=/projects/sierra/linux_rh7/install/Python/2.7.15/bin:${PATH} | ||
PATH=/projects/sierra/linux_rh7/install/Python/extras/bin:${PATH} | ||
PYTHONPATH=/projects/sierra/linux_rh7/install/Python/extras/lib/python2.7/site-packages:${PYTHONPATH} | ||
MANPATH=/projects/sierra/linux_rh7/install/Python/2.7.15/share/man:${MANPATH} | ||
unset PYTHONHOME | ||
|
||
# add the OpenMP environment variable we need | ||
export OMP_NUM_THREADS=2 |
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,48 @@ | ||
# This script can be used to load the appropriate environment for the | ||
# GCC 7.2.0 Pull Request testing build on a Linux machine that has access to | ||
# the SEMS NFS mount. | ||
|
||
# usage: $ source PullRequestGCC7.2.0TestingEnv.sh | ||
|
||
source /projects/sems/modulefiles/utils/sems-modules-init.sh | ||
|
||
module load sems-gcc/7.2.0 | ||
module load sems-openmpi/1.10.1 | ||
module load sems-git/2.10.1 | ||
module load sems-boost/1.63.0/base | ||
module load sems-zlib/1.2.8/base | ||
module load sems-hdf5/1.8.12/parallel | ||
module load sems-netcdf/4.4.1/exo_parallel | ||
module load sems-parmetis/4.0.3/parallel | ||
module load sems-scotch/6.0.3/nopthread_64bit_parallel | ||
module load sems-superlu/4.3/base | ||
|
||
# Load the SEMS CMake Module | ||
# - One of the SEMS modules will load CMake 3.4.x also, | ||
# so this will pull in the SEMS cmake 3.10.3 version | ||
# for Trilinos compatibility. | ||
module load sems-cmake/3.10.3 | ||
|
||
# Using CMake and Ninja modules from the ATDM project space. | ||
# SEMS does not yet supply a recent enough version of CMake | ||
# for the single configure/build/test capability. We are also | ||
# using a custom version of Ninja (with Fortran support not | ||
# available in main-line Ninja) to significantly speed up | ||
# compile and link times. | ||
module load atdm-env | ||
module load atdm-ninja_fortran/1.7.2 | ||
|
||
# we will have implicitly gotten the sems python from | ||
# the boost module above for whaever reason - reset it | ||
# to one that has the proper sym-links from python -> python3 | ||
module unload sems-python | ||
# module load sierra-python/3.6.3 - permissions do not allow this, but the execs are ok | ||
PATH=/projects/sierra/linux_rh7/install/Python/3.6..3/bin:${PATH} | ||
PATH=/projects/sierra/linux_rh7/install/Python/extras/bin:${PATH} | ||
PYTHONPATH=/projects/sierra/linux_rh7/install/Python/extras/lib/python3.6/site-packages:${PYTHONPATH} | ||
MANPATH=/projects/sierra/linux_rh7/install/Python/3.6.3/share/man:${MANPATH} | ||
unset PYTHONHOME | ||
|
||
# add the OpenMP environment variable we need | ||
export OMP_NUM_THREADS=2 | ||
|
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could that be because of Boost.Python?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's in use, yes. I would have left selection of the python version to use to the developer...