diff options
Diffstat (limited to 'third_party/python/gyp/test/actions-none/gyptest-none.py')
-rwxr-xr-x | third_party/python/gyp/test/actions-none/gyptest-none.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/third_party/python/gyp/test/actions-none/gyptest-none.py b/third_party/python/gyp/test/actions-none/gyptest-none.py new file mode 100755 index 0000000000..933cfad30c --- /dev/null +++ b/third_party/python/gyp/test/actions-none/gyptest-none.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python + +# Copyright (c) 2012 Google Inc. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +""" +Verifies actions can be in 'none' type targets with source files. +""" + +import TestGyp + +test = TestGyp.TestGyp() + +test.run_gyp('none_with_source_files.gyp', chdir='src') + +test.relocate('src', 'relocate/src') +test.build('none_with_source_files.gyp', chdir='relocate/src') + +file_content = 'foo.cc\n' + +test.built_file_must_match('fake.out', file_content, chdir='relocate/src') + +test.pass_test() |