test_api_oval.sh | test_api_oval.sh | |||
---|---|---|---|---|
skipping to change at line 12 | skipping to change at line 12 | |||
# Copyright 2009 Red Hat Inc., Durham, North Carolina. | # Copyright 2009 Red Hat Inc., Durham, North Carolina. | |||
# All Rights Reserved. | # All Rights Reserved. | |||
# | # | |||
# OpenScap OVAL Module Test Suite. | # OpenScap OVAL Module Test Suite. | |||
# | # | |||
# Created on: Nov 30, 2009 | # Created on: Nov 30, 2009 | |||
# | # | |||
# Authors: | # Authors: | |||
# Peter Vrabec, <pvrabec@redhat.com> | # Peter Vrabec, <pvrabec@redhat.com> | |||
# David Niemoller | ||||
# Ondrej Moris, <omoris@redhat.com> | # Ondrej Moris, <omoris@redhat.com> | |||
. ${srcdir}/../../test_common.sh | . ${srcdir}/../../test_common.sh | |||
# Test Cases. | # Test Cases. | |||
function test_api_oval_definition { | function test_api_oval_definition { | |||
./test_api_oval ${srcdir}/scap-rhel5-oval.xml | ./test_api_oval ${srcdir}/scap-rhel5-oval.xml | |||
return $? | return $? | |||
} | } | |||
function test_api_oval_syschar { | function test_api_oval_syschar { | |||
./test_api_syschar $srcdir/composed-oval.xml \ | ./test_api_syschar $srcdir/composed-oval.xml \ | |||
$srcdir/system-characteristics.xml | $srcdir/system-characteristics.xml | |||
return $? | return $? | |||
} | } | |||
function test_api_oval_results { | function test_api_oval_results { | |||
./test_api_results $srcdir/results.xml $srcdir/exported-results.xml | ./test_api_results $srcdir/results.xml exported-results.xml | |||
cmp $srcdir/results-good.xml exported-results.xml | ||||
return $? | ||||
} | ||||
function test_api_oval_directives { | ||||
./test_api_directives $srcdir/directives.xml exported-directives.xml | ||||
cmp $srcdir/directives.xml exported-directives.xml | ||||
return $? | return $? | |||
} | } | |||
# Testing. | # Testing. | |||
test_init "test_api_oval.log" | test_init "test_api_oval.log" | |||
test_run "test_api_oval_definition" test_api_oval_definition | test_run "test_api_oval_definition" test_api_oval_definition | |||
test_run "test_api_oval_syschar" test_api_oval_syschar | test_run "test_api_oval_syschar" test_api_oval_syschar | |||
test_run "test_api_oval_results" test_api_oval_results | test_run "test_api_oval_results" test_api_oval_results | |||
test_run "test_api_oval_directives" test_api_oval_directives | ||||
test_exit | test_exit | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 9 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |