* doc/doc.mk: add new path variables.
* doc/tutorial/figures/ima2d-rot-1.ppm
* doc/tutorial/figures/ima2d-rot-2.ppm
* doc/tutorial/outputs/borderthickness.txt
* doc/tutorial/outputs/dpoint-1.txt
* doc/tutorial/outputs/graph-data-full.txt
* doc/tutorial/outputs/ima-has.txt
* doc/tutorial/outputs/ima-size.txt
* doc/tutorial/outputs/ima2d-1.txt
* doc/tutorial/outputs/ima2d-decl-2-blobs-full.txt
* doc/tutorial/outputs/ima2d-rot.txt
* doc/tutorial/outputs/labeling-compute-full.txt
* doc/tutorial/outputs/logical-not.txt
* doc/tutorial/outputs/paste-call-1.txt
* doc/tutorial/outputs/point-1.txt: reference files.
* doc/tutorial/samples/Makefile.am: diff the generated files to their
reference.
---
milena/ChangeLog | 24 ++++++++
milena/doc/doc.mk | 10 +++-
milena/doc/tutorial/figures/ima2d-rot-1.ppm | Bin 0 -> 235320 bytes
milena/doc/tutorial/figures/ima2d-rot-2.ppm | Bin 0 -> 235320 bytes
milena/doc/tutorial/outputs/borderthickness.txt | 16 ++++++
milena/doc/tutorial/outputs/dpoint-1.txt | 1 +
milena/doc/tutorial/outputs/graph-data-full.txt | 5 ++
milena/doc/tutorial/outputs/ima-has.txt | 7 +++
milena/doc/tutorial/outputs/ima-size.txt | 1 +
milena/doc/tutorial/outputs/ima2d-1.txt | 2 +
.../tutorial/outputs/ima2d-decl-2-blobs-full.txt | 7 +++
.../doc/tutorial/outputs/labeling-compute-full.txt | 3 +
milena/doc/tutorial/outputs/logical-not.txt | 18 ++++++
milena/doc/tutorial/outputs/paste-call-1.txt | 4 ++
milena/doc/tutorial/outputs/point-1.txt | 2 +
milena/doc/tutorial/samples/Makefile.am | 58 +++++++++++++++++---
16 files changed, 147 insertions(+), 11 deletions(-)
create mode 100644 milena/doc/tutorial/figures/ima2d-rot-1.ppm
create mode 100644 milena/doc/tutorial/figures/ima2d-rot-2.ppm
create mode 100644 milena/doc/tutorial/outputs/borderthickness.txt
create mode 100644 milena/doc/tutorial/outputs/dpoint-1.txt
create mode 100644 milena/doc/tutorial/outputs/graph-data-full.txt
create mode 100644 milena/doc/tutorial/outputs/ima-has.txt
create mode 100644 milena/doc/tutorial/outputs/ima-size.txt
create mode 100644 milena/doc/tutorial/outputs/ima2d-1.txt
create mode 100644 milena/doc/tutorial/outputs/ima2d-decl-2-blobs-full.txt
create mode 100644 milena/doc/tutorial/outputs/ima2d-rot.txt
create mode 100644 milena/doc/tutorial/outputs/labeling-compute-full.txt
create mode 100644 milena/doc/tutorial/outputs/logical-not.txt
create mode 100644 milena/doc/tutorial/outputs/paste-call-1.txt
create mode 100644 milena/doc/tutorial/outputs/point-1.txt
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 7669b73..2170ada 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,27 @@
+2008-11-21 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ Add reference files for example outputs used in the tutorial.
+
+ * doc/doc.mk: add new path variables.
+
+ * doc/tutorial/figures/ima2d-rot-1.ppm
+ * doc/tutorial/figures/ima2d-rot-2.ppm
+ * doc/tutorial/outputs/borderthickness.txt
+ * doc/tutorial/outputs/dpoint-1.txt
+ * doc/tutorial/outputs/graph-data-full.txt
+ * doc/tutorial/outputs/ima-has.txt
+ * doc/tutorial/outputs/ima-size.txt
+ * doc/tutorial/outputs/ima2d-1.txt
+ * doc/tutorial/outputs/ima2d-decl-2-blobs-full.txt
+ * doc/tutorial/outputs/ima2d-rot.txt
+ * doc/tutorial/outputs/labeling-compute-full.txt
+ * doc/tutorial/outputs/logical-not.txt
+ * doc/tutorial/outputs/paste-call-1.txt
+ * doc/tutorial/outputs/point-1.txt: reference files.
+
+ * doc/tutorial/samples/Makefile.am: diff the generated files to their
+ reference.
+
2008-11-21 Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
Add some reference code in morpho tree.
diff --git a/milena/doc/doc.mk b/milena/doc/doc.mk
index d911d86..3311139 100644
--- a/milena/doc/doc.mk
+++ b/milena/doc/doc.mk
@@ -2,6 +2,12 @@
include $(top_srcdir)/milena/tests/tests.mk
-OUTPUTS_DIR = $(top_builddir)/milena/doc/tutorial/outputs
-FIGURES_DIR = $(top_builddir)/milena/doc/tutorial/figures
+TUTORIAL_SRCDIR = $(top_srcdir)/milena/doc/tutorial
+OUTPUTS_SRCDIR = $(TUTORIAL_SRCDIR)/outputs
+FIGURES_SRCDIR = $(TUTORIAL_SRCDIR)/figures
+
+TUTORIAL_BUILDDIR = $(top_builddir)/milena/doc/tutorial
+OUTPUTS_BUILDDIR = $(TUTORIAL_BUILDDIR)/outputs
+FIGURES_BUILDDIR = $(TUTORIAL_BUILDDIR)/figures
+
diff --git a/milena/doc/tutorial/figures/ima2d-rot-1.ppm
b/milena/doc/tutorial/figures/ima2d-rot-1.ppm
new file mode 100644
index 0000000000000000000000000000000000000000..512ff99db8f5f207b30561a082499c471cd8116d
GIT binary patch
literal 235320
zcmeI*!Ae~R7==;CKE;Jj+KEX6DW$VOLMfyWLSMi%w<KUytQ7L}R^K3<Y;r#qTqlD5
zXRqx(Q{Vk`{@vl%<Mr|G^8Wbo@Zrnh_s>_y>&wHB7tarePxtq?zdU<(^YopItGkcK
zi{tI*`^$^J?jC>Y&AZ?Jcy)Mx{O5Ri_vfd><@LwI>*K%2tDD=ukJtByx0fGo9)Ic0
z-Iv4nZ{NRu^TYXzpPwHdzs_I0e0l!xaOOjR009C72oNAZfB*pk1PBlyK!5-N0t5&U
zAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C7
z2oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkL{N#M+fz&9pvivL~Z>~Tn^_}rek
zDe&}SKgDErbdt55;-A`AJ+mF1=6mF;$`x%UU`I1*hr$AO6fRe^nSdS5s2vIm*ipD#
z(Pjd6G^2JXEMQ0Baz&d7*wKvIp|F4*h07IfCSXT1YKOuCb`&mGw3&b%&8Qs;3)oS(
zT+wC%b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z&d7*wKvIp|F4*h07IfCSXT1YKOuC
zb`&mGw3&b%&8Qs;3)oS(T+wC%b~K}QC@f${;c`Wr3E0t$+M%$39fivkZ6;txGiryz
z0(KNGSG1Xc9nGj63Jcg#xLna@0(LZ`b|@@hN8xfsn+e#_jM|~FfE|U)6>TP9M>A@N
z!UA>_E?2affE~@K9SRHBQMg>uW&(CJqjo4PU`OF{MVkrO(Tv)muz($f%N1=VU`I1*
zhr$AO6fRe^nSdS5s2vIm*ipD#(Pjd6G^2JXEMQ0Baz&d7*wKvIp|F4*h07IfCSXT1
zYKOuCb`&mGw3&b%&8Qs;3)oS(T+wC%b~K}QC@f${;c`Wr3E0t$+M%$39fivkZ6;tx
zGiryz0(KNGSG1Xc9nGj63Jcg#xLna@0(LZ`b|@@hN8xfsn+e#_jM|~FfE|U)6>TP9
zM>A@N!UA>_E?2affE~@K9SRHBQMg>uW&(CJqjo4PU`OF{MVkrO(Tv)muz($f%N1=V
zU`I1*hr$AO6fRe^nSdS5s2vIm*ipD#(Pjd6G^2JXEMQ0Baz&d7*wKvIp|F4*h07If
zCSXT1YKOuCb`&mGw3&b%&8Qs;3)oS(T+wC%b~K}QC@f${;c`Wr3E0t$+M%$39fivk
zZ6;txGiryz0(KNGSG1Xc9nGj63Jcg#xLna@0(LZ`b|@@hN8xfsn+e#_jM|~F!0GPj
z>B)Tvd^-XU;rE1S1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBly
zK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF
X5FkK+009C72oNAZfB*pk|3lzEi5B~u
literal 0
HcmV?d00001
diff --git a/milena/doc/tutorial/figures/ima2d-rot-2.ppm
b/milena/doc/tutorial/figures/ima2d-rot-2.ppm
new file mode 100644
index 0000000000000000000000000000000000000000..c46713d24fdf6898ab821f6945fcab91780063de
GIT binary patch
literal 235320
zcmeI5+iDy~6h-~)uNcTn@*+D1hmf~`O$az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
new file mode 100644
index 0000000..94f4df7
--- /dev/null
+++ b/milena/doc/tutorial/outputs/borderthickness.txt
@@ -0,0 +1,16 @@
+- - - - - - - - -
+- - - - - - - - -
+- - - - - - - - -
+- - - - | | - - -
+- - - | - - - - -
+- - - | | - - - -
+- - - - - - - - -
+- - - - - - - - -
+- - - - - - - - -
+
+===========
+
+- | |
+| - -
+| | -
+
diff --git a/milena/doc/tutorial/outputs/dpoint-1.txt
b/milena/doc/tutorial/outputs/dpoint-1.txt
new file mode 100644
index 0000000..8982f0f
--- /dev/null
+++ b/milena/doc/tutorial/outputs/dpoint-1.txt
@@ -0,0 +1 @@
+(0, 1)
diff --git a/milena/doc/tutorial/outputs/graph-data-full.txt
b/milena/doc/tutorial/outputs/graph-data-full.txt
new file mode 100644
index 0000000..6bfffae
--- /dev/null
+++ b/milena/doc/tutorial/outputs/graph-data-full.txt
@@ -0,0 +1,5 @@
+graph_vertices_ima((0, 0)) = 10
+graph_vertices_ima((2, 2)) = 11
+graph_vertices_ima((0, 4)) = 12
+graph_vertices_ima((4, 3)) = 13
+graph_vertices_ima((4, 4)) = 14
diff --git a/milena/doc/tutorial/outputs/ima-has.txt
b/milena/doc/tutorial/outputs/ima-has.txt
new file mode 100644
index 0000000..598cd04
--- /dev/null
+++ b/milena/doc/tutorial/outputs/ima-has.txt
@@ -0,0 +1,7 @@
+ima1.has(0, 0) : 1
+ima1.has(-3, 0) : 1
+ima1.has(2, 5) : 1
+=========
+ima2.has(0, 0) : 1
+ima2.has(-3, 0) : 0
+ima2.has(2, 5) : 0
diff --git a/milena/doc/tutorial/outputs/ima-size.txt
b/milena/doc/tutorial/outputs/ima-size.txt
new file mode 100644
index 0000000..333c6f9
--- /dev/null
+++ b/milena/doc/tutorial/outputs/ima-size.txt
@@ -0,0 +1 @@
+nrows = 11 - ncols = 13
diff --git a/milena/doc/tutorial/outputs/ima2d-1.txt
b/milena/doc/tutorial/outputs/ima2d-1.txt
new file mode 100644
index 0000000..2a65d2f
--- /dev/null
+++ b/milena/doc/tutorial/outputs/ima2d-1.txt
@@ -0,0 +1,2 @@
+b = [(-2, -3)..(3, 5)]
+domain = [(-2, -3)..(3, 5)]
diff --git a/milena/doc/tutorial/outputs/ima2d-decl-2-blobs-full.txt
b/milena/doc/tutorial/outputs/ima2d-decl-2-blobs-full.txt
new file mode 100644
index 0000000..b48c715
--- /dev/null
+++ b/milena/doc/tutorial/outputs/ima2d-decl-2-blobs-full.txt
@@ -0,0 +1,7 @@
+0 1 1 0 0
+0 1 1 0 0
+0 0 0 0 0
+2 2 0 3 0
+2 0 3 3 3
+2 0 0 0 0
+
diff --git a/milena/doc/tutorial/outputs/ima2d-rot.txt
b/milena/doc/tutorial/outputs/ima2d-rot.txt
new file mode 100644
index 0000000..e69de29
diff --git a/milena/doc/tutorial/outputs/labeling-compute-full.txt
b/milena/doc/tutorial/outputs/labeling-compute-full.txt
new file mode 100644
index 0000000..174807d
--- /dev/null
+++ b/milena/doc/tutorial/outputs/labeling-compute-full.txt
@@ -0,0 +1,3 @@
+[(0, 1)..(1, 2)]
+[(3, 0)..(5, 1)]
+[(3, 2)..(4, 4)]
diff --git a/milena/doc/tutorial/outputs/logical-not.txt
b/milena/doc/tutorial/outputs/logical-not.txt
new file mode 100644
index 0000000..42391a7
--- /dev/null
+++ b/milena/doc/tutorial/outputs/logical-not.txt
@@ -0,0 +1,18 @@
+ima:
+| -
+- |
+
+----
+ima_neg:
+- |
+| -
+
+ima:
+| -
+- |
+
+----
+not_inplace(ima)
+- |
+| -
+
diff --git a/milena/doc/tutorial/outputs/paste-call-1.txt
b/milena/doc/tutorial/outputs/paste-call-1.txt
new file mode 100644
index 0000000..a09b521
--- /dev/null
+++ b/milena/doc/tutorial/outputs/paste-call-1.txt
@@ -0,0 +1,4 @@
+b b b b
+b b b b
+b b b b
+
diff --git a/milena/doc/tutorial/outputs/point-1.txt
b/milena/doc/tutorial/outputs/point-1.txt
new file mode 100644
index 0000000..39f77d0
--- /dev/null
+++ b/milena/doc/tutorial/outputs/point-1.txt
@@ -0,0 +1,2 @@
+has(p1)? false
+has(p2)? true
diff --git a/milena/doc/tutorial/samples/Makefile.am
b/milena/doc/tutorial/samples/Makefile.am
index dcbf13c..43a5877 100644
--- a/milena/doc/tutorial/samples/Makefile.am
+++ b/milena/doc/tutorial/samples/Makefile.am
@@ -5,6 +5,7 @@ include $(top_srcdir)/milena/doc/doc.mk
bin_PROGRAMS = \
borderthickness \
dpoint-1 \
+ graph-data-full \
ima-has \
ima-size \
ima2d-1 \
@@ -17,6 +18,7 @@ bin_PROGRAMS = \
borderthickness_SOURCES = borderthickness.cc
dpoint_1_SOURCES = dpoint-1.cc
+graph_data_full_SOURCES = graph-data-full.cc
ima_has_SOURCES = ima-has.cc
ima_size_SOURCES = ima-size.cc
ima2d_1_SOURCES = ima2d-1.cc
@@ -27,15 +29,53 @@ logical_not_SOURCES = logical-not.cc
paste_call_1_SOURCES = paste-call-1.cc
point_1_SOURCES = point-1.cc
-all:
- mkdir -p $(OUTPUTS_DIR)
- mkdir -p $(FIGURES_DIR)
- @failcom='exit 1'; \
- list='$(bin_PROGRAMS)'; for bin in $$list; do \
- echo "Running $$bin"; \
- ./$$bin > $(OUTPUTS_DIR)/$$bin.txt || eval $$failcom; \
- done;
+all: clean-png-figures
+ mkdir -p $(OUTPUTS_BUILDDIR)
+ mkdir -p $(FIGURES_BUILDDIR)
+ @failcom='exit 1'; \
+ list='$(bin_PROGRAMS)'; for bin in $$list; do \
+ echo "Running $$bin"; \
+ ./$$bin > $(OUTPUTS_BUILDDIR)/$$bin.txt || eval $$failcom; \
+ done; \
+ has_txt_diff=""; \
+ txtlist="$(OUTPUTS_BUILDDIR)/*"; for txt in $$txtlist; do \
+ echo "Diff `basename $$txt`"; \
+ diff $$txt $(OUTPUTS_SRCDIR)/`basename $$txt` >/dev/null 2>&1 \
+ || has_txt_diff+=" `basename $$txt`"; \
+ done; \
+ has_fig_diff=""; \
+ figlist="$(FIGURES_BUILDDIR)/*"; for fig in $$figlist; do \
+ echo "Diff `basename $$fig`"; \
+ diff $$fig $(FIGURES_SRCDIR)/`basename $$fig` >/dev/null 2>&1 \
+ || has_fig_diff=" `basename $$fig`"; \
+ done; \
+ (test -z "$$has_txt_diff" && test -z "$$has_fig_diff") \
+ || (echo "--------"; \
+ echo "ERROR: please check if the tutorial needs an update.";\
+ echo " The following files differ from their \
+reference or their reference file does not exist:"; \
+ echo "--------"; \
+ echo "* Outputs:"; \
+ echo ""; \
+ echo "$$has_txt_diff"; \
+ echo ""; \
+ echo "--------"; \
+ echo "* Figures:"; \
+ echo ""; \
+ echo "$$has_fig_diff"; \
+ echo ""; \
+ echo "--------"; \
+ echo "* Please update the reference files located in:"; \
+ echo ""; \
+ echo " $(OUTPUTS_SRCDIR)"; \
+ echo " $(FIGURES_SRCDIR)"; \
+ echo ""; \
+ eval $$failcom);
+
clean-local:
- rm -Rf $(OUTPUTS_DIR) $(FIGURES_DIR)
+ rm -Rf $(OUTPUTS_BUILDDIR) $(FIGURES_BUILDDIR)
+## Clean up converted images. (*.p*m -> *.png)
+clean-png-figures:
+ rm -f $(FIGURES_BUILDDIR)/*.png
--
1.5.6.5