Debian Codegraph @

tests/probes/isainfo/test_probes_isainfo.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
17 # Test Cases.
18
19 function test_probes_isainfo {
20
21 probecheck "isainfo" || return 255
22
23 local ret_val=0;
24 local DF="test_probes_isainfo.xml"
25 local RF="results.xml"
26
27 [ -f $RF ] && rm -f $RF
28
29 $OSCAP oval eval --results $RF $DF
30
31 if [ -f $RF ]; then
32 verify_results "def" $DF $RF 1 && verify_results "tst" $DF $RF 2
33 ret_val=$?
34 else
35 ret_val=1
36 fi
37
38 return $ret_val
39 }
40
41 # Testing.
42
43 test_init
44
45 test_run "test_probes_isainfo" test_probes_isainfo
46
47 test_exit