diff options
| author | letouzey | 2002-02-15 13:02:06 +0000 |
|---|---|---|
| committer | letouzey | 2002-02-15 13:02:06 +0000 |
| commit | 0eff88d5a9ad9279a4e68fdb6e210c6ea671b613 (patch) | |
| tree | 147df6d08692fa9feeac48006485dbc65ba61c5f /contrib/extraction/test/extract.haskell | |
| parent | aae51ebd1cf21242d108f6ebc21d0bf602468da6 (diff) | |
suite et fin (?) de haskell: gestion des modules, mise en place du'un test
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@2480 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/extraction/test/extract.haskell')
| -rwxr-xr-x | contrib/extraction/test/extract.haskell | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/extraction/test/extract.haskell b/contrib/extraction/test/extract.haskell new file mode 100755 index 0000000000..ef98a62ed7 --- /dev/null +++ b/contrib/extraction/test/extract.haskell @@ -0,0 +1,13 @@ +#!/bin/sh +rm -f /tmp/extr$$.v +vfile=`./hs2v $1` +d=`dirname $vfile` +n=`basename $vfile .v` +cat custom/all > /tmp/extr$$.v +if [ -e custom/$n ]; then cat custom/$n >> /tmp/extr$$.v; fi +echo "Cd \"$d\". Haskell Extraction Module $n. " >> /tmp/extr$$.v +../../../bin/coqtop.opt -silent -batch -require $n -load-vernac-source /tmp/extr$$.v +out=$? +rm -f /tmp/extr$$.v +exit $out + |
