diff options
author | Xavier Clerc <xavier.clerc@inria.fr> | 2010-01-25 14:02:48 +0000 |
---|---|---|
committer | Xavier Clerc <xavier.clerc@inria.fr> | 2010-01-25 14:02:48 +0000 |
commit | eb4d79aa50fa3ab201dbe45451e9682cba6c52a2 (patch) | |
tree | bb03e4a398754e7b66bad8c52d39264a7d2dac50 | |
parent | 216de21fe494de664f1f5cd62d61b88a24dc88ed (diff) |
Tests moved to 'lib-bigarray-2'
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9569 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | testsuite/tests/lib-bigarray-2/Makefile | 6 | ||||
-rw-r--r-- | testsuite/tests/lib-bigarray-2/bigarrf.f (renamed from test/Moretest/bigarrf.f) | 0 | ||||
-rw-r--r-- | testsuite/tests/lib-bigarray-2/bigarrfml.ml (renamed from test/Moretest/bigarrfml.ml) | 0 | ||||
-rw-r--r-- | testsuite/tests/lib-bigarray-2/bigarrfml.reference | 27 | ||||
-rw-r--r-- | testsuite/tests/lib-bigarray-2/bigarrfstub.c (renamed from test/Moretest/bigarrfstub.c) | 0 |
5 files changed, 33 insertions, 0 deletions
diff --git a/testsuite/tests/lib-bigarray-2/Makefile b/testsuite/tests/lib-bigarray-2/Makefile new file mode 100644 index 000000000..74b02913b --- /dev/null +++ b/testsuite/tests/lib-bigarray-2/Makefile @@ -0,0 +1,6 @@ +LIBRARIES=unix bigarray +C_FILES=bigarrfstub +F_FILES=bigarrf + +include ../../makefiles/Makefile.several +include ../../makefiles/Makefile.common diff --git a/test/Moretest/bigarrf.f b/testsuite/tests/lib-bigarray-2/bigarrf.f index 5c2462c2e..5c2462c2e 100644 --- a/test/Moretest/bigarrf.f +++ b/testsuite/tests/lib-bigarray-2/bigarrf.f diff --git a/test/Moretest/bigarrfml.ml b/testsuite/tests/lib-bigarray-2/bigarrfml.ml index c91562284..c91562284 100644 --- a/test/Moretest/bigarrfml.ml +++ b/testsuite/tests/lib-bigarray-2/bigarrfml.ml diff --git a/testsuite/tests/lib-bigarray-2/bigarrfml.reference b/testsuite/tests/lib-bigarray-2/bigarrfml.reference new file mode 100644 index 000000000..8368d5aba --- /dev/null +++ b/testsuite/tests/lib-bigarray-2/bigarrfml.reference @@ -0,0 +1,27 @@ + + +------ Foreign function interface -------- + +Passing an array to C + +Accessing a C array + 1... 2... 3... 4... +Passing an array to Fortran + 0 0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 + 1 1000.0 1001.0 1002.0 1003.0 1004.0 1005.0 1006.0 1007.0 + 2 2000.0 2001.0 2002.0 2003.0 2004.0 2005.0 2006.0 2007.0 + 3 3000.0 3001.0 3002.0 3003.0 3004.0 3005.0 3006.0 3007.0 + 4 4000.0 4001.0 4002.0 4003.0 4004.0 4005.0 4006.0 4007.0 + 5 5000.0 5001.0 5002.0 5003.0 5004.0 5005.0 5006.0 5007.0 + +Accessing a Fortran array + 1... 2... 3... 4... + 1 1001.01002.01003.01004.0 + + 2 2001.02002.02003.02004.0 + + 3 3001.03002.03003.03004.0 + + 4 4001.04002.04003.04004.0 + + 5 5001.05002.05003.05004.0 diff --git a/test/Moretest/bigarrfstub.c b/testsuite/tests/lib-bigarray-2/bigarrfstub.c index 87bd67b7b..87bd67b7b 100644 --- a/test/Moretest/bigarrfstub.c +++ b/testsuite/tests/lib-bigarray-2/bigarrfstub.c |