Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Why3
why3
Commits
4abfee88
Commit
4abfee88
authored
Apr 19, 2010
by
Andrei Paskevich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update "bench" and "test" targets for the new main.ml
parent
e05b9a31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
21 deletions
+15
-21
Makefile.in
Makefile.in
+15
-21
No files found.
Makefile.in
View file @
4abfee88
...
...
@@ -375,7 +375,7 @@ clean::
bench
::
bin/why.@OCAMLBEST@ bin/whyml.@OCAMLBEST@
sh bench/bench
\
"bin/why.@OCAMLBEST@
-I theories
"
\
"bin/why.@OCAMLBEST@"
\
"bin/whyml.@OCAMLBEST@ -I theories"
BENCH_PLUGINS_CMO
:=
helloworld.cmo simplify_array.cmo
...
...
@@ -383,12 +383,12 @@ BENCH_PLUGINS_CMO := $(addprefix bench/plugins/,$(BENCH_PLUGINS_CMO))
BENCH_PLUGINS_CMXS
:=
$(BENCH_PLUGINS_CMO:.cmo=.cmxs)
bench_plugins
::
$(BENCH_PLUGINS_CMO) $(BENCH_PLUGINS_CMXS) byte $(TOOLS)
bin/why.byte
-D
bench/plugins/helloworld.drv
-I
theories/
\
src
/test.why
-t
Test
-g
G
bin/why.
$(OCAMLBEST)
-D
bench/plugins/helloworld.drv
-I
theories/
\
src
/test.why
-t
Test
-g
G
bin/why.
$(OCAMLBEST)
-D
bench/plugins/simplify_array.drv
-I
theories/
\
src
/test.why
-t
Test_simplify_array
-g
G
bin/why.byte
-D
bench/plugins/helloworld.drv
\
tests
/test
-jcf
.why
-t
Test
-g
G
bin/why.
$(OCAMLBEST)
-D
bench/plugins/helloworld.drv
\
tests
/test
-jcf
.why
-t
Test
-g
G
bin/why.
$(OCAMLBEST)
-D
bench/plugins/simplify_array.drv
\
tests
/test
-jcf
.why
-t
Test_simplify_array
-g
G
###############
# test targets
...
...
@@ -396,16 +396,11 @@ bench_plugins:: $(BENCH_PLUGINS_CMO) $(BENCH_PLUGINS_CMXS) byte $(TOOLS)
test
:
bin/why.byte $(TOOLS)
mkdir
-p
output_why3
ocamlrun
-bt
bin/why.byte
-I
theories/
-D
drivers/why3.drv
\
-o
output_why3 src/test.why
bin/why.byte
-D
drivers/alt_ergo.drv
-I
theories/
\
src/test.why
-t
Test
-g
G
bin/why.byte
-D
drivers/alt_ergo.drv
-I
theories/
\
--timeout
3
--prove
src/test.why
-t
Test
-g
G
bin/why.byte
-D
drivers/coq.drv
-I
theories/
\
src/test.why
-t
Test
-g
G
echo
bin/why.byte
-D
drivers/alt_ergo.drv
-I
theories/
\
--timeout
1
--prove
theories/real.why
bin/why.byte
-D
drivers/why3.drv
-o
output_why3 tests/test-jcf.why
bin/why.byte
-D
drivers/alt_ergo.drv tests/test-jcf.why
-t
Test
-g
G
bin/why.byte
-P
alt-ergo
--timelimit
3 tests/test-jcf.why
-t
Test
-g
G
bin/why.byte
-D
drivers/coq.drv tests/test-jcf.why
-t
Test
-g
G
echo
bin/why.byte
-P
alt-ergo
--timelimit
1
--prove
theories/real.why
@
printf
"*** Checking Coq file generation ***
\\
n"
@
mkdir
-p
output_coq
@
for
i
in
int.Abs int.EuclideanDivision int.ComputerDivision
\
...
...
@@ -413,14 +408,13 @@ test: bin/why.byte $(TOOLS)
real.ExpLogTest real.PowerTest real.TrigonometryTest
\
floating_point.Test array.TestBv32
\
;
do
\
printf
"Generating Coq file for
$$
i
\\
n"
&&
bin/why.byte
\
-D
drivers/coq.drv
-I
theories/
\
-o
output_coq
-t
$$
i
;
done
printf
"Generating Coq file for
$$
i
\\
n"
&&
\
bin/why.byte
-P
coq
-o
output_coq
-t
$$
i
;
done
@
printf
"*** Checking Coq compilation ***
\\
n"
@
for
i
in
output_coq/
*
.v
;
do
printf
"coq
$$
i
\\
n"
&&
coqc
$$
i
;
done
testl
:
bin/whyml.byte
ocamlrun
-bt
bin/whyml.byte
-I
theories/
src/programs/test
.mlw
ocamlrun
-bt
bin/whyml.byte
-I
theories/
tests/test-pgm-jcf
.mlw
examples/programs/%
:
bin/whyml.byte
bin/whyml.byte
-I
theories examples/programs/
$*
.mlw
...
...
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