~ubuntu-branches/ubuntu/saucy/keyutils/saucy-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Luk Claes
  • Date: 2013-04-06 09:38:50 UTC
  • mfrom: (10.2.11 sid)
  • Revision ID: package-import@ubuntu.com-20130406093850-e6xnevgf3za1t4y3
Tags: 1.5.5-7
* Taking over with maintainer's consent.
* Adding watch 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