Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IPDSnelting
spec.py
Commits
de80d53e
Commit
de80d53e
authored
Mar 27, 2014
by
Matthias Braun
Browse files
factor out common code of nightly scripts, fix 2006 syntax error
parent
99050046
Changes
4
Hide whitespace changes
Inline
Side-by-side
buildbot/nightly.sh
View file @
de80d53e
#!/bin/bash
set
-eu
function
die
()
{
echo
"
$@
"
1>&2
exit
1
}
ME
=
"
$(
readlink
-f
"
$0
"
)
"
MYDIR
=
"
$(
dirname
"
$ME
"
)
"
TARGET_TRIPLE
=
"
$1
"
test
-n
"
$TARGET_TRIPLE
"
||
die
"No target triple specified"
.
setup.sh
# Check if cparser is available
CPARSER
=
$(
readlink
-f
"
${
MYDIR
}
/../../cparser/build/debug/cparser"
)
||
die
"cparser missing"
test
-x
"
${
CPARSER
}
"
||
die
"cparser missing (expected at
${
CPARSER
}
)"
# Synchronize spec files
SOURCE
=
"firm@i44sun3:/data1/firm/specinst"
DESTDIR
=
"/data1/
$(
whoami
)
"
rsync
-rsh
=
ssh
-z
--delete
--recursive
--links
"
$SOURCE
"
"
${
DESTDIR
}
/"
||
die
"rsync failed"
cd
"
${
DESTDIR
}
/specinst"
# Need to call "relocate" if the spec stuff ended up in a different directory
# than the original installation
(
set
+eu
;
.
shrc
&&
bin/relocate
)
# Setup result directory
rm
-rf
result
# remove old symlink
RESDIR
=
"/ben/firm/public_html/nightly_spec_results/
${
TARGET_TRIPLE
}
"
mkdir
-p
"
${
RESDIR
}
"
||
dir
"Couldn't setup result dir"
ln
-sf
"
${
RESDIR
}
"
result
||
die
"Couldn't setup result dir"
SPEC_PY_FLAGS
=
"--c-compiler=
${
CPARSER
}
--no-cpp --no-fortran --iterations=1"
# Start spec differently on each architecture
case
"
$TARGET_TRIPLE
"
in
"i686-linux-gnu"
)
SPEC_PY_FLAGS
=
"
$SPEC_PY_FLAGS
--time-limit=
18
00"
SPEC_PY_FLAGS
=
"
$SPEC_PY_FLAGS
--time-limit=
36
00"
;;
"sparc-leon-linux-gnu"
)
SPEC_PY_FLAGS
=
"
$SPEC_PY_FLAGS
--time-limit=5400"
...
...
@@ -55,23 +28,4 @@ case "$TARGET_TRIPLE" in
;;
esac
${
MYDIR
}
/../spec.py
--config-only
$SPEC_PY_FLAGS
>
config/default.cfg
(
set
+eu
;
.
shrc
&&
runspec |
tee
log.txt
)
# Error handling
#function handler() {
# killall -q -9 -g runspec
# killall -q -9 -g specinvoke
# killall -q -9 cparser
#}
#SPEC_PY=$!
#trap handler TERM KILL EXIT INT
#wait $SPEC_PY
# Grep for errors in the output
ERR
=
$(
grep
--count
Error log.txt
)
||
true
if
[
$ERR
-ne
0
]
;
then
exit
1
fi
exit
0
.
runspec.sh
buildbot/nightly2006.sh
View file @
de80d53e
#!/bin/bash
set
-eu
function
die
()
{
echo
"
$@
"
1>&2
exit
1
}
ME
=
"
$(
readlink
-f
"
$0
"
)
"
MYDIR
=
"
$(
dirname
"
$ME
"
)
"
TARGET_TRIPLE
=
"
$1
"
test
-n
"
$TARGET_TRIPLE
"
||
die
"No target triple specified"
.
setup.sh
# Check if cparser is available
CPARSER
=
$(
readlink
-f
"
${
MYDIR
}
/../../cparser/build/debug/cparser"
)
||
die
"cparser missing"
test
-x
"
${
CPARSER
}
"
||
die
"cparser missing (expected at
${
CPARSER
}
)"
# Synchronize spec files
SOURCE
=
"firm@i44sun3:/data1/firm/specinst-2006"
DESTDIR
=
"/data1/
$(
whoami
)
"
rsync
-rsh
=
ssh
-z
--delete
--recursive
--links
"
$SOURCE
"
"
${
DESTDIR
}
/"
||
die
"rsync failed"
cd
"
${
DESTDIR
}
/specinst-2006"
# Need to call "relocate" if the spec stuff ended up in a different directory
# than the original installation
(
set
+eu
;
.
shrc
&&
bin/relocate
)
# Setup result directory
rm
-rf
result
# remove old symlink
RESDIR
=
"/ben/firm/public_html/nightly_spec_results/
${
TARGET_TRIPLE
}
"
mkdir
-p
"
${
RESDIR
}
"
ln
-sf
"
${
RESDIR
}
"
result
SPEC_PY_FLAGS
=
"--c-compiler=
${
CPARSER
}
--no-cpp --no-fortran --iterations=1"
# Start spec differently on each architecture
...
...
@@ -43,23 +16,4 @@ case "$TARGET_TRIPLE" in
;;
esac
${
MYDIR
}
/../spec.py
--config-only
$SPEC_PY_FLAGS
>
config/default.cfg
(
set
+eu
;
.
shrc
&&
runspec |
tee
log.txt
)
# Error handling
#function handler() {
# killall -q -9 -g runspec
# killall -q -9 -g specinvoke
# killall -q -9 cparser
#}
#SPEC_PY=$!
#trap handler TERM KILL EXIT INT
#wait $SPEC_PY
# Grep for errors in the output
ERR
=
$(
grep
--count
Error log.txt
)
||
true
if
[
$ERR
-ne
0
]
then
exit
1
fi
exit
0
.
runspec.sh
buildbot/runspec.sh
0 → 100644
View file @
de80d53e
# Synchronize spec files
echo
-n
"rsycn..."
DESTDIR
=
"/data1/
$(
whoami
)
"
rsync
-rsh
=
ssh
-z
--delete
--recursive
--links
"
$SOURCE
"
"
${
DESTDIR
}
/"
||
die
"rsync failed"
echo
"ok"
COMPLETEDEST
=
"
${
DESTDIR
}
/
$(
basename
"
${
SOURCE
}
"
)
"
cd
"
${
COMPLETEDEST
}
"
# Need to call "relocate" if the spec stuff ended up in a different directory
# than the original installation
(
set
+eu
;
.
shrc
&&
bin/relocate
)
# Setup result directory
rm
-rf
result
# remove old symlink
RESDIR
=
"/ben/firm/public_html/nightly_spec_results/
${
TARGET_TRIPLE
}
"
mkdir
-p
"
${
RESDIR
}
"
||
dir
"Couldn't setup result dir"
ln
-sf
"
${
RESDIR
}
"
result
||
die
"Couldn't setup result dir"
${
MYDIR
}
/../spec.py
--config-only
$SPEC_PY_FLAGS
>
config/default.cfg
(
set
+eu
;
.
shrc
&&
runspec |
tee
log.txt
)
# Error handling
#function handler() {
# killall -q -9 -g runspec
# killall -q -9 -g specinvoke
# killall -q -9 cparser
#}
#SPEC_PY=$!
#trap handler TERM KILL EXIT INT
#wait $SPEC_PY
# Grep for errors in the output
ERR
=
$(
grep
--count
Error log.txt
)
||
true
if
[
$ERR
-ne
0
]
;
then
exit
1
fi
exit
0
buildbot/setup.sh
0 → 100644
View file @
de80d53e
set
-eu
function
die
()
{
echo
"
$@
"
1>&2
exit
1
}
ME
=
"
$(
readlink
-f
"
$0
"
)
"
MYDIR
=
"
$(
dirname
"
$ME
"
)
"
test
-n
"
${
1
-
}
"
||
die
"No target triple specified"
TARGET_TRIPLE
=
"
$1
"
# Check if cparser is available
CPARSER
=
$(
readlink
-f
"
${
MYDIR
}
/../../cparser/build/debug/cparser"
)
||
die
"cparser missing"
test
-x
"
${
CPARSER
}
"
||
die
"cparser missing (expected at
${
CPARSER
}
)"
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment