Home | History | Annotate | Download | only in relative
      1 #!/usr/bin/env python
      2 
      3 # Copyright (c) 2011 Google Inc. All rights reserved.
      4 # Use of this source code is governed by a BSD-style license that can be
      5 # found in the LICENSE file.
      6 
      7 """
      8 Verifies simplest-possible build of a "Hello, world!" program
      9 using the default build target.
     10 """
     11 
     12 import TestGyp
     13 
     14 test = TestGyp.TestGyp(workdir='workarea_default', formats=['msvs'])
     15 
     16 # Run from down in foo.
     17 test.run_gyp('a.gyp', chdir='foo/a')
     18 sln = test.workpath('foo/a/a.sln')
     19 sln_data = open(sln, 'rb').read()
     20 vcproj = sln_data.count('b.vcproj')
     21 vcxproj = sln_data.count('b.vcxproj')
     22 if (vcproj, vcxproj) not in [(1, 0), (0, 1)]:
     23   test.fail_test()
     24 
     25 test.pass_test()
     26