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
572a2f68
Commit
572a2f68
authored
13 years ago
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gotest: Fix finding functions on PPC.
From-SVN: r186112
parent
1d0bafd9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
5 deletions
+20
-5
libgo/Makefile.am
+2
-2
libgo/Makefile.in
+2
-2
libgo/testsuite/gotest
+16
-1
No files found.
libgo/Makefile.am
View file @
572a2f68
...
...
@@ -1808,9 +1808,9 @@ CHECK = \
prefix
=
`
if
test
"
$
(@D)"
=
"regexp"
;
then
echo
regexp-test
;
else
dirname
$
(
@D
)
;
fi
`
;
\
test
"
$$
{prefix}"
!=
"."
||
prefix
=
"
$
(@D)"
;
\
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)"
--testname
=
"
$
(@D)"
$(GOTESTFLAGS)
;
\
$(SHELL)
$(srcdir)
/testsuite/gotest
--dejagnu
=
yes
--basedir
=
$(srcdir)
--srcdir
=
$(srcdir)
/go/
$
(
@D
)
--prefix
=
"libgo_
$$
{prefix}"
--pkgfiles
=
"
$
(go_
$
(subst /,_,
$
(@D))_files)"
--testname
=
"
$
(@D)"
--goarch
=
"
$(GOARCH)
"
$(GOTESTFLAGS)
;
\
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)"
--goarch
=
"
$(GOARCH)
"
$(GOTESTFLAGS)
>>
$@
-testlog
2>&1
;
then
\
echo
"PASS:
$
(@D)"
>>
$@
-testlog
;
\
echo
"PASS:
$
(@D)"
;
\
echo
"PASS:
$
(@D)"
>
$@
-testsum
;
\
...
...
This diff is collapsed.
Click to expand it.
libgo/Makefile.in
View file @
572a2f68
...
...
@@ -2045,9 +2045,9 @@ CHECK = \
prefix
=
`
if
test
"
$
(@D)"
=
"regexp"
;
then
echo
regexp-test
;
else
dirname
$
(
@D
)
;
fi
`
;
\
test
"
$$
{prefix}"
!=
"."
||
prefix
=
"
$
(@D)"
;
\
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)"
--testname
=
"
$
(@D)"
$(GOTESTFLAGS)
;
\
$(SHELL)
$(srcdir)
/testsuite/gotest
--dejagnu
=
yes
--basedir
=
$(srcdir)
--srcdir
=
$(srcdir)
/go/
$
(
@D
)
--prefix
=
"libgo_
$$
{prefix}"
--pkgfiles
=
"
$
(go_
$
(subst /,_,
$
(@D))_files)"
--testname
=
"
$
(@D)"
--goarch
=
"
$(GOARCH)
"
$(GOTESTFLAGS)
;
\
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)"
--goarch
=
"
$(GOARCH)
"
$(GOTESTFLAGS)
>>
$@
-testlog
2>&1
;
then
\
echo
"PASS:
$
(@D)"
>>
$@
-testlog
;
\
echo
"PASS:
$
(@D)"
;
\
echo
"PASS:
$
(@D)"
>
$@
-testsum
;
\
...
...
This diff is collapsed.
Click to expand it.
libgo/testsuite/gotest
View file @
572a2f68
...
...
@@ -32,6 +32,7 @@ loop=true
keep
=
false
prefix
=
dejagnu
=
no
GOARCH
=
""
timeout
=
240
testname
=
""
trace
=
false
...
...
@@ -86,6 +87,15 @@ while $loop; do
dejagnu
=
`
echo
$1
| sed
-e
's/^--dejagnu=//'
`
shift
;;
x--goarch
)
GOARCH
=
$2
shift
shift
;;
x--goarch
=
*
)
GOARCH
=
`
echo
$1
| sed
-e
's/^--goarch=//'
`
shift
;;
x--timeout
)
timeout
=
$2
shift
...
...
@@ -326,13 +336,18 @@ localname() {
}
{
text
=
"T"
case
"
$GOARCH
"
in
ppc
*
)
text
=
"D"
;;
esac
# test functions are named TestFoo
# the grep -v eliminates methods and other special names
# that have multiple dots.
pattern
=
'Test([^a-z].*)?'
# The -p option tells GNU nm not to sort.
# The -v option tells Solaris nm to sort by value.
tests
=
$(
$NM
-p
-v
_gotest_.o
$xofile
| egrep
' T .*\.'
$pattern
'$'
|
grep
-v
'\..*\..*\.'
| fgrep
-v
'$'
| sed
's/.* //'
| sed
's/.*\.\(.*\.\)/\1/'
)
tests
=
$(
$NM
-p
-v
_gotest_.o
$xofile
| egrep
"
$text
.*
\.
"
$pattern
'$'
|
grep
-v
'\..*\..*\.'
| fgrep
-v
'$'
| sed
's/.* //'
| sed
's/.*\.\(.*\.\)/\1/'
)
if
[
"x
$tests
"
=
x
]
;
then
echo
'gotest: warning: no tests matching '
$pattern
in
_gotest_.o
$xofile
1>&2
exit
2
...
...
This diff is collapsed.
Click to expand it.
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