diff --git a/runSuite.pl b/runSuite.pl index 75a1bfb7..1068239f 100755 --- a/runSuite.pl +++ b/runSuite.pl @@ -12,8 +12,9 @@ my $SCRIPT_PATH = dirname( __FILE__ ); # MAIN -dieWithUsage("one or more parameters not defined") unless @ARGV == 1; +dieWithUsage("one or more parameters not defined") unless @ARGV >= 1; my $suite = shift; +my $scale = shift || 2; dieWithUsage("suite name required") unless $suite eq "tpcds" or $suite eq "tpch"; chdir $SCRIPT_PATH; @@ -25,8 +26,8 @@ my @queries = glob '*.sql'; my $db = { - 'tpcds' => 'tpcds_bin_partitioned_orc_2', - 'tpch' => 'tpch_flat_orc_2' + 'tpcds' => "tpcds_bin_partitioned_orc_$scale", + 'tpch' => "tpch_flat_orc_$scale" }; print "filename,status,time,rows\n"; @@ -65,10 +66,10 @@ (;$) print STDERR <