⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (786 Bytes)
Bug #13412
» bug.sh
wanabe (_ wanabe)
, 04/16/2017 05:34 AM
#!/bin/sh
rm
bug.
*
.txt
make miniruby
for
i
in
`
seq
1 1 999
`
;
do
./miniruby bug.rb 2> out.txt
RESULT
=
$?
echo
$RESULT
>>
out.txt
printf
"
$i
\r
"
if
[
"
$RESULT
"
!=
"0"
]
;
then
name
=
bug.
$(
printf
"%03d"
$i
)
else
name
=
bug.pass.
$(
printf
"%03d"
$i
)
fi
if
ls
core.miniruby.
*
>
/dev/null 2>&1
;
then
for
core
in
core.miniruby.
*
;
do
gdb ./miniruby
$core
-batch
-ex
"q"
>>
out.txt
done
if
grep
-q
"cfp consist"
out.txt
;
then
name
=
$name
.cfp
else
name
=
$name
.nocfp
fi
if
grep
-q
"use prev"
out.txt
;
then
name
=
$name
.prev
else
name
=
$name
.noprev
fi
else
name
=
$name
.nocore
fi
if
grep
-q
"BUG"
out.txt
;
then
name
=
$name
.BUG
else
name
=
$name
.silent
fi
mv
out.txt
$name
.txt
rm
-f
core.
*
out.txt
done
« Previous
1
…
5
6
7
8
9
…
13
Next »
(7-7/13)
Loading...