Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
spm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
spm
Commits
e6eeb27f
Commit
e6eeb27f
authored
4 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Prefix wrapper testings by the language
parent
83176dcd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!41
Distribute wrapper testings in specific categories
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
wrappers/fortran90/CMakeLists.txt
+1
-1
1 addition, 1 deletion
wrappers/fortran90/CMakeLists.txt
wrappers/julia/CMakeLists.txt
+5
-10
5 additions, 10 deletions
wrappers/julia/CMakeLists.txt
wrappers/python/CMakeLists.txt
+3
-3
3 additions, 3 deletions
wrappers/python/CMakeLists.txt
with
9 additions
and
14 deletions
wrappers/fortran90/CMakeLists.txt
+
1
−
1
View file @
e6eeb27f
...
...
@@ -99,7 +99,7 @@ foreach (_file ${EXAMPLES})
set
(
exe
${
MPIEXEC_EXECUTABLE
}
-np 4 --host localhost:4
)
endif
()
add_test
(
${
version
}
_
fortran_
${
_name_we
}
${
exe
}
./
${
_name_we
}
)
add_test
(
fortran_
${
version
}
_
${
_name_we
}
${
exe
}
./
${
_name_we
}
)
endforeach
()
endforeach
()
...
...
This diff is collapsed.
Click to expand it.
wrappers/julia/CMakeLists.txt
+
5
−
10
View file @
e6eeb27f
...
...
@@ -107,29 +107,24 @@ if ( Julia_ENABLE_TESTS )
set
(
_julia_init_
${
Julia_EXECUTABLE
}
"--project"
"-e"
"using Pkg
\;
Pkg.activate(
\"
spm
\"
)
\;
Pkg.instantiate()"
)
endif
()
add_test
(
shm_
julia_
set_mpi
${
_julia_init_
}
)
set_tests_properties
(
shm_
julia_
set_mpi
add_test
(
julia_
init
${
_julia_init_
}
)
set_tests_properties
(
julia_
init
PROPERTIES ENVIRONMENT
"
${
Julia_ENVIRONEMENT
}
"
)
if
(
SPM_WITH_MPI
)
add_test
(
mpi_julia_set_mpi
${
_julia_init_
}
)
set_tests_properties
(
mpi_julia_set_mpi
PROPERTIES ENVIRONMENT
"
${
Julia_ENVIRONEMENT
}
"
)
endif
()
set
(
JULIA_TESTS
spm_driver spm_user
)
foreach
(
example
${
JULIA_TESTS
}
)
set
(
_test_suffix_
julia_
${
example
}
)
set
(
_test_suffix_
${
example
}
)
set
(
_test_file_
${
CMAKE_CURRENT_BINARY_DIR
}
/spm/examples/
${
example
}
.jl
)
set
(
_test_name_ shm_
${
_test_suffix_
}
)
set
(
_test_name_
julia_
shm_
${
_test_suffix_
}
)
add_test
(
${
_test_name_
}
${
Julia_EXECUTABLE
}
${
_test_file_
}
)
set_tests_properties
(
${
_test_name_
}
PROPERTIES ENVIRONMENT
"
${
Julia_ENVIRONEMENT
}
"
)
if
(
SPM_WITH_MPI
)
set
(
_test_name_ mpi_
${
_test_suffix_
}
)
set
(
_test_name_
julia_
mpi_
${
_test_suffix_
}
)
add_test
(
${
_test_name_
}
${
MPIEXEC_EXECUTABLE
}
-np 4 --host localhost:4
${
Julia_EXECUTABLE
}
${
_test_file_
}
)
set_tests_properties
(
${
_test_name_
}
PROPERTIES ENVIRONMENT
"
${
Julia_ENVIRONEMENT
}
"
)
...
...
This diff is collapsed.
Click to expand it.
wrappers/python/CMakeLists.txt
+
3
−
3
View file @
e6eeb27f
...
...
@@ -61,16 +61,16 @@ if (Python3_Interpreter_FOUND)
spm_driver spm_scipy
)
foreach
(
example
${
PYTHON_TESTS
}
)
set
(
_test_suffix_
python_
${
example
}
)
set
(
_test_suffix_
${
example
}
)
set
(
_test_file_
${
CMAKE_CURRENT_BINARY_DIR
}
/examples/
${
example
}
.py
)
set
(
_test_name_ shm_
${
_test_suffix_
}
)
set
(
_test_name_
python_
shm_
${
_test_suffix_
}
)
add_test
(
${
_test_name_
}
${
Python3_EXECUTABLE
}
${
_test_file_
}
)
set_tests_properties
(
${
_test_name_
}
PROPERTIES ENVIRONMENT
"PYTHONPATH=
${
CMAKE_CURRENT_BINARY_DIR
}
"
)
if
(
SPM_WITH_MPI
)
set
(
_test_name_ mpi_
${
_test_suffix_
}
)
set
(
_test_name_
python_
mpi_
${
_test_suffix_
}
)
add_test
(
${
_test_name_
}
${
MPIEXEC_EXECUTABLE
}
-np 4 --host localhost:4
${
Python3_EXECUTABLE
}
${
_test_file_
}
)
set_tests_properties
(
${
_test_name_
}
PROPERTIES ENVIRONMENT
"PYTHONPATH=
${
CMAKE_CURRENT_BINARY_DIR
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment