[gegl/soc-2011-warp] add new test for gegl_buffer_dup (copy on write)
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2011-warp] add new test for gegl_buffer_dup (copy on write)
- Date: Tue, 2 Aug 2011 08:21:25 +0000 (UTC)
commit f7172b97cbd8e3468932330e406e7526edd26835
Author: Michael Murà <batolettre gmail com>
Date: Tue Aug 2 10:20:17 2011 +0200
add new test for gegl_buffer_dup (copy on write)
...uplicate.buf => test_gegl_buffer_dup_copy1.buf} | 2 +-
...uplicate.buf => test_gegl_buffer_dup_copy2.buf} | 2 +-
.../reference/test_gegl_buffer_dup_write1.buf | 23 ++++++++++++++++++++
...plicate.buf => test_gegl_buffer_dup_write2.buf} | 2 +-
...plicate.buf => test_gegl_buffer_dup_write3.buf} | 2 +-
.../reference/test_gegl_buffer_dup_write4.buf | 23 ++++++++++++++++++++
...er_duplicate.c => test_gegl_buffer_dup_copy1.c} | 0
...er_duplicate.c => test_gegl_buffer_dup_copy2.c} | 2 +-
...r_duplicate.c => test_gegl_buffer_dup_write1.c} | 3 +-
...r_duplicate.c => test_gegl_buffer_dup_write2.c} | 1 +
...r_duplicate.c => test_gegl_buffer_dup_write3.c} | 3 +-
...r_duplicate.c => test_gegl_buffer_dup_write4.c} | 1 +
12 files changed, 57 insertions(+), 7 deletions(-)
---
diff --git a/tests/buffer/reference/test_gegl_buffer_duplicate.buf b/tests/buffer/reference/test_gegl_buffer_dup_copy1.buf
similarity index 97%
copy from tests/buffer/reference/test_gegl_buffer_duplicate.buf
copy to tests/buffer/reference/test_gegl_buffer_dup_copy1.buf
index ba9d94c..8a70af7 100644
--- a/tests/buffer/reference/test_gegl_buffer_duplicate.buf
+++ b/tests/buffer/reference/test_gegl_buffer_dup_copy1.buf
@@ -1,4 +1,4 @@
-Test: test_gegl_buffer_duplicate
+Test: test_gegl_buffer_dup_copy1
ââââââââââââââââââââââ
â â
â â
diff --git a/tests/buffer/reference/test_gegl_buffer_duplicate.buf b/tests/buffer/reference/test_gegl_buffer_dup_copy2.buf
similarity index 97%
copy from tests/buffer/reference/test_gegl_buffer_duplicate.buf
copy to tests/buffer/reference/test_gegl_buffer_dup_copy2.buf
index ba9d94c..15bcecd 100644
--- a/tests/buffer/reference/test_gegl_buffer_duplicate.buf
+++ b/tests/buffer/reference/test_gegl_buffer_dup_copy2.buf
@@ -1,4 +1,4 @@
-Test: test_gegl_buffer_duplicate
+Test: test_gegl_buffer_dup_copy2
ââââââââââââââââââââââ
â â
â â
diff --git a/tests/buffer/reference/test_gegl_buffer_dup_write1.buf b/tests/buffer/reference/test_gegl_buffer_dup_write1.buf
new file mode 100644
index 0000000..529b9d9
--- /dev/null
+++ b/tests/buffer/reference/test_gegl_buffer_dup_write1.buf
@@ -0,0 +1,23 @@
+Test: test_gegl_buffer_dup_write1
+ââââââââââââââââââââââ
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+â âââ âââ âââ â
+â âââ âââ âââ â
+â âââ âââ âââ â
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+â âââ âââ âââ â
+â âââ âââ âââ â
+â âââ âââ âââ â
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+â âââ âââ âââ â
+â âââ âââ âââ â
+â âââ âââ âââ â
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+ââââââââââââââââââââââ
diff --git a/tests/buffer/reference/test_gegl_buffer_duplicate.buf b/tests/buffer/reference/test_gegl_buffer_dup_write2.buf
similarity index 97%
copy from tests/buffer/reference/test_gegl_buffer_duplicate.buf
copy to tests/buffer/reference/test_gegl_buffer_dup_write2.buf
index ba9d94c..bec90af 100644
--- a/tests/buffer/reference/test_gegl_buffer_duplicate.buf
+++ b/tests/buffer/reference/test_gegl_buffer_dup_write2.buf
@@ -1,4 +1,4 @@
-Test: test_gegl_buffer_duplicate
+Test: test_gegl_buffer_dup_write2
ââââââââââââââââââââââ
â â
â â
diff --git a/tests/buffer/reference/test_gegl_buffer_duplicate.buf b/tests/buffer/reference/test_gegl_buffer_dup_write3.buf
similarity index 97%
rename from tests/buffer/reference/test_gegl_buffer_duplicate.buf
rename to tests/buffer/reference/test_gegl_buffer_dup_write3.buf
index ba9d94c..2933667 100644
--- a/tests/buffer/reference/test_gegl_buffer_duplicate.buf
+++ b/tests/buffer/reference/test_gegl_buffer_dup_write3.buf
@@ -1,4 +1,4 @@
-Test: test_gegl_buffer_duplicate
+Test: test_gegl_buffer_dup_write3
ââââââââââââââââââââââ
â â
â â
diff --git a/tests/buffer/reference/test_gegl_buffer_dup_write4.buf b/tests/buffer/reference/test_gegl_buffer_dup_write4.buf
new file mode 100644
index 0000000..eeb1818
--- /dev/null
+++ b/tests/buffer/reference/test_gegl_buffer_dup_write4.buf
@@ -0,0 +1,23 @@
+Test: test_gegl_buffer_dup_write4
+ââââââââââââââââââââââ
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+â âââ âââ âââ â
+â âââ âââ âââ â
+â âââ âââ âââ â
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+â âââ âââ âââ â
+â âââ âââ âââ â
+â âââ âââ âââ â
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+â âââ âââ âââ â
+â âââ âââ âââ â
+â âââ âââ âââ â
+ââââ âââ âââ âââ
+ââââ âââ âââ âââ
+ââââââââââââââââââââââ
diff --git a/tests/buffer/tests/test_gegl_buffer_duplicate.c b/tests/buffer/tests/test_gegl_buffer_dup_copy1.c
similarity index 100%
copy from tests/buffer/tests/test_gegl_buffer_duplicate.c
copy to tests/buffer/tests/test_gegl_buffer_dup_copy1.c
diff --git a/tests/buffer/tests/test_gegl_buffer_duplicate.c b/tests/buffer/tests/test_gegl_buffer_dup_copy2.c
similarity index 92%
copy from tests/buffer/tests/test_gegl_buffer_duplicate.c
copy to tests/buffer/tests/test_gegl_buffer_dup_copy2.c
index fa9fd1e..c069694 100644
--- a/tests/buffer/tests/test_gegl_buffer_duplicate.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_copy2.c
@@ -6,7 +6,7 @@ TEST ()
buffer = gegl_buffer_new (&bound, babl_format ("Y float"));
vgrad (buffer);
buffer2 = gegl_buffer_dup (buffer);
- print_buffer (buffer2);
+ print_buffer (buffer);
gegl_buffer_destroy (buffer);
gegl_buffer_destroy (buffer2);
test_end ();
diff --git a/tests/buffer/tests/test_gegl_buffer_duplicate.c b/tests/buffer/tests/test_gegl_buffer_dup_write1.c
similarity index 82%
copy from tests/buffer/tests/test_gegl_buffer_duplicate.c
copy to tests/buffer/tests/test_gegl_buffer_dup_write1.c
index fa9fd1e..6552974 100644
--- a/tests/buffer/tests/test_gegl_buffer_duplicate.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_write1.c
@@ -6,7 +6,8 @@ TEST ()
buffer = gegl_buffer_new (&bound, babl_format ("Y float"));
vgrad (buffer);
buffer2 = gegl_buffer_dup (buffer);
- print_buffer (buffer2);
+ checkerboard (buffer, 3, 0.0, 1.0);
+ print_buffer (buffer);
gegl_buffer_destroy (buffer);
gegl_buffer_destroy (buffer2);
test_end ();
diff --git a/tests/buffer/tests/test_gegl_buffer_duplicate.c b/tests/buffer/tests/test_gegl_buffer_dup_write2.c
similarity index 89%
copy from tests/buffer/tests/test_gegl_buffer_duplicate.c
copy to tests/buffer/tests/test_gegl_buffer_dup_write2.c
index fa9fd1e..239d5e8 100644
--- a/tests/buffer/tests/test_gegl_buffer_duplicate.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_write2.c
@@ -6,6 +6,7 @@ TEST ()
buffer = gegl_buffer_new (&bound, babl_format ("Y float"));
vgrad (buffer);
buffer2 = gegl_buffer_dup (buffer);
+ checkerboard (buffer, 3, 0.0, 1.0);
print_buffer (buffer2);
gegl_buffer_destroy (buffer);
gegl_buffer_destroy (buffer2);
diff --git a/tests/buffer/tests/test_gegl_buffer_duplicate.c b/tests/buffer/tests/test_gegl_buffer_dup_write3.c
similarity index 82%
copy from tests/buffer/tests/test_gegl_buffer_duplicate.c
copy to tests/buffer/tests/test_gegl_buffer_dup_write3.c
index fa9fd1e..5899b29 100644
--- a/tests/buffer/tests/test_gegl_buffer_duplicate.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_write3.c
@@ -6,7 +6,8 @@ TEST ()
buffer = gegl_buffer_new (&bound, babl_format ("Y float"));
vgrad (buffer);
buffer2 = gegl_buffer_dup (buffer);
- print_buffer (buffer2);
+ checkerboard (buffer2, 3, 0.0, 1.0);
+ print_buffer (buffer);
gegl_buffer_destroy (buffer);
gegl_buffer_destroy (buffer2);
test_end ();
diff --git a/tests/buffer/tests/test_gegl_buffer_duplicate.c b/tests/buffer/tests/test_gegl_buffer_dup_write4.c
similarity index 89%
rename from tests/buffer/tests/test_gegl_buffer_duplicate.c
rename to tests/buffer/tests/test_gegl_buffer_dup_write4.c
index fa9fd1e..434e36e 100644
--- a/tests/buffer/tests/test_gegl_buffer_duplicate.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_write4.c
@@ -6,6 +6,7 @@ TEST ()
buffer = gegl_buffer_new (&bound, babl_format ("Y float"));
vgrad (buffer);
buffer2 = gegl_buffer_dup (buffer);
+ checkerboard (buffer2, 3, 0.0, 1.0);
print_buffer (buffer2);
gegl_buffer_destroy (buffer);
gegl_buffer_destroy (buffer2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]