diff options
author | Moonchild <moonchild@palemoon.org> | 2021-11-28 15:46:00 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2021-11-28 15:46:00 +0000 |
commit | 998eac28fbe25eafe0eea8b5a0e2ca25c9f1f12e (patch) | |
tree | ab67e2d2bdfa5249c256fc98f12643d9a15f7c8c /other-licenses/gyp-deps/tools/gyp/test/mac/gyptest-postbuild.py | |
parent | b9df947881e005c333367fe47de8762e648e4e96 (diff) | |
download | aura-central-998eac28fbe25eafe0eea8b5a0e2ca25c9f1f12e.tar.gz |
Issue %3014 - Part 7: Move gyp and build deps to other-licenses.
Diffstat (limited to 'other-licenses/gyp-deps/tools/gyp/test/mac/gyptest-postbuild.py')
-rw-r--r-- | other-licenses/gyp-deps/tools/gyp/test/mac/gyptest-postbuild.py | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/other-licenses/gyp-deps/tools/gyp/test/mac/gyptest-postbuild.py b/other-licenses/gyp-deps/tools/gyp/test/mac/gyptest-postbuild.py new file mode 100644 index 000000000..684e7b842 --- /dev/null +++ b/other-licenses/gyp-deps/tools/gyp/test/mac/gyptest-postbuild.py @@ -0,0 +1,53 @@ +#!/usr/bin/env python + +# Copyright (c) 2011 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 that postbuild steps work. +""" + +import TestGyp + +import sys + +if sys.platform == 'darwin': + test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode']) + + test.run_gyp('test.gyp', chdir='postbuilds') + + test.build('test.gyp', test.ALL, chdir='postbuilds') + + # See comment in test/subdirectory/gyptest-subdir-default.py + if test.format == 'xcode': + chdir = 'postbuilds/subdirectory' + else: + chdir = 'postbuilds' + + # Created by the postbuild scripts + test.built_file_must_exist('el.a_touch', + type=test.STATIC_LIB, + chdir='postbuilds') + test.built_file_must_exist('el.a_gyp_touch', + type=test.STATIC_LIB, + chdir='postbuilds') + test.built_file_must_exist('nest_el.a_touch', + type=test.STATIC_LIB, + chdir=chdir) + test.built_file_must_exist( + 'dyna.framework/Versions/A/dyna_touch', + chdir='postbuilds') + test.built_file_must_exist( + 'dyna.framework/Versions/A/dyna_gyp_touch', + chdir='postbuilds') + test.built_file_must_exist( + 'nest_dyna.framework/Versions/A/nest_dyna_touch', + chdir=chdir) + test.built_file_must_exist('dyna_standalone.dylib_gyp_touch', + type=test.SHARED_LIB, + chdir='postbuilds') + test.built_file_must_exist('copied_file.txt', chdir='postbuilds') + test.built_file_must_exist('copied_file_2.txt', chdir=chdir) + + test.pass_test() |