Debian Codegraph @

tests/probes/rpm/rpminfo/test_probes_rpminfo.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 # Copyright 2009 Red Hat Inc., Durham, North Carolina.
4 # All Rights Reserved.
5 #
6 # OpenScap Probes Test Suite.
7 #
8 # Created on: Nov 30, 2009
9 #
10 # Authors:
11 # Peter Vrabec, <[email protected]>
12 # David Niemoller
13 # Ondrej Moris, <[email protected]>
14
15 . $builddir/tests/test_common.sh
16 . $srcdir/rpminfo_common.sh
17
18 set -e -o pipefail
19
20 require rpm || exit 255
21 A_NAME=`rpm --qf "%{NAME}\n" -qa | sort | uniq -u | sed -n '1p'`
22 B_NAME=`rpm --qf "%{NAME}\n" -qa | sort | uniq -u | sed -n '2p'`
23
24 [ -n "$A_NAME" ] || exit 255
25
26 test_init
27
28 test_run "rpminfo probe test" test_probes_rpminfo $A_NAME $B_NAME
29
30 test_exit