From: Ian Jackson Date: Fri, 20 Jan 2006 18:55:33 +0000 (+0000) Subject: build system and licensing - subject to confirmation X-Git-Tag: converted-from-bzr~84 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=73e997541f0295ae098403fdc1001260539599db;p=autopkgtest.git build system and licensing - subject to confirmation --- diff --git a/.bzrignore b/.bzrignore new file mode 100644 index 0000000..267b580 --- /dev/null +++ b/.bzrignore @@ -0,0 +1,3 @@ +debian/autodebtest +debian/tmp +debian/files diff --git a/CREDITS b/CREDITS new file mode 100644 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 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 index 0000000..f16ed55 --- /dev/null +++ b/debian/autodebtest.links @@ -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 index 0000000..2d51147 --- /dev/null +++ b/debian/changelog @@ -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 Fri, 20 Jan 2006 17:56:55 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..ad47a49 --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: autodebtest +Maintainer: Ian Jackson +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 index 0000000..615e25d --- /dev/null +++ b/debian/copyright.suffix @@ -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 index 0000000..b81d752 --- /dev/null +++ b/debian/rules @@ -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 + diff --git a/runner/adt-run b/runner/adt-run index cb312c4..c8eed98 100755 --- a/runner/adt-run +++ b/runner/adt-run @@ -13,6 +13,28 @@ # 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 diff --git a/virt-chroot/adt-virt-chroot b/virt-chroot/adt-virt-chroot index fc1718d..d795de4 100755 --- a/virt-chroot/adt-virt-chroot +++ b/virt-chroot/adt-virt-chroot @@ -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 index c7ee2e5..0000000 --- a/virt-chroot/test-input +++ /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