Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-codegen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Christian Heinigk
dune-codegen
Commits
26f8da44
Commit
26f8da44
authored
5 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
Adjust to latest dune-testtools
Which changed the interfacing between Python and CMake.
parent
db22f46d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmake/modules/DuneCodegenMacros.cmake
+2
-4
2 additions, 4 deletions
cmake/modules/DuneCodegenMacros.cmake
cmake/modules/GeneratedSystemtests.cmake
+10
-4
10 additions, 4 deletions
cmake/modules/GeneratedSystemtests.cmake
cmake/modules/deplist.py
+1
-1
1 addition, 1 deletion
cmake/modules/deplist.py
with
13 additions
and
9 deletions
cmake/modules/DuneCodegenMacros.cmake
+
2
−
4
View file @
26f8da44
...
@@ -178,10 +178,8 @@ function(dune_add_generated_executable)
...
@@ -178,10 +178,8 @@ function(dune_add_generated_executable)
endif
()
endif
()
# Parse a mapping of operators to build and their respective filenames
# Parse a mapping of operators to build and their respective filenames
dune_execute_process
(
COMMAND
${
CMAKE_BINARY_DIR
}
/run-in-dune-env python
${
dune-codegen_path
}
/deplist.py
${
GEN_INIFILE
}
${
GEN_TARGET
}
dune_execute_process
(
COMMAND
${
CMAKE_BINARY_DIR
}
/run-in-dune-env python
${
dune-codegen_path
}
/deplist.py
${
GEN_INIFILE
}
${
GEN_TARGET
}
${
CMAKE_CURRENT_BINARY_DIR
}
/interface.log
)
OUTPUT_VARIABLE depdata
parse_python_data
(
PREFIX depdata FILE
${
CMAKE_CURRENT_BINARY_DIR
}
/interface.log
)
)
parse_python_data
(
PREFIX depdata INPUT
${
depdata
}
)
if
(
DUNE_CODEGEN_PROFILING
)
if
(
DUNE_CODEGEN_PROFILING
)
# This is a bit silly, but cProfile only finds entry point scripts
# This is a bit silly, but cProfile only finds entry point scripts
...
...
This diff is collapsed.
Click to expand it.
cmake/modules/GeneratedSystemtests.cmake
+
10
−
4
View file @
26f8da44
...
@@ -119,9 +119,14 @@ function(dune_add_formcompiler_system_test)
...
@@ -119,9 +119,14 @@ function(dune_add_formcompiler_system_test)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
SYSTEMTEST_INIFILE
}
${
CMAKE_CURRENT_BINARY_DIR
}
/tmp_
${
SYSTEMTEST_INIFILE
}
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
SYSTEMTEST_INIFILE
}
${
CMAKE_CURRENT_BINARY_DIR
}
/tmp_
${
SYSTEMTEST_INIFILE
}
)
# expand the given meta ini file into the build tree
# expand the given meta ini file into the build tree
execute_process
(
COMMAND
${
CMAKE_BINARY_DIR
}
/run-in-dune-env dune_expand_metaini.py --cmake --ini
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
SYSTEMTEST_INIFILE
}
--dir
${
CMAKE_CURRENT_BINARY_DIR
}
--section formcompiler
execute_process
(
COMMAND
${
CMAKE_BINARY_DIR
}
/run-in-dune-env dune_expand_metaini.py
OUTPUT_VARIABLE output
)
--cmake
parse_python_data
(
PREFIX INIINFO INPUT
"
${
output
}
"
)
--ini
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
SYSTEMTEST_INIFILE
}
--dir
${
CMAKE_CURRENT_BINARY_DIR
}
--section formcompiler
--file
${
CMAKE_CURRENT_BINARY_DIR
}
/interface.log
)
parse_python_data
(
PREFIX INIINFO FILE
${
CMAKE_CURRENT_BINARY_DIR
}
/interface.log
)
foreach
(
inifile
${
INIINFO_names
}
)
foreach
(
inifile
${
INIINFO_names
}
)
if
(
${
INIINFO_
${
inifile
}
_suffix
}
STREQUAL
"__empty"
)
if
(
${
INIINFO_
${
inifile
}
_suffix
}
STREQUAL
"__empty"
)
...
@@ -147,10 +152,11 @@ function(dune_add_formcompiler_system_test)
...
@@ -147,10 +152,11 @@ function(dune_add_formcompiler_system_test)
# just the way that dune-testtools does.
# just the way that dune-testtools does.
dune_execute_process
(
COMMAND
${
CMAKE_BINARY_DIR
}
/run-in-dune-env dune_extract_static.py
dune_execute_process
(
COMMAND
${
CMAKE_BINARY_DIR
}
/run-in-dune-env dune_extract_static.py
--ini
${
inifile
}
--ini
${
inifile
}
--file
${
CMAKE_CURRENT_BINARY_DIR
}
/interface.log
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
OUTPUT_VARIABLE output
OUTPUT_VARIABLE output
ERROR_MESSAGE
"Error extracting static info from
${
inifile
}
"
)
ERROR_MESSAGE
"Error extracting static info from
${
inifile
}
"
)
parse_python_data
(
PREFIX STAT
INPUT
"
${
output
}
"
)
parse_python_data
(
PREFIX STAT
FILE
${
CMAKE_CURRENT_BINARY_DIR
}
/interface.log
)
foreach
(
config
${
STAT___CONFIGS
}
)
foreach
(
config
${
STAT___CONFIGS
}
)
foreach
(
cd
${
STAT___STATIC_DATA
}
)
foreach
(
cd
${
STAT___STATIC_DATA
}
)
...
...
This diff is collapsed.
Click to expand it.
cmake/modules/deplist.py
+
1
−
1
View file @
26f8da44
...
@@ -22,5 +22,5 @@ def get_filename(operator):
...
@@ -22,5 +22,5 @@ def get_filename(operator):
result
=
{
"
__{}
"
.
format
(
o
):
get_filename
(
o
)
for
o
in
operators
}
result
=
{
"
__{}
"
.
format
(
o
):
get_filename
(
o
)
for
o
in
operators
}
result
[
"
__operators
"
]
=
"
;
"
.
join
(
operators
)
result
[
"
__operators
"
]
=
"
;
"
.
join
(
operators
)
printForCMake
(
result
)
printForCMake
(
result
,
sys
.
argv
[
3
]
)
sys
.
exit
(
0
)
sys
.
exit
(
0
)
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