Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RODIER Quentin
Méso-NH code
Commits
7062e74e
Commit
7062e74e
authored
2 years ago
by
RIETTE Sébastien
Browse files
Options
Downloads
Patches
Plain Diff
S. Riette 1 Dec 2022: separate creation pack and compilation steps in check_commit_ial
parent
d7c2f839
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/check_commit_ial.sh
+14
-3
14 additions, 3 deletions
tools/check_commit_ial.sh
with
14 additions
and
3 deletions
tools/check_commit_ial.sh
+
14
−
3
View file @
7062e74e
...
@@ -76,6 +76,7 @@ function usage {
...
@@ -76,6 +76,7 @@ function usage {
echo
"commit commit hash (or a directory, or among
$specialPack
) to test"
echo
"commit commit hash (or a directory, or among
$specialPack
) to test"
echo
"reference commit hash (or a directory, or among
$specialPack
) REF to use as a reference"
echo
"reference commit hash (or a directory, or among
$specialPack
) REF to use as a reference"
echo
"-s suppress compilation pack"
echo
"-s suppress compilation pack"
echo
"-p creates pack"
echo
"-c performs compilation"
echo
"-c performs compilation"
echo
"-r runs the tests"
echo
"-r runs the tests"
echo
"-C checks the result against the reference"
echo
"-C checks the result against the reference"
...
@@ -100,8 +101,11 @@ function usage {
...
@@ -100,8 +101,11 @@ function usage {
echo
"If using a directory (for commit or reference) it must contain at least one '/'"
echo
"If using a directory (for commit or reference) it must contain at least one '/'"
echo
echo
echo
"The cycle will be guessed from the source code"
echo
"The cycle will be guessed from the source code"
echo
echo
"The -f flag (full recompilation) is active only at pack creation"
}
}
packcreation
=
0
compilation
=
0
compilation
=
0
run
=
0
run
=
0
check
=
0
check
=
0
...
@@ -117,6 +121,7 @@ while [ -n "$1" ]; do
...
@@ -117,6 +121,7 @@ while [ -n "$1" ]; do
case
"
$1
"
in
case
"
$1
"
in
'-h'
)
usage
;;
'-h'
)
usage
;;
'-s'
)
suppress
=
1
;;
'-s'
)
suppress
=
1
;;
'-p'
)
packcreation
=
1
;;
'-c'
)
compilation
=
1
;;
'-c'
)
compilation
=
1
;;
'-r'
)
run
=
$((
$run
+
1
))
;;
'-r'
)
run
=
$((
$run
+
1
))
;;
'-C'
)
check
=
1
;;
'-C'
)
check
=
1
;;
...
@@ -161,9 +166,11 @@ elif [ $tests == 'ALL' ]; then
...
@@ -161,9 +166,11 @@ elif [ $tests == 'ALL' ]; then
tests
=
$availTests
tests
=
$availTests
fi
fi
if
[
$compilation
-eq
0
-a
\
if
[
$packcreation
-eq
0
-a
\
$compilation
-eq
0
-a
\
$run
-eq
0
-a
\
$run
-eq
0
-a
\
$check
-eq
0
]
;
then
$check
-eq
0
]
;
then
packcreation
=
1
compilation
=
1
compilation
=
1
run
=
1
run
=
1
check
=
1
check
=
1
...
@@ -250,7 +257,7 @@ if [ ! -z "${reference-}" ]; then
...
@@ -250,7 +257,7 @@ if [ ! -z "${reference-}" ]; then
fi
fi
fi
fi
if
[
$
compil
ation
-eq
1
]
;
then
if
[
$
packcre
ation
-eq
1
]
;
then
echo
"### Compilation of commit
$commit
"
echo
"### Compilation of commit
$commit
"
if
echo
$specialPack
|
grep
-w
$commit
>
/dev/null
;
then
if
echo
$specialPack
|
grep
-w
$commit
>
/dev/null
;
then
...
@@ -375,9 +382,13 @@ if [ $compilation -eq 1 ]; then
...
@@ -375,9 +382,13 @@ if [ $compilation -eq 1 ]; then
fi
fi
fi
fi
rm
-rf
PHYEX
rm
-rf
PHYEX
fi
if
[
$compilation
-eq
1
]
;
then
echo
"### Compilation of commit
$commit
"
cd
$HOMEPACK
/
$name
cd
$HOMEPACK
/
$name
sed
-i
's/GMK_THREADS=1/GMK_THREADS=10/'
ics_masterodb
sed
-i
's/GMK_THREADS=1
$
/GMK_THREADS=10/'
ics_masterodb
cleanpack
-f
cleanpack
-f
exescript Output_compilation ics_masterodb
exescript Output_compilation ics_masterodb
...
...
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