s4:ldb/tests: there's no need to copy samba4.png
authorStefan Metzmacher <metze@samba.org>
Mon, 27 Dec 2010 12:17:00 +0000 (13:17 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 27 Dec 2010 14:37:57 +0000 (15:37 +0100)
metze

source4/lib/ldb/tests/photo.ldif
source4/lib/ldb/tests/test-generic.sh

index 28981b1f24b6067380fb83a2f7c5433a51c1c44d..95ab065672b297c2458e2798408344d85c1bef7f 100644 (file)
@@ -1,5 +1,5 @@
 dn: cn=Hampster Ursula,ou=Alumni Association,ou=People,o=University of Michigan,c=TEST
 changetype: modify
 add: jpegPhoto
-jpegPhoto:< file://tests/tmp/samba4.png
+jpegPhoto:< file://tests/samba4.png
 
index c8645a57aa3c855fef38ed6499cddb395260c0b6..8bbb7698fd179118819da1ee6d3ff9538e2f2b1c 100755 (executable)
@@ -81,15 +81,12 @@ if [ $count != 3 ]; then
 fi
 
 echo "Testing binary file attribute value"
-mkdir -p tests/tmp
-cp $LDBDIR/tests/samba4.png tests/tmp/samba4.png
 $VALGRIND ldbmodify$EXEEXT $LDBDIR/tests/photo.ldif || exit 1
 count=`$VALGRIND ldbsearch$EXEEXT '(cn=Hampster Ursula)' jpegPhoto | grep '^dn' | wc -l`
 if [ $count != 1 ]; then
     echo returned $count records - expected 1
     exit 1
 fi
-rm -f tests/tmp/samba4.png
 
 echo "*TODO* Testing UTF8 upper lower case searches !!"