summaryrefslogtreecommitdiff
path: root/test/mac/gyptest-libtool-zero.py
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2014-11-06 11:12:40 +0000
committerTorne (Richard Coles) <torne@google.com>2014-11-06 11:12:40 +0000
commit2c322fa0879bb1d22b6ce09b698562d8d7cae36d (patch)
tree25a4380a068212b79efba1d8dc79a4d36ba3c98d /test/mac/gyptest-libtool-zero.py
parent86a67f445a64a7baaa8aee66b6a5859c00289462 (diff)
parentb5b4ce2b9f579f0944ddc21801187e8efb458ca4 (diff)
downloadgyp-master.tar.gz
This commit was generated by merge_to_master.py. Change-Id: I60d0e38401d2444cd8c029e28b930554938d39c7
Diffstat (limited to 'test/mac/gyptest-libtool-zero.py')
-rw-r--r--test/mac/gyptest-libtool-zero.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/mac/gyptest-libtool-zero.py b/test/mac/gyptest-libtool-zero.py
new file mode 100644
index 00000000..ae5b7e63
--- /dev/null
+++ b/test/mac/gyptest-libtool-zero.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+
+# Copyright (c) 2014 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 libraries have proper mtime.
+"""
+
+import TestGyp
+
+import sys
+
+if sys.platform == 'darwin':
+ test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])
+
+ CHDIR = 'libtool-zero'
+
+ test.run_gyp('test.gyp', chdir=CHDIR)
+
+ test.build('test.gyp', 'mylib', chdir=CHDIR)
+
+ test.up_to_date('test.gyp', 'mylib', chdir=CHDIR)
+
+ test.pass_test()