regression: only test 1/1, 1/3, 3/1, 3/3 pages/copies

instead of the while [1..3][1..3] matrix.

Should save a lot of test time.
This commit is contained in:
Solomon Peachy 2019-05-23 08:37:36 -04:00
parent 741266c3c3
commit 91fbb909ae
3 changed files with 10 additions and 6 deletions

View File

@ -126,6 +126,8 @@ shinko-chcs6145,0x10ce,0x0019,3,PageSize=w360h504
shinko-chcs6145,0x10ce,0x0019,3,PageSize=w360h504;StpLamination=None
shinko-chcs6145,0x10ce,0x0019,3,PageSize=w360h504;StpLamination=Glossy
shinko-chcs6145,0x10ce,0x0019,3,PageSize=w360h504;StpLamination=Matte
ciaat-brava-21,0x10ce,0x001e,4,PageSize=w288h432
#
shinko-chcs6245,0x10ce,0x001d,0x11,PageSize=w288h576
shinko-chcs6245,0x10ce,0x001d,0x11,PageSize=w360h576

1 #gp_printername,vid,pid,type,gp_options
126 shinko-chcs6145,0x10ce,0x0019,3,PageSize=w360h504;StpLamination=None
127 shinko-chcs6145,0x10ce,0x0019,3,PageSize=w360h504;StpLamination=Glossy
128 shinko-chcs6145,0x10ce,0x0019,3,PageSize=w360h504;StpLamination=Matte
129 ciaat-brava-21,0x10ce,0x001e,4,PageSize=w288h432
130 #
131 # shinko-chcs6245,0x10ce,0x001d,0x11,PageSize=w288h576
132 shinko-chcs6245,0x10ce,0x001d,0x11,PageSize=w288h576 shinko-chcs6245,0x10ce,0x001d,0x11,PageSize=w360h576
133 shinko-chcs6245,0x10ce,0x001d,0x11,PageSize=w360h576 shinko-chcs6245,0x10ce,0x001d,0x11,PageSize=w432h576

View File

@ -36,9 +36,11 @@ my $retval = 0;
my $id = 123;
my $user = "tester";
my $title = "image_test";
my $max_copies = 3;
my $input_image = "testjobs/s3s-59.png";
my $max_pages = 3;
my @pages_set = (1, 3);
my @copies_set = (1, 3);
my $valgrind = 0;
my $work_dir_base = "/tmp/";
@ -176,7 +178,7 @@ if ($proc_count > 1 && $kid > 0) {
next;
}
for (my $pages = 1 ; $pages <= $max_pages ; $pages++) {
foreach my $pages (@pages_set) {
# generate PDF.
@args = ($convert_exec);
for (my $i = 0 ; $i < $pages ; $i++) {
@ -211,7 +213,7 @@ if ($proc_count > 1 && $kid > 0) {
next;
}
for (my $copies = 1 ; $copies <= $max_copies ; $copies++) {
foreach my $copies (@copies_set) {
# Call raster2gutenprint
@args = ($rastertogutenprint_exec, $id, $user, $title, $copies, $options);
if ($valgrind) {

View File

@ -31,7 +31,7 @@
use strict;
use IPC::Run qw( run );
my $copies = 3;
my @copies_set = (1, 3);
my $retval = 0;
my $valgrind = 1;
@ -114,7 +114,7 @@ if ($proc_count > 1 && $kid > 0) {
undef($ENV{"MEDIA_CODE"});
}
foreach (my $i = 1; $i <= $copies ; $i++) {
foreach my $i (@copies_set) {
my @args = ($backend_exec, "-d", $i, "testjobs/${row[3]}");
if ($valgrind) {
if ($quiet) {