summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2005-06-21 11:22:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:38 -0500
commit7f46f89257aa47b6362daf7c68242dae4aae8ae9 (patch)
tree1a23ba64ff60491d0cce9dbe6fa0d2b07579cac5
parent064d71c9d494835a8bfb76624e00d8330fc2523a (diff)
downloadsamba-7f46f89257aa47b6362daf7c68242dae4aae8ae9.tar.gz
samba-7f46f89257aa47b6362daf7c68242dae4aae8ae9.tar.bz2
samba-7f46f89257aa47b6362daf7c68242dae4aae8ae9.zip
r7806: add test for binary files as attribute values
(This used to be commit 2b2675055e5113eccb0b876799b226d480335495)
-rw-r--r--source4/lib/ldb/tests/photo.ldif5
-rw-r--r--source4/lib/ldb/tests/samba4.pngbin0 -> 6239 bytes
-rwxr-xr-xsource4/lib/ldb/tests/test-generic.sh3
3 files changed, 8 insertions, 0 deletions
diff --git a/source4/lib/ldb/tests/photo.ldif b/source4/lib/ldb/tests/photo.ldif
new file mode 100644
index 0000000000..24485f1203
--- /dev/null
+++ b/source4/lib/ldb/tests/photo.ldif
@@ -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
index 0000000000..c8096889a6
--- /dev/null
+++ b/source4/lib/ldb/tests/samba4.png
Binary files differ
diff --git a/source4/lib/ldb/tests/test-generic.sh b/source4/lib/ldb/tests/test-generic.sh
index 5e0cc9cec6..2df22e756c 100755
--- a/source4/lib/ldb/tests/test-generic.sh
+++ b/source4/lib/ldb/tests/test-generic.sh
@@ -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