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
112a0bfd
Commit
112a0bfd
authored
Apr 04, 2003
by
Mike Stump
Committed by
Mike Stump
Apr 04, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* compare_tests: Fix exit status and be more flexible with spacing.
From-SVN: r65255
parent
bb056a77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
16 deletions
+27
-16
contrib/ChangeLog
+4
-0
contrib/compare_tests
+23
-16
No files found.
contrib/ChangeLog
View file @
112a0bfd
2003
-
04
-
04
Mike
Stump
<
mrs
@apple
.
com
>
*
compare_tests
:
Fix
exit
status
and
be
more
flexible
with
spacing
.
2003
-
03
-
08
Phil
Edwards
<
pme
@gcc
.
gnu
.
org
>
*
test_summary
:
Add
-
h
,
print
existing
comments
as
help
.
...
...
contrib/compare_tests
View file @
112a0bfd
...
...
@@ -2,14 +2,16 @@
# This script automatically test the given tool with the tool's test cases,
# reporting anything of interest.
# exits with
1
if there is nothing of interest
# exits with
0
if there is something interesting
# exits with
0
if there is nothing of interest
# exits with
1
if there is something interesting
# exits with 2 if an error occurred
# Give two .sum files to compare them
# Written by Mike Stump <mrs@cygnus.com>
tool
=
gxx
tmp1
=
/tmp/
$tool
-testing
.
$$
a
tmp2
=
/tmp/
$tool
-testing
.
$$
b
now_s
=
/tmp/
$tool
-testing
.
$$
d
...
...
@@ -26,13 +28,14 @@ sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$2" >$tmp2
before
=
$tmp1
now
=
$tmp2
exit_status
=
0
trap
"rm -f
$tmp1
$tmp2
$now_s
$before_s
"
0 1 2 3 5 9 13 15
sort
+0.4
"
$now
"
>
"
$now_s
"
sort
+0.4
"
$before
"
>
"
$before_s
"
sort
-t
':'
+1
"
$now
"
>
"
$now_s
"
sort
-t
':'
+1
"
$before
"
>
"
$before_s
"
grep
'^FAIL
'
"
$now_s
"
| sed
's/^....:
//'
>
$tmp1
grep
'^PASS'
"
$before_s
"
| sed
's/^
....:
//'
| comm
-12
$tmp1
-
>
$tmp2
grep
'^FAIL
:'
"
$now_s
"
| sed
's/^[^:]*:[ ]
//'
>
$tmp1
grep
'^PASS'
"
$before_s
"
| sed
's/^
[^:]*:[ ]
//'
| comm
-12
$tmp1
-
>
$tmp2
grep
-s
.
$tmp2
>
/dev/null
if
[
$?
=
0
]
;
then
...
...
@@ -40,10 +43,11 @@ if [ $? = 0 ]; then
echo
cat
$tmp2
echo
exit_status
=
1
fi
grep
'^PASS'
"
$now_s
"
| sed
's/^
....:
//'
>
$tmp1
grep
'^FAIL'
"
$before_s
"
| sed
's/^
....:
//'
| comm
-12
$tmp1
-
>
$tmp2
grep
'^PASS'
"
$now_s
"
| sed
's/^
[^:]*:[ ]
//'
>
$tmp1
grep
'^FAIL'
"
$before_s
"
| sed
's/^
[^:]*:[ ]
//'
| comm
-12
$tmp1
-
>
$tmp2
grep
-s
.
$tmp2
>
/dev/null
if
[
$?
=
0
]
;
then
...
...
@@ -53,8 +57,8 @@ if [ $? = 0 ]; then
echo
fi
grep
'^FAIL'
"
$now_s
"
| sed
's/^
....:
//'
>
$tmp1
grep
'^[PF]A[SI][SL]'
"
$before_s
"
| sed
's/^
....:
//'
| comm
-23
$tmp1
-
>
$tmp2
grep
'^FAIL'
"
$now_s
"
| sed
's/^
[^:]*:[ ]
//'
>
$tmp1
grep
'^[PF]A[SI][SL]'
"
$before_s
"
| sed
's/^
[^:]*:[ ]
//'
| comm
-23
$tmp1
-
>
$tmp2
grep
-s
.
$tmp2
>
/dev/null
if
[
$?
=
0
]
;
then
...
...
@@ -62,10 +66,11 @@ if [ $? = 0 ]; then
echo
cat
$tmp2
echo
exit_status
=
1
fi
grep
'^PASS'
"
$now_s
"
| sed
's/^
....:
//'
>
$tmp1
grep
'^[PF]A[SI][SL]'
"
$before_s
"
| sed
's/^
....:
//'
| comm
-23
$tmp1
-
>
$tmp2
grep
'^PASS'
"
$now_s
"
| sed
's/^
[^:]*:[ ]
//'
>
$tmp1
grep
'^[PF]A[SI][SL]'
"
$before_s
"
| sed
's/^
[^:]*:[ ]
//'
| comm
-23
$tmp1
-
>
$tmp2
grep
-s
.
$tmp2
>
/dev/null
if
[
$?
=
0
]
;
then
...
...
@@ -75,8 +80,8 @@ if [ $? = 0 ]; then
echo
fi
grep
'^[PF]A[SI][SL]'
"
$now_s
"
| sed
's/^
....:
//'
>
$tmp1
grep
'^PASS'
"
$before_s
"
| sed
's/^
....:
//'
| comm
-13
$tmp1
-
>
$tmp2
grep
'^[PF]A[SI][SL]'
"
$now_s
"
| sed
's/^
[^:]*:[ ]
//'
>
$tmp1
grep
'^PASS'
"
$before_s
"
| sed
's/^
[^:]*:[ ]
//'
| comm
-13
$tmp1
-
>
$tmp2
grep
-s
.
$tmp2
>
/dev/null
if
[
$?
=
0
]
;
then
...
...
@@ -86,8 +91,8 @@ if [ $? = 0 ]; then
echo
fi
grep
'^[PF]A[SI][SL]'
"
$now_s
"
| sed
's/^
....:
//'
>
$tmp1
grep
'^FAIL'
"
$before_s
"
| sed
's/^
....:
//'
| comm
-13
$tmp1
-
>
$tmp2
grep
'^[PF]A[SI][SL]'
"
$now_s
"
| sed
's/^
[^:]*:[ ]
//'
>
$tmp1
grep
'^FAIL'
"
$before_s
"
| sed
's/^
[^:]*:[ ]
//'
| comm
-13
$tmp1
-
>
$tmp2
grep
-s
.
$tmp2
>
/dev/null
if
[
$?
=
0
]
;
then
...
...
@@ -96,3 +101,5 @@ if [ $? = 0 ]; then
cat
$tmp2
echo
fi
exit
$exit_status
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