Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Show more breadcrumbs
mpim-sw
libcdi
Commits
991b2785
Commit
991b2785
authored
3 years ago
by
Sergey Kosukhin
Browse files
Options
Downloads
Patches
Plain Diff
Update CI scripts for NAG on Mistral: check out-of-source build.
As well as parallel 'make dist' and 'make distclean'.
parent
34bfb8f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/bb/mistral-dkrz/test.all.nag-6.2.6223
+21
-1
21 additions, 1 deletion
.ci/bb/mistral-dkrz/test.all.nag-6.2.6223
.ci/bb/mistral-dkrz/utils.sh
+16
-0
16 additions, 0 deletions
.ci/bb/mistral-dkrz/utils.sh
with
37 additions
and
1 deletion
.ci/bb/mistral-dkrz/test.all.nag-6.2.6223
+
21
−
1
View file @
991b2785
...
...
@@ -11,13 +11,29 @@ init_nag626223
test
-f
"
${
top_srcdir
}
/configure"
||
(
cd
"
${
top_srcdir
}
"
&&
./autogen.sh
)
# Create a distribution file with minimalistic configuration:
switch_for_module texlive
"
${
top_srcdir
}
/configure"
--disable-cf-interface
make
-j8
dist
# Create a subdirectory for further testing and switch to it:
mkdir
check_dist
&&
cd
check_dist
# Move the distribution file to the test directory and unpack it:
mv
../cdi-
*
.tar.gz ./
tar
xf cdi-
*
.tar.gz
# Create a subdirectory for building and switch to it:
mkdir
build
&&
cd
build
# Use GCC from the path when compiling/linking Fortran code:
FCFLAGS
=
"-Wc=
$(
which gcc
)
"
# MPI library is built with -kind=byte, therefore we have to specify it here:
FCFLAGS+
=
' -g -kind=byte'
"
${
top_srcdir
}
/configure"
\
# Create an out-of-source configuration:
../cdi-
*
/configure
\
--disable-maintainer-mode
\
--enable-cf-interface
\
--enable-iso-c-interface
\
...
...
@@ -37,3 +53,7 @@ make -j8
make
-j8
check
||
{
cat
tests/test-suite.log
;
exit
1
;
}
check_all_tests_passed tests/test-suite.log
make
-j8
distclean
check_no_files_in_cwd
This diff is collapsed.
Click to expand it.
.ci/bb/mistral-dkrz/utils.sh
+
16
−
0
View file @
991b2785
...
...
@@ -220,3 +220,19 @@ check_all_tests_passed ()
}
}'
$1
>
&2
}
#
# Checks whether the current working directory or any of its subdirectories
# contain a file and fails with an error message if that is the case.
#
check_no_files_in_cwd
()
{
cnfic_files
=
`
find
.
-type
f 2>/dev/null
`
if
test
-n
"
$cnfic_files
"
;
then
{
echo
"ERROR: the current working directory contains undeleted files:"
echo
"
$cnfic_files
"
}
>
&2
exit
1
fi
}
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