diff --git a/t/apps/esx.t b/t/apps/esx.t index 7188d2b32..5db42bf79 100755 --- a/t/apps/esx.t +++ b/t/apps/esx.t @@ -38,20 +38,25 @@ like( '--version stdout' ); -($out, $err, $rc) = run_executable('glpi-esx', '--dumpfile resources/esx/esx-4.1.0-1-hostfullinfo.dump.gz'); -ok($rc == 0, '--dumpfile exit status'); -is($err, '', '--dumpfile stderr'); -like( - $out, - qr{esx-test\.teclib\.local-\d+-\d+-\d+-\d+-\d+-\d+}, - '--dumpfile stdout' -); - -($out, $err, $rc) = run_executable('glpi-esx', '--json --dumpfile resources/esx/esx-4.1.0-1-hostfullinfo.dump.gz'); -ok($rc == 0, '--json --dumpfile exit status'); -is($err, '', '--json --dumpfile stderr'); -like( - $out, - qr{"deviceid": "esx-test\.teclib\.local-\d+-\d+-\d+-\d+-\d+-\d+",}, - '--json --dumpfile stdout' -); +SKIP: { + skip "No gunzip command on win32", 6 + if $OSNAME eq "MSWin32"; + + ($out, $err, $rc) = run_executable('glpi-esx', '--dumpfile resources/esx/esx-4.1.0-1-hostfullinfo.dump.gz'); + ok($rc == 0, '--dumpfile exit status'); + is($err, '', '--dumpfile stderr'); + like( + $out, + qr{esx-test\.teclib\.local-\d+-\d+-\d+-\d+-\d+-\d+}, + '--dumpfile stdout' + ); + + ($out, $err, $rc) = run_executable('glpi-esx', '--json --dumpfile resources/esx/esx-4.1.0-1-hostfullinfo.dump.gz'); + ok($rc == 0, '--json --dumpfile exit status'); + is($err, '', '--json --dumpfile stderr'); + like( + $out, + qr{"deviceid": "esx-test\.teclib\.local-\d+-\d+-\d+-\d+-\d+-\d+",}, + '--json --dumpfile stdout' + ); +}