[Pkg-loop-aes-commits] r1305 - in /trunk/loop-aes/debian: changelog loop-aes-runtests loop-aes-runtests.8 testsuite

xam at users.alioth.debian.org xam at users.alioth.debian.org
Sun Oct 22 13:27:02 UTC 2006


Author: xam
Date: Sun Oct 22 13:27:00 2006
New Revision: 1305

URL: http://svn.debian.org/wsvn/pkg-loop-aes/?sc=1&rev=1305
Log:
* Add manpage for loop-aes-runtests
* Make loop-aes-runtest quiet by default, add -v

Added:
    trunk/loop-aes/debian/loop-aes-runtests
      - copied, changed from r1299, trunk/loop-aes/debian/testsuite
    trunk/loop-aes/debian/loop-aes-runtests.8
Removed:
    trunk/loop-aes/debian/testsuite
Modified:
    trunk/loop-aes/debian/changelog

Modified: trunk/loop-aes/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-loop-aes/trunk/loop-aes/debian/changelog?rev=1305&op=diff
==============================================================================
--- trunk/loop-aes/debian/changelog (original)
+++ trunk/loop-aes/debian/changelog Sun Oct 22 13:27:00 2006
@@ -1,3 +1,10 @@
+loop-aes (3.1d-11) UNRELEASED; urgency=low
+
+  * Add manpage for loop-aes-runtests
+  * Make loop-aes-runtest quiet by default, add -v
+
+ -- Max Vozeler <xam at debian.org>  Sun, 22 Oct 2006 15:23:56 +0200
+
 loop-aes (3.1d-10) unstable; urgency=low
 
   * Update the package name for dpkg-divert. (Closes: #392841)

Copied: trunk/loop-aes/debian/loop-aes-runtests (from r1299, trunk/loop-aes/debian/testsuite)
URL: http://svn.debian.org/wsvn/pkg-loop-aes/trunk/loop-aes/debian/loop-aes-runtests?rev=1305&op=diff
==============================================================================
--- trunk/loop-aes/debian/testsuite (original)
+++ trunk/loop-aes/debian/loop-aes-runtests Sun Oct 22 13:27:00 2006
@@ -8,19 +8,42 @@
     exit 1
 fi
 
+verbose=no
+while getopts v opt; do
+	case $opt in
+	v)
+		verbose=yes
+		;;
+	esac
+done
+
 modprobe loop
 
-tmpdir=$(mktemp -d)
-cd $tmpdir
-cp /usr/share/loop-aes-testsuite/*.asc .
-cp /usr/share/loop-aes-testsuite/loop-AES.mk Makefile
-make tests
-rm -rf $tmpdir
+runtests ()
+{
+	tmpdir=$(mktemp -d)
+	cd $tmpdir
 
-tmpdir=$(mktemp -d)
-cd $tmpdir
-cp /usr/share/loop-aes-testsuite/*.asc .
-cp /usr/share/loop-aes-testsuite/ciphers.mk Makefile
-make tests
-rm -rf $tmpdir
+	cp /usr/share/loop-aes-testsuite/*.asc .
+	cp /usr/share/loop-aes-testsuite/loop-AES.mk Makefile
+	make tests
 
+	cp /usr/share/loop-aes-testsuite/ciphers.mk Makefile
+	make tests
+
+	rm -rf $tmpdir
+}
+
+if [ "$verbose" = yes ]; then
+	runtests
+else
+	log=$(mktemp -t looptest.XXXXXXXXXX)
+	trap "echo test suite failed: see $log" EXIT
+
+	runtests >$log 2>&1
+
+	trap - EXIT
+	rm $log
+fi
+
+exit 0

Added: trunk/loop-aes/debian/loop-aes-runtests.8
URL: http://svn.debian.org/wsvn/pkg-loop-aes/trunk/loop-aes/debian/loop-aes-runtests.8?rev=1305&op=file
==============================================================================
--- trunk/loop-aes/debian/loop-aes-runtests.8 (added)
+++ trunk/loop-aes/debian/loop-aes-runtests.8 Sun Oct 22 13:27:00 2006
@@ -1,0 +1,42 @@
+.\" $Id$
+.TH loop-aes-runtests 8 2006-10-22 ""
+.SH NAME
+loop\-aes\-runtests \- Testsuite for loop-AES kernel modules and userspace tools
+.
+.SH SYNOPSIS
+.B loop\-aes\-runtests
+[
+.I options
+]
+.
+.SH DESCRIPTION
+The
+.BR loop\-aes\-runtests
+command checks whether loop-AES encryption kernel modules and
+userspace tools work correctly, i.e. whether they produce the
+expected output for all supported encryption modes and ciphers.
+.PP
+If this testsuite fails, it may indicate a risk of data corruption
+and you should not use the modules and tools. We kindly ask you to
+file a bug report in this case and include the output of this
+command.
+.PP
+Internally this command calls the 
+.BR tests
+target of the Makefile which comes with the loop\-AES distribution.
+.PP
+This command exits with 0 if the tests completed successfully and
+displays "*** Test results ok ***" when running in verbose mode. A
+non-zero exit code indicates a problem running one or more tests.  
+.
+.SH OPTIONS
+.TP
+.BI \-v
+Show detailed output.
+.
+.SH AUTHOR
+This manual page was written by Max Vozeler <xam at debian.org> for the
+Debian project and is dedicated to the public domain.
+.PP
+The loop\-AES testsuite was written by Jari Ruusu
+<jariruusu at users.sourceforge.net>.




More information about the Pkg-loop-aes-commits mailing list