function makeMakefileCase::testMakeGZip

8.0.x makeTest.php makeMakefileCase::testMakeGZip()
6.x makeTest.php makeMakefileCase::testMakeGZip()
7.x makeTest.php makeMakefileCase::testMakeGZip()
5.x makeTest.php makeMakefileCase::testMakeGZip()
master makeTest.php makeMakefileCase::testMakeGZip()

File

tests/makeTest.php, line 439

Namespace

Unish

Class

makeMakefileCase
Make makefile tests. @group make @group slow

Code

function testMakeGZip() {
  // Silently skip gzip test if either gzip or unzip is not installed.
  exec('which gzip', $output, $whichGzipErrorCode);
  if (!$whichGzipErrorCode) {
    exec('which unzip', $output, $whichUnzipErrorCode);
    if (!$whichUnzipErrorCode) {
      $this->runMakefileTest('gzip');
    }
    else {
      $this->markTestSkipped('unzip command not available.');
    }
  }
  else {
    $this->markTestSkipped('gzip command not available.');
  }
}