]> arthur.barton.de Git - bup.git/blobdiff - t/data-size
tests: move all tests to test/
[bup.git] / t / data-size
diff --git a/t/data-size b/t/data-size
deleted file mode 100755 (executable)
index e5068da..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-"""": # -*-python-*-
-bup_python="$(dirname "$0")/../config/bin/python" || exit $?
-exec "$bup_python" "$0" ${1+"$@"}
-"""
-# end of bup preamble
-
-from __future__ import absolute_import, print_function
-
-from os.path import getsize, isdir
-from sys import argv, stderr
-import os
-
-def listdir_failure(ex):
-    raise ex
-
-def usage():
-    print('Usage: data-size PATH ...', file=sys.stderr)
-
-total = 0
-for path in argv[1:]:
-    if isdir(path):
-        for root, dirs, files in os.walk(path, onerror=listdir_failure):
-            total += sum(getsize(os.path.join(root, name)) for name in files)
-    else:
-        total += getsize(path)
-
-print(total)