Changeset 29495 for other-projects/nightly-tasks/diffcol/trunk/diffcol
- Timestamp:
- 2014-11-28T21:01:27+13:00 (9 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
r29448 r29495 58 58 } 59 59 60 $gv_blnDebugging = 0; 60 61 $gv_blnErrorStop = "false"; 61 62 $gv_blnErrorShow = "false"; … … 334 335 { 335 336 #my $strGdbError = gdbdiff::test_gdb($strModelGdb, $strTestGdb); 336 $strGdbError = gdbdiff::test_gdb($strModelGdb, $strTestGdb, $strColName,$gv_test_os, $gv_model_os,$strTestCol,$strModelCol );337 $strGdbError = gdbdiff::test_gdb($strModelGdb, $strTestGdb, $strColName,$gv_test_os, $gv_model_os,$strTestCol,$strModelCol, $gv_blnDebugging); 337 338 if($strGdbError ne "") 338 339 { … … 435 436 print "<error>usage incorrect</error>\n"; 436 437 } else { 437 print STDERR "Usage: $strProgName test-col [more-col] [-verbosity d] [-mode modes] [-eshow] [-estop] \n";438 print STDERR "Usage: $strProgName test-col [more-col] [-verbosity d] [-mode modes] [-eshow] [-estop] [-debug]\n"; 438 439 } 439 440 Help("Error: used incorrect parameters"); … … 455 456 'type' => "flag", 456 457 'argu' => "NULL" , 457 'descrip' => "Set then system will stop once it meet an error"},458 'descrip' => "Set then system will stop once it meets an error"}, 458 459 { 'name' => "eshow", 459 460 'type' => "flag", 460 461 'argu' => "NULL" , 461 'descrip' => "Set then system will show the error summary"} 462 'descrip' => "Set then system will show the error summary"}, 463 { 'name' => "debug", 464 'type' => "flag", 465 'argu' => "NULL" , 466 'descrip' => "If set, stores intermediate diff files in toplevel diffcol folder"} 462 467 ]; 463 468 … … 749 754 } # finished special processing of doc.xml files 750 755 751 my $savepath = &getcwd."/../"; # TASK_HOME env var does not exist at this stage, but it's one level up from current directory 752 # &gdbdiff::print_string_to_file($model_contents, $savepath."model_docmets.xml"); 753 # &gdbdiff::print_string_to_file($test_contents, $savepath."test_docmets.xml"); 754 # if($strModel =~ m/(HASH0164.dir)/) { # list the HASH dirs for which you want the doc.xml file generated, to inspect specific doc.xml files 755 # &gdbdiff::print_string_to_file($model_contents, $savepath."$1_model_doc.xml"); 756 # &gdbdiff::print_string_to_file($test_contents, $savepath."$1_test_doc.xml"); 757 # } 758 756 757 if($gv_blnDebugging) {# && $gv_intVerbosity > 0) { 758 my $savepath = &getcwd."/../"; # TASK_HOME env var does not exist at this stage, but it's one level up from current directory 759 &gdbdiff::print_string_to_file($model_contents, $savepath."model_docmets.xml"); 760 &gdbdiff::print_string_to_file($test_contents, $savepath."test_docmets.xml"); 761 # if($strModel =~ m/(HASH0164.dir)/) { # list the HASH dirs for which you want the doc.xml file generated, to inspect specific doc.xml files 762 # &gdbdiff::print_string_to_file($model_contents, $savepath."$1_model_doc.xml"); 763 # &gdbdiff::print_string_to_file($test_contents, $savepath."$1_test_doc.xml"); 764 # } 765 } 759 766 760 767 … … 950 957 sub main 951 958 { 952 my ($intVerbosity,$strErrorStop,$strErrorShow,$strMode,$test_os,$model_os );959 my ($intVerbosity,$strErrorStop,$strErrorShow,$strMode,$test_os,$model_os,$debugging); 953 960 my $strProgName = $0; 954 961 my $intArgc = scalar(@ARGV); … … 958 965 'estop//off', \$strErrorStop, 959 966 'eshow//off', \$strErrorShow, 967 'debug', \$debugging, 960 968 'verbosity/\d+/1', \$intVerbosity, 961 969 'mode/[\w\-]+/all', \$strMode, … … 976 984 $gv_model_os = $model_os; # tends to be linux 977 985 986 $gv_blnDebugging = $debugging; 978 987 $gv_blnErrorStop = $strErrorStop; 979 988 $gv_blnErrorShow = $strErrorShow; -
other-projects/nightly-tasks/diffcol/trunk/diffcol/gdbdiff.pm
r28661 r29495 73 73 sub test_gdb 74 74 { 75 my ($full_modeldb, $full_testdb, $strColName, $test_os, $model_os, $strTestCol, $strModelCol ) = @_;75 my ($full_modeldb, $full_testdb, $strColName, $test_os, $model_os, $strTestCol, $strModelCol, $debugging) = @_; 76 76 77 77 # print "Now is testing database\n"; … … 81 81 my $test_text = read_db($full_testdb); 82 82 83 # my $savepath = &getcwd."/../"; # TASK_HOME env var does not exist at this stage, but it's one level up from current directory 84 # print_string_to_file($test_text, $savepath.$dbname."_test.out1"); 85 # print_string_to_file($model_text, $savepath.$dbname."_model.out1"); 83 my $savepath = &getcwd."/../"; # TASK_HOME env var does not exist at this stage, but it's one level up from current directory 84 if($debugging) { 85 print_string_to_file($test_text, $savepath.$dbname."_test.out1"); 86 print_string_to_file($model_text, $savepath.$dbname."_model.out1"); 87 } 86 88 87 89 # filter out the fields that can be ignored in the two database files … … 270 272 } 271 273 272 # now can go back to using $model_text and $test_text 273 # print_string_to_file($test_text, $savepath.$dbname."_test.out"); 274 # print_string_to_file($model_text, $savepath.$dbname."_model.out"); 274 # now can go back to using $model_text and $test_text 275 276 if($debugging) { 277 print_string_to_file($test_text, $savepath.$dbname."_test.out"); 278 print_string_to_file($model_text, $savepath.$dbname."_model.out"); 279 } 275 280 276 281 my $report_type = "OldStyle"; # Can not change this type.
Note:
See TracChangeset
for help on using the changeset viewer.