• Pieter Hintjens's avatar
    Problem: gyp does not build tests · 8230c0d3
    Pieter Hintjens authored
    Solution: it's a lot of work to define the tests in project.gyp
    so I did this using gsl to generate the JSON, from a small XML
    list of the test cases.
    
    To keep this, and the hundreds of .mk files, away from the root
    directory, I've moved the gyp files into builds/gyp, where you
    would run them.
    
    It all seems to work now. Next up, OS/X and Windows :)
    8230c0d3
project-tests.gsl 351 Bytes
.echo "Generating project-tests.gypi..."
.output "project-tests.gypi"
{
  'targets': [
.for test
    {
      'target_name': '$(name)',
      'type': 'executable',
      'sources': [
        '../../tests/$(name).cpp',
        '../../tests/testutil.hpp'
      ],
      'dependencies': [
        'libzmq'
      ],
    }$(last ()?? ""? ",")
.endfor
  ]
}