- Timestamp:
- 2022-10-16T18:51:49+13:00 (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nightly-tasks/diffcol/trunk/diffcol/diffcol.pl
r36655 r36807 196 196 ## where the model-col needs to be built & committed from a Win machine), 197 197 ## need to comment out the following 3 newly added lines and fix any remaining issues 198 if($ENV{'GSVERSION'} eq "3") {199 return @Errors;200 }201 198 # if($ENV{'GSVERSION'} eq "3") { 199 # return @Errors; 200 # } 201 if($ENV{'GSVERSION'} eq "3") { 202 202 # Testing the build.cfg 203 203 my $strModelBcfg = &FileUtils::filenameConcatenate($strModelCol,"index","build.cfg"); … … 310 310 311 311 VobPrint ("\n",$intLevel); 312 312 } 313 313 # Testing databases 314 314 315 315 # index 316 my $strModelGdb = &FileUtils::filenameConcatenate($strModelCol,"index","text","$strColName.gdb"); 317 my $strTestGdb = &FileUtils::filenameConcatenate($strTestCol,"index","text","$strColName.gdb"); 316 my $flat_db_ext = ".gdb"; 317 318 my $strModelGdb = &FileUtils::filenameConcatenate($strModelCol,"index","text","$strColName$flat_db_ext"); 319 if(!(-e $strModelGdb)){ # try jdb 320 $flat_db_ext = ".jdb"; 321 $strModelGdb = &FileUtils::filenameConcatenate($strModelCol,"index","text","$strColName$flat_db_ext"); 322 } 323 324 #print STDERR "*********** USING DB EXTENSION: $flat_db_ext\n"; 325 #print STDERR "@@@ PERL_PERTURB_KEYS: ".$ENV{'PERL_PERTURB_KEYS'}."\n"; 326 327 my $strTestGdb = &FileUtils::filenameConcatenate($strTestCol,"index","text","$strColName$flat_db_ext"); 318 328 my $strGdbError = &GdbDiff($strModelGdb,$strTestGdb,$strOutputFormat,$intLevel,$strColName,$strTestCol,$strModelCol); # returns 0 if no error 319 329 if($strGdbError) { … … 322 332 323 333 # archives 324 $strModelGdb = &FileUtils::filenameConcatenate($strModelCol,"archives","archiveinf-doc .gdb");325 $strTestGdb = &FileUtils::filenameConcatenate($strTestCol,"archives","archiveinf-doc .gdb");334 $strModelGdb = &FileUtils::filenameConcatenate($strModelCol,"archives","archiveinf-doc$flat_db_ext"); 335 $strTestGdb = &FileUtils::filenameConcatenate($strTestCol,"archives","archiveinf-doc$flat_db_ext"); 326 336 $strGdbError = &GdbDiff($strModelGdb,$strTestGdb,$strOutputFormat,$intLevel,$strColName,$strTestCol,$strModelCol); 327 337 if($strGdbError) { … … 329 339 } 330 340 331 $strModelGdb = &FileUtils::filenameConcatenate($strModelCol,"archives","archiveinf-src .gdb");332 $strTestGdb = &FileUtils::filenameConcatenate($strTestCol,"archives","archiveinf-src .gdb");341 $strModelGdb = &FileUtils::filenameConcatenate($strModelCol,"archives","archiveinf-src$flat_db_ext"); 342 $strTestGdb = &FileUtils::filenameConcatenate($strTestCol,"archives","archiveinf-src$flat_db_ext"); 333 343 $strGdbError = &GdbDiff($strModelGdb,$strTestGdb,$strOutputFormat,$intLevel,$strColName,$strTestCol,$strModelCol); 334 344 if($strGdbError) { … … 352 362 { 353 363 #my $strGdbError = gdbdiff::test_gdb($strModelGdb, $strTestGdb); 364 365 # $gv_blnDebugging = 1; 366 354 367 $strGdbError = gdbdiff::test_gdb($strModelGdb, $strTestGdb, $strColName,$gv_test_os, $gv_model_os,$strTestCol,$strModelCol, $gv_blnDebugging); 368 # $gv_blnDebugging = 0; 369 355 370 if($strGdbError ne "") 356 371 { … … 607 622 # Files to be skipped because they get generated on one OS but not the other 608 623 # On windows, files of the form col.invf.state.\d\d\d\d get generated (e.g. Small-HTML.invf.state.1228) that aren't there on linux 609 my $skipfiles_re = qr/(\.invf\.state\.\d+$)|~$|earliestDatestamp|fail\.log| -inf-tmp\.(gdb|jdb|lg)$/; # Create a regex of all files to be skipped, see http://perldoc.perl.org/perlop.html624 my $skipfiles_re = qr/(\.invf\.state\.\d+$)|~$|earliestDatestamp|fail\.log|oai-inf-tmp\.(gdb|jdb|lg)$/; # Create a regex of all files to be skipped, see http://perldoc.perl.org/perlop.html 610 625 @aryInModel = grep { $_ !~ m/$skipfiles_re/ } @aryInModel; # http://stackoverflow.com/questions/174292/what-is-the-best-way-to-delete-a-value-from-an-array-in-perl 611 626 @aryInTest = grep { $_ !~ m/$skipfiles_re/ } @aryInTest; … … 1006 1021 $gv_test_os = $test_os; # if not specified, defaults to "compute" 1007 1022 $gv_model_os = $model_os; # tends to be linux 1023 1024 #print STDERR "@@@@@ test_os: $test_os\n"; 1025 #print STDERR "@@@@@ model_os: $model_os\n"; 1008 1026 1009 1027 $gv_blnDebugging = $debugging;
Note:
See TracChangeset
for help on using the changeset viewer.