summaryrefslogtreecommitdiffstats
path: root/test/CacheDir
diff options
context:
space:
mode:
authorAdam Gross <grossag@vmware.com>2019-12-02 14:54:28 (GMT)
committerAdam Gross <grossag@vmware.com>2019-12-02 15:00:59 (GMT)
commite6dc8216872085749db83e14c9545cabb1ed0483 (patch)
tree8965de9f89375b4ef931ed4cc0e1b37af3c58686 /test/CacheDir
parent9ac3a25ea28dae718c095a7b1909c42b817ec9b8 (diff)
downloadSCons-e6dc8216872085749db83e14c9545cabb1ed0483.zip
SCons-e6dc8216872085749db83e14c9545cabb1ed0483.tar.gz
SCons-e6dc8216872085749db83e14c9545cabb1ed0483.tar.bz2
Add a functional test
Diffstat (limited to 'test/CacheDir')
-rw-r--r--test/CacheDir/value.py47
1 files changed, 47 insertions, 0 deletions
diff --git a/test/CacheDir/value.py b/test/CacheDir/value.py
new file mode 100644
index 0000000..fd89a9e
--- /dev/null
+++ b/test/CacheDir/value.py
@@ -0,0 +1,47 @@
+#!/usr/bin/env python
+#
+# __COPYRIGHT__
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be included
+# in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
+# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+
+__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
+
+"""
+Verify that bwuilds with caching work for an action with a Value as a child.
+"""
+
+import TestSCons
+
+test = TestSCons.TestSCons()
+
+test.dir_fixture('cachedir_foo_value')
+test.subdir('cache')
+
+# First build, populates the cache
+test.run(arguments='.')
+
+test.pass_test()
+
+# Local Variables:
+# tab-width:4
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=4 shiftwidth=4: