Damien, il y a un problème avec les I/O, car le test io/2d échoue à
l'exécution :
brasilia~/src/oln % make -C _build/olena/tests/io check
make -C _build/olena/tests/io check
make: Entering directory `/home/levill_r/src/oln-proto-1.0/_build/olena/tests/io'
make check-local
make[1]: Entering directory `/home/levill_r/src/oln-proto-1.0/_build/olena/tests/io'
TOP_SRCDIR=../../../.. SRCDIR=../../../../olena/tests/io \
TOP_BUILDDIR=../../.. \
LDFLAGS=" " \
CPPFLAGS="-DHAVE_CONFIG_H -I../../../../metalic/tests/check
-I../../../../olena/tests/check -I../../../../metalic -I../../../metalic
-I../../../../integre -I../../../integre -I../../../../olena -I../../../olena -I../../..
-I../../../../olena/tests/io -I." \
CXXFLAGS=" -g -Wall -pedantic -Werror " \
LDADD="../check/libolncheck.a -lz" \
/bin/sh ../../../../contrib/runtests
FAIL: 2d (exits with $?=1)
========================================
1 failures.
make[1]: *** [check-runtests] Erreur 1
make[1]: Leaving directory `/home/levill_r/src/oln-proto-1.0/_build/olena/tests/io'
make: *** [check-am] Erreur 2
make: Leaving directory `/home/levill_r/src/oln-proto-1.0/_build/olena/tests/io'
https://svn.lrde.epita.fr/svn/oln/prototypes/proto-1.0
ChangeLog | 6 ++++++
tests/io/loadsave.hh | 9 ++-------
2 files changed, 8 insertions(+), 7 deletions(-)
Index: olena/ChangeLog
from Roland Levillain <roland(a)lrde.epita.fr>
Re-enable I/O tests.
* tests/io/loadsave.hh (loadsave): Really write and read images.
Index: olena/tests/io/loadsave.hh
--- olena/tests/io/loadsave.hh (revision 190)
+++ olena/tests/io/loadsave.hh (working copy)
@@ -38,13 +38,8 @@
T im1, im2;
im1 = oln::io::read(name);
-
-
-// oln::io::write(im1, savename);
-
-
-// im2 = oln::io::read(savename);
- im2 = oln::io::read(name);
+ oln::io::write(im1, savename);
+ im2 = oln::io::read(savename);
if (compare(im1, im2) == true)
std::cout << "OK" << std::endl;