diff options
author | Lars Wirzenius <liw@iki.fi> | 2007-07-24 17:23:03 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@iki.fi> | 2007-07-24 17:23:03 +0300 |
commit | 69be4de24d26fada5351aece9d6b7e1f2f7fb87e (patch) | |
tree | d701736fb59f3b93000cff80f234af4a1022b252 | |
parent | fbf56482c2919f31bc39813ffb69d06445ee358b (diff) | |
parent | 0ed0eec04b74aec2f6a1c2a8ade7b7dc5ccdf9b8 (diff) | |
download | genbackupdata-69be4de24d26fada5351aece9d6b7e1f2f7fb87e.tar.gz |
Merged from temporary distutils branch.
-rw-r--r-- | MANIFEST.in | 2 | ||||
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | README | 35 | ||||
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 21 | ||||
-rw-r--r-- | debian/copyright | 24 | ||||
-rw-r--r-- | debian/dirs | 1 | ||||
-rw-r--r-- | debian/pycompat | 1 | ||||
-rwxr-xr-x | debian/rules | 13 | ||||
-rwxr-xr-x | genbackupdata | 6 | ||||
-rw-r--r-- | genbackupdata.py | 2 | ||||
-rw-r--r-- | setup.py | 37 |
13 files changed, 152 insertions, 2 deletions
diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..ea8f3c5 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include genbackupdata.1 +include tests.py @@ -5,3 +5,9 @@ check: python-coverage -x tests.py python-coverage -r -m -o /usr,/var | \ awk '{ print } /^TOTAL/ && $$2 != $$3 {exit 1}' + +clean: + rm -rf *.pyc *.pyo build dist MANIFEST + +dist: + python setup.py sdist @@ -0,0 +1,35 @@ +genbackupdata +============= + +genbackupdata creates or modifies directory trees in ways that simulate +real filesystems sufficiently well for performance testing of backup +software. For example, it can create files that are a mix of small text +files and big binary files, with the binary files containing random +binary junk which compresses badly. This can then be backed up, and +later the directory tree can be changed by creating new files, modifying +files, or deleting or renaming files. The backup can then be run again. + +The output is deterministic, such that for a given set of parameters the +same output always happens. Thus it is more efficient to distribute +genbackupdata and a set of parameters between people who wish to +benchmark backup software than distributing very large test sets. + +The home page is: http://braawi.org/genbackupdata.html + +Legalese: + + Copyright (C) 2007 Lars Wirzenius <liw@iki.fi> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ae8b642 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +genbackupdata (1.0-1) unstable; urgency=low + + * First version. + + -- Lars Wirzenius <liw@iki.fi> Fri, 13 Jul 2007 00:33:00 +0300 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3c3b5c0 --- /dev/null +++ b/debian/control @@ -0,0 +1,21 @@ +Source: genbackupdata +Maintainer: Lars Wirzenius <liw@iki.fi> +Section: devel +Priority: optional +Standards-Version: 3.7.2 +Build-Depends: cdbs (>= 0.4.43), debhelper (>= 5.0.38), + python-central (>= 0.5.6), python +XS-Python-Version: all + +Package: genbackupdata +Architecture: all +Depends: ${python:Depends} +XB-Python-Version: ${python:Versions} +Description: generate test data sets for backup software + genbackupdata creates or modifies directory trees in ways that simulate + real filesystems sufficiently well for performance testing of backup + software. For example, it can create files that are a mix of small text + files and big binary files, with the binary files containing random + binary junk which compresses badly. This can then be backed up, and + later the directory tree can be changed by creating new files, modifying + files, or deleting or renaming files. The backup can then be run again. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..b196870 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,24 @@ +genbackupdata was originally written and packaged as a .deb by Lars +Wirzenius <liw@iki.fi>. + +It was downloaded from http://braawi.org/genbackupdata.html + +genbackupdata is licensed under the GNU General Public License, or any later +version. On Debian systems, you can find version 2 of the license at +/usr/share/common-licenses/GPL-2 . + +# Copyright (C) 2007 Lars Wirzenius <liw@iki.fi> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..fcf16f2 --- /dev/null +++ b/debian/dirs @@ -0,0 +1 @@ +usr/share/man/man1 diff --git a/debian/pycompat b/debian/pycompat new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f3783d2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM=pycentral + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk + +binary-install/genbackupdata:: + install -m 0644 genbackupdata.1 \ + debian/genbackupdata/usr/share/man/man1 + +clean:: + $(MAKE) clean diff --git a/genbackupdata b/genbackupdata new file mode 100755 index 0000000..8467396 --- /dev/null +++ b/genbackupdata @@ -0,0 +1,6 @@ +#!/usr/bin/python +# +# Run genbackupdata.Application as a command line utility. + +import sys, genbackupdata +genbackupdata.Application(sys.argv[1:]).run() diff --git a/genbackupdata.py b/genbackupdata.py index 9e4360e..2b9a931 100644 --- a/genbackupdata.py +++ b/genbackupdata.py @@ -1,5 +1,3 @@ -#!/usr/bin/python -# # Copyright (C) 2007 Lars Wirzenius <liw@iki.fi> # # This program is free software; you can redistribute it and/or modify diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..cb30fc6 --- /dev/null +++ b/setup.py @@ -0,0 +1,37 @@ +from distutils.core import setup + +setup(name='genbackupdata', + version='1.0', + description='Generate test data for backup software', + long_description='''\ +genbackupdata creates or modifies directory trees in ways that simulate +real filesystems sufficiently well for performance testing of backup +software. For example, it can create files that are a mix of small text +files and big binary files, with the binary files containing random +binary junk which compresses badly. This can then be backed up, and +later the directory tree can be changed by creating new files, modifying +files, or deleting or renaming files. The backup can then be run again. + +The output is deterministic, such that for a given set of parameters the +same output always happens. Thus it is more efficient to distribute +genbackupdata and a set of parameters between people who wish to +benchmark backup software than distributing very large test sets. +''', + author='Lars Wirzenius', + author_email='liw@iki.fi', + url='http://braawi.org/genbackupdata.html', + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Environment :: Console', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: GNU General Public License (GPL)', + 'Natural Language :: English', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Topic :: Software Development :: Testing', + 'Topic :: System :: Archiving :: Backup', + ], + license='GNU General Public License, version 2 or later', + py_modules=['genbackupdata'], + scripts=['genbackupdata'], + ) |