summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorUri Simchoni <uri@samba.org>2016-01-06 00:12:36 +0200
committerJeremy Allison <jra@samba.org>2016-01-06 03:58:59 +0100
commit3e1b26bd6d0998c3af3d77f94eaac469434389be (patch)
tree31cadc4deca9b6dae0f0e5a43ec61544bd571b2a /testprogs
parent275da6c5c7e7c5dd0581e919912eb82102903a46 (diff)
downloadsamba-3e1b26bd6d0998c3af3d77f94eaac469434389be.tar.gz
selftest: more dfree command and smbclient disk usage tests
Add tests that cover disk usage printing by smbclient, as well as passing directory info to the "dfree command" script. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11662 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jan 6 03:58:59 CET 2016 on sn-devel-144
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/dfree.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/testprogs/blackbox/dfree.sh b/testprogs/blackbox/dfree.sh
index 2da3cbd6c5d..64845cd1784 100755
--- a/testprogs/blackbox/dfree.sh
+++ b/testprogs/blackbox/dfree.sh
@@ -1,2 +1,8 @@
#!/bin/sh
-echo "1000 10 2048"
+if [ "$1" = "." ] ; then
+ echo "1000 10 2048"
+elif [ "$1" = "subdir1" ] ; then
+ echo "2000 20 4096"
+else
+ echo "4000 40 8192"
+fi