@@ -76,6 +76,7 @@ sds_add_multiple_twice(){
76
76
}
77
77
78
78
function test_eval {
79
+ probecheck " rpminfo" || return 255
79
80
local stderr=$( mktemp -t ${name} .out.XXXXXX)
80
81
$OSCAP xccdf eval " ${srcdir} /$1 " 2> $stderr
81
82
diff /dev/null $stderr ; rm $stderr
@@ -164,15 +165,6 @@ function test_eval_complex()
164
165
rm $arf
165
166
}
166
167
167
- function test_eval_depends {
168
- # only run test if dependency file exists
169
- if [ -f " $2 " ]; then
170
- return test_eval $1
171
- else
172
- return 255
173
- fi
174
- }
175
-
176
168
function test_oval_eval {
177
169
178
170
$OSCAP oval eval " ${srcdir} /$1 "
@@ -251,6 +243,7 @@ test_run "sds_external_xccdf" test_sds_external_xccdf sds_external_xccdf sds_ext
251
243
test_run " sds_tailoring" test_sds_tailoring sds_tailoring sds_tailoring/sds.ds.xml scap_com.example_datastream_with_tailoring xccdf_com.example_cref_tailoring_01 xccdf_com.example_profile_tailoring
252
244
253
245
test_run " eval_simple" test_eval eval_simple/sds.xml
246
+ test_run " cpe_in_ds" test_eval cpe_in_ds/sds.xml
254
247
test_run " eval_invalid" test_invalid_eval eval_invalid/sds.xml
255
248
test_run " eval_invalid_oval" test_invalid_oval_eval eval_invalid/sds-oval.xml
256
249
test_run " eval_xccdf_id1" test_eval_id eval_xccdf_id/sds.xml scap_org.open-scap_datastream_tst scap_org.open-scap_cref_first-xccdf.xml first
@@ -267,7 +260,6 @@ test_run "test_eval_complex" test_eval_complex
267
260
test_run " sds_add_multiple_oval_twice_in_row" sds_add_multiple_twice
268
261
test_run " test_ds_1_2_continue_without_remote_resources" test_ds_continue_without_remote_resources ds_continue_without_remote_resources/remote_content_1.2.ds.xml xccdf_com.example.www_profile_test_remote_res
269
262
test_run " test_ds_1_3_continue_without_remote_resources" test_ds_continue_without_remote_resources ds_continue_without_remote_resources/remote_content_1.3.ds.xml xccdf_com.example.www_profile_test_remote_res
270
- test_run " cpe_in_ds" test_eval_depends cpe_in_ds/sds.xml /etc/sysconfig/prelink
271
263
272
264
test_exit
273
265
0 commit comments