Debian Codegraph @

tests/probes/textfilecontent54/test_negative_instance.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 . $builddir/tests/test_common.sh
4
5 function test_negative_instance {
6
7 probecheck "textfilecontent54" || return 255
8
9 local ret_val=0;
10 local DF="${srcdir}/test_negative_instance.xml"
11 local RF="results.xml"
12
13 [ -f $RF ] && rm -f $RF
14
15 local FILE_A="/tmp/test_negative_instance.tmp_file"
16
17 touch "$FILE_A"
18
19 echo "valid_key = valid_value" > "$FILE_A"
20 echo "valid_key = valid_value" >> "$FILE_A"
21 echo "valid_key = valid_value" >> "$FILE_A"
22
23 $OSCAP oval eval --results $RF $DF
24
25 if [ -f $RF ]; then
26 verify_results "tst" $DF $RF 13 && verify_results "def" $DF $RF 1
27 ret_val=$?
28 else
29 ret_val=1
30 fi
31
32 rm -f $FILE_A $FILE_B $FILE_C
33
34 return $ret_val
35 }
36
37 test_negative_instance