forked from os-autoinst/os-autoinst-distri-opensuse
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request os-autoinst#12964 from lilyeyes/security-fix
Add "crypto", "fail-safe" of "audit-test" to openQA
- Loading branch information
Showing
5 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright © 2021 SUSE LLC | ||
# | ||
# Copying and distribution of this file, with or without modification, | ||
# are permitted in any medium without royalty provided the copyright | ||
# notice and this notice are preserved. This file is offered as-is, | ||
# without any warranty. | ||
# | ||
# Summary: Run 'crypto' test case of 'audit-test' test suite | ||
# Maintainer: llzhao <llzhao@suse.com> | ||
# Tags: poo#95485 | ||
|
||
use base 'consoletest'; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
use utils; | ||
use audit_test qw(run_testcase compare_run_log); | ||
|
||
sub run { | ||
my ($self) = shift; | ||
|
||
select_console 'root-console'; | ||
|
||
# Install certification-sles-eal4: needed by test case `crypto` | ||
zypper_call('in certification-sles-eal4'); | ||
|
||
# Export MODE | ||
assert_script_run("export MODE=$audit_test::mode"); | ||
|
||
# Run test case | ||
run_testcase('crypto', make => 1, timeout => 900); | ||
|
||
# Compare current test results with baseline | ||
my $result = compare_run_log('crypto'); | ||
$self->result($result); | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright © 2021 SUSE LLC | ||
# | ||
# Copying and distribution of this file, with or without modification, | ||
# are permitted in any medium without royalty provided the copyright | ||
# notice and this notice are preserved. This file is offered as-is, | ||
# without any warranty. | ||
# | ||
# Summary: Run 'fail-safe' test case of 'audit-test' test suite | ||
# Maintainer: llzhao <llzhao@suse.com> | ||
# Tags: poo#95125 | ||
|
||
use base 'consoletest'; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
use utils; | ||
use audit_test qw(run_testcase compare_run_log); | ||
|
||
sub run { | ||
my ($self) = shift; | ||
|
||
select_console 'root-console'; | ||
|
||
# Run test case | ||
run_testcase('fail-safe', make => 1, timeout => 300); | ||
|
||
# Compare current test results with baseline | ||
my $result = compare_run_log('fail_safe'); | ||
$self->result($result); | ||
} | ||
|
||
1; |