chiark / gitweb /
build system and licensing - subject to confirmation
authorIan Jackson <ian@anarres>
Fri, 20 Jan 2006 18:55:33 +0000 (18:55 +0000)
committerIan Jackson <ian@anarres>
Fri, 20 Jan 2006 18:55:33 +0000 (18:55 +0000)
12 files changed:
.bzrignore [new file with mode: 0644]
CREDITS [new file with mode: 0644]
Makefile [new file with mode: 0644]
debian/autodebtest.links [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright.suffix [new file with mode: 0644]
debian/rules [new file with mode: 0755]
runner/adt-run
virt-chroot/adt-virt-chroot
virt-chroot/test-input [deleted file]

diff --git a/.bzrignore b/.bzrignore
new file mode 100644 (file)
index 0000000..267b580
--- /dev/null
@@ -0,0 +1,3 @@
+debian/autodebtest
+debian/tmp
+debian/files
diff --git a/CREDITS b/CREDITS
new file mode 100644 (file)
index 0000000..c693bea
--- /dev/null
+++ b/CREDITS
@@ -0,0 +1,22 @@
+autodebtest, a tool for testing Debian binary packages
+
+autodebtest is Copyright (C) 2006 Canonical Ltd.
+autodebtest was written by Ian Jackson for Canonical.
+
+
+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.
+
+You can contact Canonical at XXX
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..b78a128
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,44 @@
+# This file is part of autodebtest
+# autodebtest is a tool for testing Debian binary packages
+#
+# autodebtest is Copyright (C) 2006 Canonical Ltd.
+#
+# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# See the file CREDITS for a full list of credits information (often
+# installed as /usr/share/doc/autodebtest/CREDITS).
+
+prefix =       /usr/local
+share =                $(prefix)/share
+bindir =       $(prefix)/bin
+mandir =       $(share)/man
+man1dir =      $(mandir)/man1
+docdir =       $(share)/doc/autodebtest
+
+INSTALL =              install
+INSTALL_DIRS =         $(INSTALL) -d
+INSTALL_PROGRAM =      $(INSTALL) -m 0755
+INSTALL_DOC =          $(INSTALL)
+
+programs =     virt-chroot/adt-virt-chroot \
+               runner/adt-run
+
+install:
+       $(INSTALL_DIRS) -d $(bindir) $(docdir)
+       set -e; for f in $(programs); do \
+               $(INSTALL_PROGRAM) $$f $(bindir); \
+               test ! -f $$f.1 || $(INSTALL_DOC) $$f.1 $(man1dir); \
+               done
+       $(INSTALL_DOC) CREDITS debian/changelog $(docdir)
diff --git a/debian/autodebtest.links b/debian/autodebtest.links
new file mode 100644 (file)
index 0000000..f16ed55
--- /dev/null
@@ -0,0 +1 @@
+usr/share/doc/autodebtest/copyright usr/share/doc/autodebtest/CREDITS
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..2d51147
--- /dev/null
@@ -0,0 +1,6 @@
+autodebtest (0.5.0) dapper unstable; urgency=low
+
+  * Initial release of (still largely proof-of-concept) automatic binary
+    package testing framework.
+
+ -- Ian Jackson <iwj@ubuntu.com>  Fri, 20 Jan 2006 17:56:55 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..ad47a49
--- /dev/null
@@ -0,0 +1,18 @@
+Source: autodebtest
+Maintainer: Ian Jackson <iwj@ubuntu.com>
+Section: devel
+Priority: optional
+Standards-Version: 3.6.2
+Build-Depends: debhelper (>= 4.0.2)
+
+Package: autodebtest
+Architecture: all
+Depends: python2.4
+Description: automatic as-installed testing for Debian packages
+ autodebtest runs tests on binary packages.  The tests are run on the
+ package as installed on a testbed system (which may be found via a
+ virtualisation or containment system).  The tests are expected to be
+ supplied in the corresponding Debian source package.  See adt-run(1)
+ and /usr/share/doc/autodebtest.
+ .
+ Status: this release is still pretty much a proof of concept.
diff --git a/debian/copyright.suffix b/debian/copyright.suffix
new file mode 100644 (file)
index 0000000..615e25d
--- /dev/null
@@ -0,0 +1,3 @@
+
+For a copy of the GNU General Public Licence, version 2,
+ see /usr/share/common-licenses/GPL.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..b81d752
--- /dev/null
@@ -0,0 +1,52 @@
+#!/usr/bin/make -f
+#
+# This file is part of autodebtest
+# autodebtest is a tool for testing Debian binary packages
+#
+# autodebtest is Copyright (C) 2006 Canonical Ltd.
+#
+# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# See the file CREDITS for a full list of credits information (often
+# installed as /usr/share/doc/autodebtest/CREDITS).
+
+p=autodebtest
+
+build build-arch build-indep:
+binary-arch:
+
+binary binary-indep: checkdir
+       dh_testroot
+       dh_clean
+       dh_installdirs usr
+
+       $(MAKE) install prefix=debian/$p/usr
+
+       cat CREDITS debian/copyright.suffix \
+               >debian/$p/usr/share/doc/$p/copyright
+       dh_compress
+       dh_link
+       dh_md5sums
+       dh_fixperms
+       dh_gencontrol
+       dh_builddeb
+
+clean: checkdir
+       dh_testroot
+       dh_clean
+
+checkdir:
+       dh_testdir runner/adt-run
+
index cb312c4b0c15ea51d01b8e994021e17eb2f66424..c8eed988d210e2ac51fa88294465dcb7128353a4 100755 (executable)
 # 16 testbed failure
 # 20 other unexpected failures including bad usage
 
+# adt-run is part of autodebtest
+# autodebtest is a tool for testing Debian binary packages
+#
+# autodebtest is Copyright (C) 2006 Canonical Ltd.
+#
+# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# See the file CREDITS for a full list of credits information (often
+# installed as /usr/share/doc/autodebtest/CREDITS).
+
 import signal
 import optparse
 import tempfile
index fc1718d22afe2b03d4d4d75f5d51c46fe9421f5a..d795de44fcc4ee842d7099cf84ce8b07d7caff0c 100755 (executable)
@@ -7,6 +7,28 @@
 #              uses GAINROOT chroot
 #              GAINROOT will be split up if it has spaces
 
+# adt-virt-chroot is part of autodebtest
+# autodebtest is a tool for testing Debian binary packages
+#
+# autodebtest is Copyright (C) 2006 Canonical Ltd.
+#
+# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+# See the file CREDITS for a full list of credits information (often
+# installed as /usr/share/doc/autodebtest/CREDITS).
+
 import sys
 import os
 import string
diff --git a/virt-chroot/test-input b/virt-chroot/test-input
deleted file mode 100644 (file)
index c7ee2e5..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-open
-copydown /u/ian/junk/d/pikdev-0.8.0/admin/ zork/
-copydown test-input zork/foo
-execute ls,-l,zork /dev/null out err
-copyup out /dev/tty
-copyup out outh
-copyup err errh
-copyup zork/ zork-up/
-quit