~ubuntu-branches/ubuntu/quantal/keyutils/quantal

« back to all changes in this revision

Viewing changes to .pc/06-tests-directories.patch/tests/runtest.sh

  • Committer: Package Import Robot
  • Author(s): Daniel Baumann
  • Date: 2012-06-29 21:01:32 UTC
  • mfrom: (10.2.7 sid)
  • Revision ID: package-import@ubuntu.com-20120629210132-oe8nx39t2hkt7cdd
Tags: 1.5.5-3
* Switching to xz compression.
* Updating GPL boilerplate in copyright file.
* Adding patch to use change-directory instead of push- and pop-
  directory in tests to fix FTBFS with dash (Closes: #659297).
* Adding missing build-depends to lsb-release for testsuite.
* Adding patch to use keyctl from the current build rather the one
  from system in testsuite (Closes: #659299).
* Making test-suite failures not bailout for the moment as some tests
  do not work properly yet, but the test-suite should be run
  nevertheless.
* Using space rather than comma seperated files field in copyright
  file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
TESTS=$*
 
4
 
 
5
PARENTTEST=${TEST}
 
6
 
 
7
if [ `id -u` != 0 ]
 
8
then
 
9
    echo "#### Some tests require root privileges." >&2
 
10
    echo "#### It is recommended that this be run as root." >&2
 
11
fi
 
12
 
 
13
for i in ${TESTS}; do
 
14
        export TEST=$i
 
15
        pushd $i >/dev/null
 
16
        sh ./runtest.sh || exit 1
 
17
        popd >/dev/null
 
18
done
 
19
 
 
20
if [ `id -u` != 0 ]
 
21
then
 
22
    echo "#### Some tests required root privileges." >&2
 
23
    echo "#### They have been tested for the appropriate failure." >&2
 
24
    echo "#### It is recommended that this be run as root." >&2
 
25
fi