diff options
author | Mathew Robinson <chasinglogic@gmail.com> | 2019-07-10 14:07:30 -0400 |
---|---|---|
committer | Mathew Robinson <chasinglogic@gmail.com> | 2019-08-12 15:52:46 -0400 |
commit | 7a3751d58c5d46fb480f8a62420da55a165a2e59 (patch) | |
tree | 42721c12ea5be5680654d97318a22242de43c461 /jstests/SConscript | |
parent | d41e5d199d056b19cc566b634bff1cdacbb86920 (diff) | |
download | mongo-7a3751d58c5d46fb480f8a62420da55a165a2e59.tar.gz |
SERVER-42048 Install and package jstests using SCons hygienic builds
Diffstat (limited to 'jstests/SConscript')
-rw-r--r-- | jstests/SConscript | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/jstests/SConscript b/jstests/SConscript new file mode 100644 index 00000000000..bb811946ee6 --- /dev/null +++ b/jstests/SConscript @@ -0,0 +1,20 @@ +# Includes the jstests in distribution tarballs generated by SCons + +Import("env") +Import("get_option") + +env = env.Clone() + +if not get_option("install-mode") == "hygienic": + Return() + +for jstest in env.Glob("**/*.js"): + env.AutoInstall( + target="$PREFIX_SHARE_DIR/jstests/" + str(jstest.dir), + source=jstest, + AIB_COMPONENT="jstests", + AIB_ROLE="runtime", + AIB_COMPONENTS_EXTRA=[ + "tests", + ], + ) |