Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
POTTIER Francois
menhir
Commits
2e2f666e
Commit
2e2f666e
authored
Nov 03, 2015
by
POTTIER Francois
Browse files
Amélioration de test.sh pour s'arrêter si quelque chose ne compile pas.
parent
3464ef4e
Changes
1
Show whitespace changes
Inline
Side-by-side
quicktest/test.sh
View file @
2e2f666e
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# Build the parser with the code back-end and run it.
# Build the parser with the code back-end and run it.
echo
"Building and running (code)..."
echo
"Building and running (code)..."
make
-C
$CALC
MENHIR
=
"
$MENHIR
--trace"
clean
>
/dev/null
make
-C
$CALC
MENHIR
=
"
$MENHIR
--trace"
clean
>
/dev/null
make
-C
$CALC
MENHIR
=
"
$MENHIR
--trace"
>
/dev/null
make
-C
$CALC
MENHIR
=
"
$MENHIR
--trace"
>
/dev/null
||
exit
1
for
f
in
$DATA
/
*
.real.in
;
do
for
f
in
$DATA
/
*
.real.in
;
do
b
=
${
f
%.in
}
b
=
${
f
%.in
}
$CALC
/calc <
$f
>
$b
.code.out 2>
$b
.code.err
$CALC
/calc <
$f
>
$b
.code.out 2>
$b
.code.err
...
@@ -21,7 +21,7 @@ done
...
@@ -21,7 +21,7 @@ done
# Build the parser with the table back-end and run it.
# Build the parser with the table back-end and run it.
echo
"Building and running (table)..."
echo
"Building and running (table)..."
make
-C
$CALC
MENHIR
=
"
$MENHIR
--trace --table"
clean
>
/dev/null
make
-C
$CALC
MENHIR
=
"
$MENHIR
--trace --table"
clean
>
/dev/null
make
-C
$CALC
MENHIR
=
"
$MENHIR
--trace --table"
>
/dev/null
make
-C
$CALC
MENHIR
=
"
$MENHIR
--trace --table"
>
/dev/null
||
exit
1
for
f
in
$DATA
/
*
.real.in
;
do
for
f
in
$DATA
/
*
.real.in
;
do
b
=
${
f
%.in
}
b
=
${
f
%.in
}
$CALC
/calc <
$f
>
$b
.table.out 2>
$b
.table.err
$CALC
/calc <
$f
>
$b
.table.out 2>
$b
.table.err
...
@@ -30,7 +30,7 @@ done
...
@@ -30,7 +30,7 @@ done
# Build the parser with the table back-end (with --inspection) and run it.
# Build the parser with the table back-end (with --inspection) and run it.
echo
"Building and running (inspection)..."
echo
"Building and running (inspection)..."
make
-C
$CALC
MENHIR
=
"
$MENHIR
--trace --table --inspection"
clean
>
/dev/null
make
-C
$CALC
MENHIR
=
"
$MENHIR
--trace --table --inspection"
clean
>
/dev/null
make
-C
$CALC
MENHIR
=
"
$MENHIR
--trace --table --inspection"
>
/dev/null
make
-C
$CALC
MENHIR
=
"
$MENHIR
--trace --table --inspection"
>
/dev/null
||
exit
1
for
f
in
$DATA
/
*
.real.in
;
do
for
f
in
$DATA
/
*
.real.in
;
do
b
=
${
f
%.in
}
b
=
${
f
%.in
}
$CALC
/calc <
$f
>
$b
.inspection.out 2>
$b
.inspection.err
$CALC
/calc <
$f
>
$b
.inspection.out 2>
$b
.inspection.err
...
...
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