Home | History | Annotate | Download | only in express
      1 #!/usr/bin/env python
      2 
      3 # Copyright (c) 2009 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 that flat solutions get generated for Express versions of
      9 Visual Studio.
     10 """
     11 
     12 import TestGyp
     13 
     14 test = TestGyp.TestGyp(formats=['msvs'])
     15 
     16 test.run_gyp('express.gyp', '-G', 'msvs_version=2005')
     17 test.must_contain('express.sln', '(base)')
     18 
     19 test.run_gyp('express.gyp', '-G', 'msvs_version=2008')
     20 test.must_contain('express.sln', '(base)')
     21 
     22 test.run_gyp('express.gyp', '-G', 'msvs_version=2005e')
     23 test.must_not_contain('express.sln', '(base)')
     24 
     25 test.run_gyp('express.gyp', '-G', 'msvs_version=2008e')
     26 test.must_not_contain('express.sln', '(base)')
     27 
     28 
     29 test.pass_test()
     30