Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
de90644a
Commit
de90644a
authored
Mar 31, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libgo: Set name of test when using DejaGNU tests.
From-SVN: r171805
parent
300d83d9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
libgo/Makefile.am
+1
-1
libgo/Makefile.in
+1
-1
libgo/testsuite/gotest
+14
-0
libgo/testsuite/libgo.testmain/testmain.exp
+7
-1
No files found.
libgo/Makefile.am
View file @
de90644a
...
@@ -1551,7 +1551,7 @@ CHECK = \
...
@@ -1551,7 +1551,7 @@ CHECK = \
prefix
=
`
if
test
"
$
(@D)"
=
"regexp"
;
then
echo
regexp-test
;
else
dirname
$
(
@D
)
;
fi
`
;
\
prefix
=
`
if
test
"
$
(@D)"
=
"regexp"
;
then
echo
regexp-test
;
else
dirname
$
(
@D
)
;
fi
`
;
\
test
"
$$
{prefix}"
!=
"."
||
prefix
=
"
$
(@D)"
;
\
test
"
$$
{prefix}"
!=
"."
||
prefix
=
"
$
(@D)"
;
\
if
test
"
$(use_dejagnu)
"
=
"yes"
;
then
\
if
test
"
$(use_dejagnu)
"
=
"yes"
;
then
\
$(SHELL)
$(srcdir)
/testsuite/gotest
--dejagnu
=
yes
--basedir
=
$(srcdir)
--srcdir
=
$(srcdir)
/go/
$
(
@D
)
--prefix
=
"libgo_
$$
{prefix}"
--pkgfiles
=
"
$
(go_
$
(subst /,_,
$
(@D))_files)"
$(GOTESTFLAGS)
;
\
$(SHELL)
$(srcdir)
/testsuite/gotest
--dejagnu
=
yes
--basedir
=
$(srcdir)
--srcdir
=
$(srcdir)
/go/
$
(
@D
)
--prefix
=
"libgo_
$$
{prefix}"
--pkgfiles
=
"
$
(go_
$
(subst /,_,
$
(@D))_files)"
--testname
=
"
$
(@D)"
$(GOTESTFLAGS)
;
\
else
\
else
\
if
$(SHELL)
$(srcdir)
/testsuite/gotest
--basedir
=
$(srcdir)
--srcdir
=
$(srcdir)
/go/
$
(
@D
)
--prefix
=
"libgo_
$$
{prefix}"
--pkgfiles
=
"
$
(go_
$
(subst /,_,
$
(@D))_files)"
$(GOTESTFLAGS)
>>
$@
-testlog
2>&1
;
then
\
if
$(SHELL)
$(srcdir)
/testsuite/gotest
--basedir
=
$(srcdir)
--srcdir
=
$(srcdir)
/go/
$
(
@D
)
--prefix
=
"libgo_
$$
{prefix}"
--pkgfiles
=
"
$
(go_
$
(subst /,_,
$
(@D))_files)"
$(GOTESTFLAGS)
>>
$@
-testlog
2>&1
;
then
\
echo
"PASS:
$
(@D)"
;
\
echo
"PASS:
$
(@D)"
;
\
...
...
libgo/Makefile.in
View file @
de90644a
...
@@ -1881,7 +1881,7 @@ CHECK = \
...
@@ -1881,7 +1881,7 @@ CHECK = \
prefix
=
`
if
test
"
$
(@D)"
=
"regexp"
;
then
echo
regexp-test
;
else
dirname
$
(
@D
)
;
fi
`
;
\
prefix
=
`
if
test
"
$
(@D)"
=
"regexp"
;
then
echo
regexp-test
;
else
dirname
$
(
@D
)
;
fi
`
;
\
test
"
$$
{prefix}"
!=
"."
||
prefix
=
"
$
(@D)"
;
\
test
"
$$
{prefix}"
!=
"."
||
prefix
=
"
$
(@D)"
;
\
if
test
"
$(use_dejagnu)
"
=
"yes"
;
then
\
if
test
"
$(use_dejagnu)
"
=
"yes"
;
then
\
$(SHELL)
$(srcdir)
/testsuite/gotest
--dejagnu
=
yes
--basedir
=
$(srcdir)
--srcdir
=
$(srcdir)
/go/
$
(
@D
)
--prefix
=
"libgo_
$$
{prefix}"
--pkgfiles
=
"
$
(go_
$
(subst /,_,
$
(@D))_files)"
$(GOTESTFLAGS)
;
\
$(SHELL)
$(srcdir)
/testsuite/gotest
--dejagnu
=
yes
--basedir
=
$(srcdir)
--srcdir
=
$(srcdir)
/go/
$
(
@D
)
--prefix
=
"libgo_
$$
{prefix}"
--pkgfiles
=
"
$
(go_
$
(subst /,_,
$
(@D))_files)"
--testname
=
"
$
(@D)"
$(GOTESTFLAGS)
;
\
else
\
else
\
if
$(SHELL)
$(srcdir)
/testsuite/gotest
--basedir
=
$(srcdir)
--srcdir
=
$(srcdir)
/go/
$
(
@D
)
--prefix
=
"libgo_
$$
{prefix}"
--pkgfiles
=
"
$
(go_
$
(subst /,_,
$
(@D))_files)"
$(GOTESTFLAGS)
>>
$@
-testlog
2>&1
;
then
\
if
$(SHELL)
$(srcdir)
/testsuite/gotest
--basedir
=
$(srcdir)
--srcdir
=
$(srcdir)
/go/
$
(
@D
)
--prefix
=
"libgo_
$$
{prefix}"
--pkgfiles
=
"
$
(go_
$
(subst /,_,
$
(@D))_files)"
$(GOTESTFLAGS)
>>
$@
-testlog
2>&1
;
then
\
echo
"PASS:
$
(@D)"
;
\
echo
"PASS:
$
(@D)"
;
\
...
...
libgo/testsuite/gotest
View file @
de90644a
...
@@ -33,6 +33,7 @@ keep=false
...
@@ -33,6 +33,7 @@ keep=false
prefix
=
prefix
=
dejagnu
=
no
dejagnu
=
no
timeout
=
60
timeout
=
60
testname
=
""
while
$loop
;
do
while
$loop
;
do
case
"x
$1
"
in
case
"x
$1
"
in
x--srcdir
)
x--srcdir
)
...
@@ -93,6 +94,15 @@ while $loop; do
...
@@ -93,6 +94,15 @@ while $loop; do
timeout
=
`
echo
$1
| sed
-e
's/^--timeout=//'
`
timeout
=
`
echo
$1
| sed
-e
's/^--timeout=//'
`
shift
shift
;;
;;
x--testname
)
testname
=
$2
shift
shift
;;
x--testname
=
*
)
testname
=
`
echo
$1
| sed
-e
's/^--testname=//'
`
shift
;;
x-
*
)
x-
*
)
loop
=
false
loop
=
false
;;
;;
...
@@ -386,6 +396,10 @@ xyes)
...
@@ -386,6 +396,10 @@ xyes)
cd
../testsuite
cd
../testsuite
rm
-rf
_obj _test
rm
-rf
_obj _test
mkdir _obj _test
mkdir _obj _test
if
test
"
$testname
"
!=
""
;
then
GOTESTNAME
=
"
$testname
"
export
GOTESTNAME
fi
$MAKE
check
RUNTESTFLAGS
=
"
$RUNTESTFLAGS
GOTEST_TMPDIR=
$DIR
"
$MAKE
check
RUNTESTFLAGS
=
"
$RUNTESTFLAGS
GOTEST_TMPDIR=
$DIR
"
# Useful when using make check-target-libgo
# Useful when using make check-target-libgo
cat
libgo.log
>>
libgo-all.log
cat
libgo.log
>>
libgo-all.log
...
...
libgo/testsuite/libgo.testmain/testmain.exp
View file @
de90644a
...
@@ -57,4 +57,10 @@ if ![ string match "" $comp_output ] {
...
@@ -57,4 +57,10 @@ if ![ string match "" $comp_output ] {
set result [libgo_load "./a.exe" "-test.short" ""]
set result [libgo_load "./a.exe" "-test.short" ""]
set status [lindex $result 0]
set status [lindex $result 0]
$status go
set name "go"
if [info exists env(GOTESTNAME)] {
set name "$env(GOTESTNAME)"
}
$status $name
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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