Changeset 28172 for other-projects/nightly-tasks/diffcol/trunk/diffcol
- Timestamp:
- 2013-08-27T21:03:55+12:00 (11 years ago)
- Location:
- other-projects/nightly-tasks/diffcol/trunk/diffcol
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nightly-tasks/diffcol/trunk/diffcol/diffcol.pl
r28107 r28172 48 48 49 49 #--Global Variables Declaration----------- 50 my ($gv_test_os, $gv_model_os); # still just file globals 51 50 52 $gv_strModelColRoot = &FileUtils::filenameConcatenate($ENV{'GSDLHOME'},"/model-collect"); 51 53 $gv_strTestColRoot = &FileUtils::filenameConcatenate($ENV{'GSDLHOME'},"/collect"); … … 327 329 { 328 330 #my $strGdbError = gdbdiff::test_gdb($strModelGdb, $strTestGdb); 329 $strGdbError = gdbdiff::test_gdb($strModelGdb, $strTestGdb, $strColName);331 $strGdbError = gdbdiff::test_gdb($strModelGdb, $strTestGdb, $strColName,$gv_test_os, $gv_model_os); 330 332 if($strGdbError ne "") 331 333 { … … 656 658 # equalise/normalise the two doc.xml/docmets.xml files for OS differences, if there are any 657 659 # before comparing a windows test with a linux model or vice-versa 658 my $testIsWin = &isDocOrMETSXMLFileWindows($test_contents);659 my $modelIsWin = &isDocOrMETSXMLFileWindows($model_contents);660 my $testIsWin = ($gv_test_os ne "compute") ? ($gv_test_os eq "windows") : &isDocOrMETSXMLFileWindows($test_contents); 661 my $modelIsWin = ($gv_model_os ne "compute") ? ($gv_model_os eq "windows") : &isDocOrMETSXMLFileWindows($model_contents); 660 662 661 663 if($testIsWin != $modelIsWin) { # one of the 2 collections is built on windows, the other on linux, so need to make newlines constant … … 943 945 sub main 944 946 { 945 my ($intVerbosity,$strErrorStop,$strErrorShow,$strMode );947 my ($intVerbosity,$strErrorStop,$strErrorShow,$strMode,$test_os,$model_os); 946 948 my $strProgName = $0; 947 949 my $intArgc = scalar(@ARGV); … … 953 955 'verbosity/\d+/1', \$intVerbosity, 954 956 'mode/[\w\-]+/all', \$strMode, 955 'output/[\w\-]+/text', \$strOutputFormat 957 'output/[\w\-]+/text', \$strOutputFormat, 958 'testos/(windows|linux|darwin|compute)/compute', \$test_os, # param-name,regex,default 959 'modelos/(windows|linux|darwin|compute)/compute', \$model_os # actually defaults to linux in task.pl 956 960 )) { 957 961 PrintUsage($strProgName); … … 963 967 die "\n"; 964 968 } 969 970 $gv_test_os = $test_os; # if not specified, defaults to "compute" 971 $gv_model_os = $model_os; # tends to be linux 965 972 966 973 $gv_blnErrorStop = $strErrorStop; -
other-projects/nightly-tasks/diffcol/trunk/diffcol/gdbdiff.pm
r28086 r28172 46 46 sub test_gdb 47 47 { 48 my ($full_modeldb, $full_testdb, $strColName) = @_;48 my ($full_modeldb, $full_testdb, $strColName, $test_os, $model_os) = @_; 49 49 50 50 # print "Now is testing database\n"; … … 78 78 # in test and model collection to an even base for comparison 79 79 80 my $testIsWin = &isDBWindowsSensitive($dbname, $test_text);81 my $modelIsWin = &isDBWindowsSensitive($dbname, $model_text);80 my $testIsWin = ($test_os ne "compute") ? ($test_os eq "windows") : &isDBWindowsSensitive($dbname, $test_text); 81 my $modelIsWin = ($model_os ne "compute") ? ($model_os eq "windows") : &isDBWindowsSensitive($dbname, $model_text); 82 82 83 83 if($testIsWin == $modelIsWin) {
Note:
See TracChangeset
for help on using the changeset viewer.