mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-13 23:10:26 -08:00
Add linux platform detection
Copied from Perforce Change: 19646 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
9fb4b4f014
commit
1a4e29803e
1 changed files with 7 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/local/perl
|
||||
# $HopeName$
|
||||
# $HopeName: MMQA_harness!script:options(trunk.11) $
|
||||
#
|
||||
|
||||
# global options for qa commands
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
# first to see where we are:
|
||||
|
||||
if ($ENV{"OS"} eq "Windows_NT") {
|
||||
if (($ENV{"OS"} || "") eq "Windows_NT") {
|
||||
# it's NT, so find out what the processor is
|
||||
# from a system variable
|
||||
$platform_class = "nt_".$ENV{"PROCESSOR_ARCHITECTURE"};
|
||||
|
|
@ -18,6 +18,10 @@ if ($ENV{"OS"} eq "Windows_NT") {
|
|||
$platform_class = "nt_dunno";
|
||||
}
|
||||
$platform_phylum = "pc";
|
||||
} elsif (($ENV{"OSTYPE"} || "") eq "Linux") {
|
||||
# it's Linux. We'll assume they're all the same!
|
||||
$platform_class = "linux";
|
||||
$platform_phylum = "unix";
|
||||
} else {
|
||||
# it's unix by default
|
||||
$platform_class = `class`;
|
||||
|
|
@ -38,7 +42,7 @@ if ($ENV{"OS"} eq "Windows_NT") {
|
|||
);
|
||||
|
||||
%qa_defaults = (
|
||||
"PLATFORM", $platform_class,
|
||||
"PLATFORM", $platform_class."::".$platform_phylum,
|
||||
"DEBUG_INFO", "off",
|
||||
"LOG_DIR", "$test_dir/log",
|
||||
"INTERFACE_VERSION", "BQ"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue