d680d69b44
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@34 a809a056-fc17-0410-9590-b4f493f8b08e
32 lines
1 KiB
Perl
Executable file
32 lines
1 KiB
Perl
Executable file
#! /usr/bin/perl
|
|
|
|
$report_name = './report.txt';
|
|
|
|
# Create the report file
|
|
die if !open(REPORT, ">$report_name");
|
|
|
|
# First, build everything
|
|
print REPORT "==================Make output==================\n";
|
|
close($report_name);
|
|
|
|
`make >> $report_name`;
|
|
die if !open(REPORT, ">>$report_name");
|
|
print REPORT "==================End of Make output==================\n";
|
|
print REPORT "\n";
|
|
# Now, run individual tests and create the report
|
|
print REPORT "==================Smoke Test ==================\n";
|
|
close($report_name);
|
|
chdir 'smoke_test';
|
|
`./smoketest >> ../$report_name`;
|
|
chdir '..';
|
|
die if !open(REPORT, ">>$report_name");
|
|
print REPORT "==================End of smoke test==================\n";
|
|
print REPORT "\n";
|
|
print REPORT "==================Regression Test ==================\n";
|
|
close($report_name);
|
|
chdir 'regression_tests';
|
|
`./regressiontest >> ../$report_name`;
|
|
chdir '..';
|
|
die if !open(REPORT, ">>$report_name");
|
|
print REPORT "==================End of regression test==================\n";
|
|
print REPORT "\n";
|