function makeMakefileCase::listMakefileTests

8.0.x makeTest.php makeMakefileCase::listMakefileTests()
7.x makeTest.php makeMakefileCase::listMakefileTests()
master makeTest.php makeMakefileCase::listMakefileTests()
1 call to makeMakefileCase::listMakefileTests()

File

tests/makeTest.php, line 53

Namespace

Unish

Class

makeMakefileCase
Make makefile tests. @group make @group slow

Code

function listMakefileTests() {
  $tests = array(
    'bzr' => array(
      'name' => 'Bzr',
      'makefile' => 'bzr.make',
      'build' => TRUE,
      'md5' => '272e2b9bb27794c54396f2f03c159725',
      'options' => array(),
    ),
    'bz2' => array(
      'name' => 'bzip2',
      'makefile' => 'bz2.make',
      'build' => TRUE,
      'md5' => '5ec081203131a1a3277c8b23f9ddb995',
      'options' => array('no-core' => NULL),
    ),
    'bz2-singlefile' => array(
      'name' => 'bzip2 single file',
      'makefile' => 'bz2-singlefile.make',
      'build' => TRUE,
      'md5' => '4f9d57f6caaf6ece0526d867327621cc',
      'options' => array('no-core' => NULL),
    ),
    'contrib-destination' => array(
      'name' => 'Contrib-destination attribute',
      'makefile' => 'contrib-destination.make',
      'build' => TRUE,
      'md5' => '2aed36201ede1849ce43d9b7d6f7e9e1',
      'options' => array(
        'no-core' => NULL,
        'contrib-destination' => '.',
      ),
    ),
    'defaults' => array(
      'name' => 'Test defaults array.',
      'makefile' => 'defaults.make',
      'build' => TRUE,
      'md5' => 'e6c0d6b37cd8573cbd188742b95a274e',
      'options' => array(
        'no-core' => NULL,
        'contrib-destination' => '.',
      ),
    ),
    'file' => array(
      'name' => 'File extraction',
      'makefile' => 'file.make',
      'build' => TRUE,
      'md5' => '4e9883d6f9f6572af287635689c2545d',
      'options' => array('no-core' => NULL),
    ),
    'file-extract' => array(
      'name' => 'Extract archives',
      'makefile' => 'file-extract.make',
      'build' => TRUE,
      'md5' => 'b43d271ab3510eb33c1e300c78893458',
      
      // @todo This test often fails with concurrency set to more than one.
      'options' => array(
        'no-core' => NULL,
        'concurrency' => 1,
      ),
    ),
    'get' => array(
      'name' => 'Test GET retrieval of projects',
      'makefile' => 'get.make',
      'build' => TRUE,
      'md5' => '4bf18507da89bed601548210c22a3bed',
      'options' => array('no-core' => NULL),
    ),
    'git' => array(
      'name' => 'GIT integration',
      'makefile' => 'git.make',
      'build' => TRUE,
      'md5' => '4c80d78b50c89b5ba11a997bafec2b43',
      'options' => array(
        'no-core' => NULL,
        'no-gitinfofile' => NULL,
      ),
    ),
    'git-simple' => array(
      'name' => 'Simple git integration',
      'makefile' => 'git-simple.make',
      'build' => TRUE,
      'md5' => '0147681209adef163a8ac2c0cff2a07e',
      'options' => array(
        'no-core' => NULL,
        'no-gitinfofile' => NULL,
      ),
    ),
    'git-simple-8' => array(
      'name' => 'Simple git integration for D8',
      'makefile' => 'git-simple-8.make',
      'build' => TRUE,
      'options' => array('no-core' => NULL),
    ),
    'gzip' => array(
      'name' => 'gzip',
      'makefile' => 'gzip.make',
      'build' => TRUE,
      'md5' => '25b514df18a87b655437388af083e22c',
      'options' => array('no-core' => NULL),
    ),
    'ignore-checksums' => array(
      'name' => 'Ignore invalid checksum/s',
      'makefile' => 'md5-fail.make',
      'build' => TRUE,
      'md5' => 'f76ec174a775ce67f8e9edcb02336ef2',
      'options' => array(
        'no-core' => NULL,
        'ignore-checksums' => NULL,
      ),
    ),
    'include' => array(
      'name' => 'Including files and property overrides',
      'makefile' => 'include.make',
      'build' => TRUE,
      'md5' => 'e2e230ec5eccaf5618050559ab11510d',
      'options' => array(),
    ),
    'includes-git' => array(
      'name' => 'Including makefiles from remote repositories',
      'makefile' => 'includes-main.make',
      'build' => TRUE,
      'options' => array(),
    ),
    'limit-libraries' => array(
      'name' => 'Limit libraries downloaded',
      'makefile' => 'limited-projects-libraries.make',
      'build' => TRUE,
      'md5' => 'cb0da4465d86eb34cafb167787862eb6',
      'options' => array(
        'no-core' => NULL,
        'libraries' => 'drush_make',
      ),
    ),
    'limit-libraries-multiple' => array(
      'name' => 'Limit multiple libraries downloaded',
      'makefile' => 'limited-projects-libraries.make',
      'build' => TRUE,
      'md5' => '7c10e6fc65728a77a2b0aed4ec2a29cd',
      'options' => array(
        'no-core' => NULL,
        'libraries' => 'drush_make,token',
      ),
    ),
    'limit-projects' => array(
      'name' => 'Limit projects downloaded',
      'makefile' => 'limited-projects-libraries.make',
      'build' => TRUE,
      'md5' => '3149650120e541d7d0fa577eef0ee9a3',
      'options' => array(
        'no-core' => NULL,
        'projects' => 'boxes',
      ),
    ),
    'limit-projects-multiple' => array(
      'name' => 'Limit multiple projects downloaded',
      'makefile' => 'limited-projects-libraries.make',
      'build' => TRUE,
      'md5' => 'ef8996c4d6c6f0d229e2237c73860071',
      'options' => array(
        'no-core' => NULL,
        'projects' => 'boxes,admin_menu',
      ),
    ),
    'md5-fail' => array(
      'name' => 'Failed MD5 validation test',
      'makefile' => 'md5-fail.make',
      'build' => FALSE,
      'md5' => FALSE,
      'options' => array('no-core' => NULL),
      'fail' => TRUE,
    ),
    'md5-succeed' => array(
      'name' => 'MD5 validation',
      'makefile' => 'md5-succeed.make',
      'build' => TRUE,
      'md5' => 'f76ec174a775ce67f8e9edcb02336ef2',
      'options' => array('no-core' => NULL),
    ),
    'no-patch-txt' => array(
      'name' => 'Test --no-patch-txt option',
      'makefile' => 'patches.make',
      'build' => TRUE,
      'md5' => '59267a04f98374ed5b0b75e90cefcd9c',
      'options' => array(
        'no-core' => NULL,
        'no-patch-txt' => NULL,
      ),
    ),
    'options-array' => array(
      'name' => 'Test global options array',
      'makefile' => 'options-array.make',
      'build' => TRUE,
      'options' => array(),
    ),
    'options-project' => array(
      'name' => 'Test per-project options array',
      'makefile' => 'options-project.make',
      'build' => TRUE,
      'options' => array(),
    ),
    'patch' => array(
      'name' => 'Test patching and writing of PATCHES.txt file',
      'makefile' => 'patches.make',
      'build' => TRUE,
      'md5' => '536ee287344c24f47e0808622d7d091b',
      'options' => array('no-core' => NULL),
    ),
    'recursion' => array(
      'name' => 'Recursion',
      'makefile' => 'recursion.make',
      'build' => TRUE,
      'md5' => 'cd095bd6dadb2f0d3e81f85f13685372',
      'options' => array(
        'no-core' => NULL,
        'contrib-destination' => 'profiles/drupal_forum',
      ),
    ),
    'recursion-override' => array(
      'name' => 'Recursion overrides',
      'makefile' => 'recursion-override.make',
      'build' => TRUE,
      'md5' => 'a13c3d5d416be9fa78569514844b96a2',
      'options' => array(
        'no-core' => NULL,
      ),
    ),
    'subtree' => array(
      'name' => 'Use subtree from downloaded archive',
      'makefile' => 'subtree.make',
      'build' => TRUE,
      'md5' => 'db3770d8b4c9ce77510cbbcc566da9b8',
      'options' => array('no-core' => NULL),
    ),
    'svn' => array(
      'name' => 'SVN',
      'makefile' => 'svn.make',
      'build' => TRUE,
      'md5' => '0cb28a15958d7fc4bbf8bf6b00bc6514',
      'options' => array('no-core' => NULL),
    ),
    'translations' => array(
      'name' => 'Translation downloads',
      'makefile' => 'translations.make',
      'options' => array(
        'translations' => 'es,pt-br',
        'no-core' => NULL,
      ),
    ),
    'translations-inside' => array(
      'name' => 'Translation downloads inside makefile',
      'makefile' => 'translations-inside.make',
    ),
    'translations-inside7' => array(
      'name' => 'Translation downloads inside makefile, core 7.x',
      'makefile' => 'translations-inside7.make',
    ),
    'use-distribution-as-core' => array(
      'name' => 'Use distribution as core',
      'makefile' => 'use-distribution-as-core.make',
      'build' => TRUE,
      'md5' => '643a603025a20d498eb583a1e7970bad',
      'options' => array(),
    ),
  );
  // Replicate ini tests for YAML format.
  foreach ($tests as $id => $test) {
    $id_yaml = $id . '-yaml';
    $tests[$id_yaml] = $test;
    $tests[$id_yaml]['name'] = $tests[$id]['name'] . '(in YAML format)';
    $tests[$id_yaml]['makefile'] = $tests[$id]['makefile'] . '.yml';
  }
  return $tests;
}