Skip to content

Commit

Permalink
test: Skip new apps esx unittests on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed Sep 22, 2023
1 parent d830098 commit d5acc12
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions t/apps/esx.t
Original file line number Diff line number Diff line change
Expand Up @@ -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{<DEVICEID>esx-test\.teclib\.local-\d+-\d+-\d+-\d+-\d+-\d+</DEVICEID>},
'--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{<DEVICEID>esx-test\.teclib\.local-\d+-\d+-\d+-\d+-\d+-\d+</DEVICEID>},
'--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'
);
}

0 comments on commit d5acc12

Please sign in to comment.