Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.5 KiB

  1. if ((@ARGV[0]=~/\?/) || (@ARGV[0] eq ""))
  2. {
  3. &helpit;
  4. exit 1;
  5. }
  6. $_=@ARGV[0];
  7. s/-l://;
  8. $lang=$_;
  9. $platform=$ENV{ "_BuildArch" };
  10. $bldbranch=$ENV{ "_BuildBranch" };
  11. # If Ireland language, update Build.NET
  12. if ($ENV{lang} =~ /fr|es|it|nl|sv|br|da|fi|no|pt|cs|el|hu|pl|ru|sl|sk|tr/)
  13. { system "start /min perl \\dubtools\\bstatus\\dubstatus.pl A"; }
  14. $_="archfre";
  15. s/arch/$platform/;
  16. $bldtype=$_;
  17. open (BLDNO, "D:\\binaries.$bldtype\\congeal_scripts\\__bldnum__") or die "Cannot open D:\\binaries.$bldtype\\congeal_scripts\\__bldnum__ for read :$!";
  18. while(<BLDNO>)
  19. {
  20. chomp $_;
  21. s/BUILDNUMBER=//;
  22. $buildnum=$_;
  23. }
  24. close BLDNO;
  25. $buildpath=`\@dir \/b d:\\Release\\$lang\\$buildnum.$bldtype.$bldbranch.??????-????` or die "\nCannot Autoboot $lang $buildnum !\nNo such $bldtype.$bldbranch build under d:\\release";
  26. chomp $buildpath;
  27. $machname=`\@echo %computername%`;
  28. chomp $machname;
  29. print "\nRunning Autoboot(IRL) for $lang $buildnum $bldtype from $machname ...\n";
  30. system("start \\\\irlautoboot1\\bvt_irl\\iautobvt.cmd $lang $buildnum -b:$machname -p:$platform");
  31. # print "\nMake sure the build passed BVT...\nPressing Enter will exit autoboottest.pl\n";
  32. # <STDIN>;
  33. sub helpit {
  34. print "\nPerforms AutoBoot and AutoChecks on the build from d:\\release\\<lang>\n\n";
  35. print "Note: This is Ireland only autoboot process, interacting with buildnet\n";
  36. print " Results are logged into http:\/\/buildnet -> \'AutoBootTest and BVT\' link\n\n";
  37. print "Syntax:\tperl autoboottest.pl -l:<lang>\n\n";
  38. }