Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
POTTIER Francois
menhir
Commits
711e4589
Commit
711e4589
authored
Sep 24, 2015
by
POTTIER Francois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed coverage.sh.
parent
d9fa224c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
bench/good/coverage.sh
bench/good/coverage.sh
+0
-26
No files found.
bench/good/coverage.sh
deleted
100755 → 0
View file @
d9fa224c
#!/bin/bash
# This script runs menhir --list-errors on every grammar in bench/good,
# aborting if it takes too long.
TIMEOUT
=
120
export
OCAMLRUNPARAM
=
b
SRC
=
../../src
MENHIR
=
../../src/_stage2/menhir.native
# Compile Menhir.
make
-C
$SRC
clean
||
exit
1
make
-C
$SRC
bootstrap
||
exit
1
# Remove any leftover output files.
rm
-f
log lr.csv
# Print the header of lr.csv. (This should be kept in sync with LRijkstra.ml.)
echo
"grammar,terminals,nonterminals,size,states,trie,facts,edges,time,heap"
>
lr.csv
# Try every grammar. (Only the single-file grammars, that is.)
for
f
in
`
ls
*
.mly | egrep
-v
'.*-([1-9]).mly'
`
;
do
echo
"Now dealing with:
$f
"
|
tee
-a
log
(
timeout
$TIMEOUT
$MENHIR
-lg
1
-la
2
--list-errors
--lalr
$f
)
>>
log 2>&1
echo
"Done dealing with:
$f
"
>>
log
done
echo
"Number of grammars that could not be handled in
$TIMEOUT
seconds:"
grep
aborting log |
wc
-l
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