-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script remove_kokkos_subpackages_change_test_names_r.sh (#11545)
This changes all test names, even ones for tests that don't exist in Kokkos anymore based on the basic name paterns.
- Loading branch information
1 parent
51a4ae0
commit b26efde
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
commonTools/refactoring/refactors/remove_kokkos_subpackages_change_test_names_r.sh
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,25 @@ | ||
#!/bin/sh | ||
|
||
# Script to update the names of Kokkos tests after the refactoring to remove | ||
# subpackages. | ||
# | ||
# Run this script from the base directory and it will update all files. | ||
# | ||
# Warning! Do not run this in a directory where the file | ||
# remove_kokkos_subpackages_change_test_names.token-list will be found or this | ||
# will change the names there too and destroy this script! | ||
# | ||
# Also, do not create a symbolic link to this script, just use a | ||
# absolute or relative path from where it is defined in the | ||
# Trilinos source tree. | ||
|
||
# Get the directory for this scirpt which will give us the Trilinos base | ||
# directory | ||
_SCRIPT_DIR=`echo $0 | sed "s/\(.*\)\/.*\.sh/\1/g"` | ||
_TRILINOS_HOME=$_SCRIPT_DIR/../../.. | ||
|
||
# Run the replacements on all of the files found in subdirectories | ||
find . -type f \ | ||
-exec $_TRILINOS_HOME/commonTools/refactoring/string-replace-list.pl \ | ||
$_SCRIPT_DIR/remove_kokkos_subpackages_change_test_names_r.token-list \ | ||
'{}' '{}' ';' |
4 changes: 4 additions & 0 deletions
4
commonTools/refactoring/refactors/remove_kokkos_subpackages_change_test_names_r.token-list
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,4 @@ | ||
KokkosCore_UnitTest Kokkos_CoreUnitTest | ||
KokkosContainers_UnitTest Kokkos_ContainersUnitTest | ||
KokkosAlgorithms_UnitTest Kokkos_AlgorithmsUnitTest | ||
KokkosContainers_PerformanceTest Kokkos_ContainersPerformanceTest |