~ubuntu-branches/ubuntu/wily/keyutils/wily

« back to all changes in this revision

Viewing changes to .pc/0007-tests-keyctl.patch/tests/prepare.inc.sh

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-10-16 11:45:19 UTC
  • mfrom: (1.1.7) (10.2.16 sid)
  • Revision ID: package-import@ubuntu.com-20141016114519-cqt8zwrg92c31m31
Tags: 1.5.9-5ubuntu1
Disable the tests, hanging on the distro buildd kernels (12.04 LTS).
Verified that the tests succeed with the 14.04 LTS kernels.
Addresses: LP: #1381973.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# preparation script for running keyring tests
2
 
 
3
 
# --- need to run in own session keyring
4
 
if [ "x`keyctl rdescribe @s | sed 's/.*;//'`" != "xRHTS/keyctl/$$" ]
5
 
then
6
 
    echo "Running with session keyring RHTS/keyctl/$$"
7
 
    exec keyctl session "RHTS/keyctl/$$" sh $0 $@ || exit 8
8
 
fi
9
 
 
10
 
# Set up for the Red Hat Test System
11
 
RUNNING_UNDER_RHTS=0
12
 
if [ -x /usr/bin/rhts_environment.sh ]
13
 
then
14
 
    PACKAGE=$(rpm -q --qf "%{name}" --whatprovides /bin/keyctl)
15
 
    . /usr/bin/rhts_environment.sh
16
 
    RUNNING_UNDER_RHTS=1
17
 
elif [ -z "$OUTPUTFILE" ]
18
 
then
19
 
    OUTPUTFILE=$PWD/test.out
20
 
    echo -n >$OUTPUTFILE
21
 
fi
22
 
 
23
 
case `lsb_release -i | awk '{ print $3}'` in
24
 
    Fedora*)            OSDIST=Fedora;;
25
 
    RedHatEnterprise*)  OSDIST=RHEL;;
26
 
    *)                  OSDIST=Unknown;;
27
 
esac
28
 
 
29
 
OSRELEASE=`lsb_release -r | awk '{ print $2}'`
30
 
 
31
 
KEYUTILSVER=`keyctl --version 2>/dev/null`
32
 
if [ -n "$KEYUTILSVER" ]
33
 
then
34
 
    :
35
 
elif [ -x /bin/rpm ]
36
 
then
37
 
    KEYUTILSVER=`rpm -q keyutils`
38
 
else
39
 
    echo "Can't determine keyutils version" >&2
40
 
    exit 9
41
 
fi
42
 
 
43
 
KEYUTILSVER=`expr "$KEYUTILSVER" : '.*keyutils-\([0-9.]*\).*'`