Debian Codegraph @

tests/probes/textfilecontent54/test_negative_instance.sh

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash
2
3 . $builddir/tests/test_common.sh
4
5 function test_negative_instancescip-shell shell shell-project 0.0.0 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 [scip-shell system . . `[`. -f $RF ] && rmscip-shell system . . rm. -f $RF
14
15 local FILE_A="/tmp/test_negative_instance.tmp_filescip-shell filesystem . . `/tmp/test_negative_instance.tmp_file`."
16
17 touchscip-shell system . . touch. "$FILE_A"
18
19 echoscip-shell system . . echo. "valid_key = valid_value" > "$FILE_A"
20 echoscip-shell system . . echo. "valid_key = valid_value" >> "$FILE_A"
21 echoscip-shell system . . echo. "valid_key = valid_value" >> "$FILE_A"
22
23 $OSCAP oval eval --results $RF $DF
24
25 if [scip-shell system . . `[`. -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 rmscip-shell system . . rm. -f $FILE_A $FILE_B $FILE_C
33
34 return $ret_val
35 }
36
37 test_negative_instancescip-shell shell shell-project 0.0.0 test_negative_instance().