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"""
8Verifies that flat solutions get generated for Express versions of
9Visual Studio.
10"""
11
12import TestGyp
13
14test = TestGyp.TestGyp(formats=['msvs'])
15
16test.run_gyp('express.gyp', '-G', 'msvs_version=2005')
17test.must_contain('express.sln', '(base)')
18
19test.run_gyp('express.gyp', '-G', 'msvs_version=2008')
20test.must_contain('express.sln', '(base)')
21
22test.run_gyp('express.gyp', '-G', 'msvs_version=2005e')
23test.must_not_contain('express.sln', '(base)')
24
25test.run_gyp('express.gyp', '-G', 'msvs_version=2008e')
26test.must_not_contain('express.sln', '(base)')
27
28
29test.pass_test()
30