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
8198dc13
Commit
8198dc13
authored
Apr 20, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gotest: Don't get confused by data tables named Test on PPC.
From-SVN: r186605
parent
f7613be5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libgo/testsuite/gotest
+3
-3
No files found.
libgo/testsuite/gotest
View file @
8198dc13
...
...
@@ -347,18 +347,18 @@ localname() {
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
"
$text
.*
\.
"
$pattern
'$'
|
grep
-v
'\..*\..*\.'
| fgrep
-v
'$'
| sed
's/.* //'
| sed
's/.*\.\(.*\.\)/\1/'
)
tests
=
$(
$NM
-p
-v
_gotest_.o
$xofile
| egrep
"
$text
.*
\.
"
$pattern
'$'
|
grep
-v
'\..*\..*\.'
| fgrep
-v
'$'
|
fgrep
-v
' __go_'
|
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
fi
# benchmarks are named BenchmarkFoo.
pattern
=
'Benchmark([^a-z].*)?'
benchmarks
=
$(
$NM
-p
-v
_gotest_.o
$xofile
| egrep
' T .*\.'
$pattern
'$'
|
grep
-v
'\..*\..*\.'
| fgrep
-v
'$
'
| sed
's/.* //'
| sed
's/.*\.\(.*\.\)/\1/'
)
benchmarks
=
$(
$NM
-p
-v
_gotest_.o
$xofile
| egrep
"
$test
.*
\.
"
$pattern
'$'
|
grep
-v
'\..*\..*\.'
| fgrep
-v
'$'
| fgrep
-v
' __go_
'
| sed
's/.* //'
| sed
's/.*\.\(.*\.\)/\1/'
)
# examples are named ExampleFoo
pattern
=
'Example([^a-z].*)?'
examples
=
$(
$NM
-p
-v
_gotest_.o
$xofile
| egrep
' T .*\.'
$pattern
'$'
|
grep
-v
'\..*\..*\.'
| fgrep
-v
'$
'
| sed
's/.* //'
| sed
's/.*\.\(.*\.\)/\1/'
)
examples
=
$(
$NM
-p
-v
_gotest_.o
$xofile
| egrep
"
$text
.*
\.
"
$pattern
'$'
|
grep
-v
'\..*\..*\.'
| fgrep
-v
'$'
| fgrep
-v
' __go_
'
| sed
's/.* //'
| sed
's/.*\.\(.*\.\)/\1/'
)
# package spec
echo
'package main'
...
...
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