r7806: add test for binary files as attribute values
authorSimo Sorce <idra@samba.org>
Tue, 21 Jun 2005 11:22:05 +0000 (11:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:38 +0000 (13:18 -0500)
(This used to be commit 2b2675055e5113eccb0b876799b226d480335495)

source4/lib/ldb/tests/photo.ldif [new file with mode: 0644]
source4/lib/ldb/tests/samba4.png [new file with mode: 0644]
source4/lib/ldb/tests/test-generic.sh

diff --git a/source4/lib/ldb/tests/photo.ldif b/source4/lib/ldb/tests/photo.ldif
new file mode 100644 (file)
index 0000000..24485f1
--- /dev/null
@@ -0,0 +1,5 @@
+dn: cn=Hampster Ursula,ou=Alumni Association,ou=People,o=University of Michigan,c=US
+changetype: modify
+add: photo
+photo:< tests/samba4.png
+
diff --git a/source4/lib/ldb/tests/samba4.png b/source4/lib/ldb/tests/samba4.png
new file mode 100644 (file)
index 0000000..c809688
Binary files /dev/null and b/source4/lib/ldb/tests/samba4.png differ
index 5e0cc9cec6e22d95675fc070b097250502d2b9a3..2df22e756c3e80b1e4c3dbc3aefc518d4bcffed8 100755 (executable)
@@ -50,3 +50,6 @@ if [ "$count" != 3 ]; then
     echo returned $count records - expected 3
     exit 1
 fi
+
+echo "Testing binary file attribute value"
+$VALGRIND bin/ldbmodify tests/photo.ldif || exit 1