From 7f46f89257aa47b6362daf7c68242dae4aae8ae9 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 21 Jun 2005 11:22:05 +0000 Subject: r7806: add test for binary files as attribute values (This used to be commit 2b2675055e5113eccb0b876799b226d480335495) --- source4/lib/ldb/tests/photo.ldif | 5 +++++ source4/lib/ldb/tests/samba4.png | Bin 0 -> 6239 bytes source4/lib/ldb/tests/test-generic.sh | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 source4/lib/ldb/tests/photo.ldif create mode 100644 source4/lib/ldb/tests/samba4.png (limited to 'source4') 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 Binary files /dev/null and b/source4/lib/ldb/tests/samba4.png 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 -- cgit