Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
47fd10c9
Commit
47fd10c9
authored
15 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
bug 1389:
Set TESTING OFF unless -test or -check is given
parent
a2942967
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMake/makeCMakeCache
+16
-14
16 additions, 14 deletions
CMake/makeCMakeCache
autoconf_share/dorubbuild
+6
-5
6 additions, 5 deletions
autoconf_share/dorubbuild
with
22 additions
and
19 deletions
CMake/makeCMakeCache
+
16
−
14
View file @
47fd10c9
...
@@ -28,14 +28,14 @@
...
@@ -28,14 +28,14 @@
# Run as: makeCMakeCache sourceroot lofarconf_file outfile
# Run as: makeCMakeCache sourceroot lofarconf_file outfile
# E.g. makeCMakeCache ~/LOFAR ~/LOFAR/lofarconf.in.private CMakeCache
# E.g. makeCMakeCache ~/LOFAR ~/LOFAR/lofarconf.in.private CMakeCache
if
test
$#
!=
3
;
then
if
test
$#
!=
4
;
then
echo
"Run as: makeCMakeCache sourceroot lofarconf_file outfile"
echo
"Run as: makeCMakeCache sourceroot lofarconf_file
buildtest
outfile"
exit
1
exit
1
fi
fi
# Create output file.
# Create output file.
rm
-f
$
3
rm
-f
$
4
touch
$
3
touch
$
4
# Find the packages to be built.
# Find the packages to be built.
pkgs
=
pkgs
=
...
@@ -64,20 +64,22 @@ do
...
@@ -64,20 +64,22 @@ do
break
break
fi
fi
done
done
echo
"//Build package
$pkg
?"
>>
$
3
echo
"//Build package
$pkg
?"
>>
$
4
echo
"BUILD_
$pkg
:BOOL=
$opt
"
>>
$
3
echo
"BUILD_
$pkg
:BOOL=
$opt
"
>>
$
4
echo
""
>>
$
3
echo
""
>>
$
4
fi
fi
fi
fi
done
done
# By default do not build test programs.
# Optionally build test programs.
#echo "//Build the testing tree." >> $3
btest
=
ON
#echo "BUILD_TESTING:BOOL=OFF" >> $3
test
$3
=
1
||
btest
=
OFF
#echo "" >> $3
echo
"//Build the testing tree?"
>>
$4
echo
"BUILD_TESTING:BOOL=
$btest
"
>>
$4
echo
""
>>
$4
# LOFAR needs to be built.
# LOFAR needs to be built.
echo
"//Build packageLOFAR?."
>>
$
3
echo
"//Build packageLOFAR?."
>>
$
4
echo
"BUILD_LOFAR:BOOL=ON"
>>
$
3
echo
"BUILD_LOFAR:BOOL=ON"
>>
$
4
echo
""
>>
$
3
echo
""
>>
$
4
exit
0
exit
0
This diff is collapsed.
Click to expand it.
autoconf_share/dorubbuild
+
6
−
5
View file @
47fd10c9
...
@@ -127,6 +127,7 @@ confcmd=
...
@@ -127,6 +127,7 @@ confcmd=
premake
=
premake
=
mainmake
=
date
mainmake
=
date
postmake
=
postmake
=
cmaketest
=
0
# If -k, continue in case of failure, so use ; to separate commands.
# If -k, continue in case of failure, so use ; to separate commands.
ksep
=
"&&"
ksep
=
"&&"
[
$kopt
=
1
]
&&
ksep
=
";"
[
$kopt
=
1
]
&&
ksep
=
";"
...
@@ -136,13 +137,13 @@ fi
...
@@ -136,13 +137,13 @@ fi
if
[
$buildmake
=
1
]
;
then
if
[
$buildmake
=
1
]
;
then
mainmake
=
"date
$ksep
make
$kstr
$jobsopt
"
mainmake
=
"date
$ksep
make
$kstr
$jobsopt
"
if
[
$bldtest
=
1
]
;
then
if
[
$bldtest
=
1
]
;
then
if
[
$cmake
=
1
]
;
then
cmaketest
=
1
postmake
=
"
$ksep
make test"
if
[
$cmake
=
0
]
;
then
else
postmake
=
"
$ksep
(if [ -d test ]; then cd test
$ksep
make test; fi;)"
postmake
=
"
$ksep
(if [ -d test ]; then cd test
$ksep
make test; fi;)"
fi
fi
fi
fi
if
[
$check
=
1
]
;
then
if
[
$check
=
1
]
;
then
cmaketest
=
1
if
[
"
$checktool
"
=
""
]
;
then
if
[
"
$checktool
"
=
""
]
;
then
postmake
=
"
$postmake
$ksep
make
$kstr
check"
postmake
=
"
$postmake
$ksep
make
$kstr
check"
else
else
...
@@ -180,8 +181,8 @@ if [ $cmake = 1 ]; then
...
@@ -180,8 +181,8 @@ if [ $cmake = 1 ]; then
mkdir
-p
build/
$variant
>>
$logfile
2>&1
||
exit
1
mkdir
-p
build/
$variant
>>
$logfile
2>&1
||
exit
1
cd
build/
$variant
>>
$logfile
2>&1
||
exit
1
cd
build/
$variant
>>
$logfile
2>&1
||
exit
1
echo
":::::: BUILDING VARIANT
$variant
"
>>
$srcdir
/
$logfile
echo
":::::: BUILDING VARIANT
$variant
"
>>
$srcdir
/
$logfile
echo
"
$srcdir
/CMake/makeCMakeCache
$srcdir
$srcdir
/lofarconf.in.private CMakeCache.txt && cmake -DCMAKE_MODULE_PATH:PATH=
$srcdir
/CMake
$srcdir
&&
$premake
$mainmake
$postmake
"
>>
$srcdir
/
$logfile
echo
"
$srcdir
/CMake/makeCMakeCache
$srcdir
$srcdir
/lofarconf.in.private
$cmaketest
CMakeCache.txt && cmake -DCMAKE_MODULE_PATH:PATH=
$srcdir
/CMake
$srcdir
&&
$premake
$mainmake
$postmake
"
>>
$srcdir
/
$logfile
eval
"(
$srcdir
/CMake/makeCMakeCache
$srcdir
$srcdir
/lofarconf.in.private CMakeCache.txt && cmake -DCMAKE_MODULE_PATH:PATH=
$srcdir
/CMake
$srcdir
&&
$premake
$mainmake
$postmake
)"
>>
$srcdir
/
$logfile
2>&1
eval
"(
$srcdir
/CMake/makeCMakeCache
$srcdir
$srcdir
/lofarconf.in.private
$cmaketest
CMakeCache.txt && cmake -DCMAKE_MODULE_PATH:PATH=
$srcdir
/CMake
$srcdir
&&
$premake
$mainmake
$postmake
)"
>>
$srcdir
/
$logfile
2>&1
status
=
$?
status
=
$?
echo
":::::: FINISHED BUILDING VARIANT
$variant
"
>>
$srcdir
/
$logfile
echo
":::::: FINISHED BUILDING VARIANT
$variant
"
>>
$srcdir
/
$logfile
else
else
...
...
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