sapling/eden/integration/TARGETS
Adam Simpkins 8504688aaf don't run all integration tests in both build modes
Summary:
This updates the TARGETS files so that we don't run all integration tests in
both the FB and OSS build flavors any more.  For the OSS build we only run the
tests in basic_tests.py now.

This reduces the overall time to run all eden tests from about 170 seconds to
about 120 seconds on my server.

Reviewed By: wez

Differential Revision: D5367406

fbshipit-source-id: 81048f415e2f69175059f346e3f81269142a5fc7
2017-07-07 16:01:33 -07:00

43 lines
1.2 KiB
Plaintext

# @autodeps
include_defs("//eden/DEFS")
# Run all tests with the default build type (the empty suffix)
artifacts = get_test_env_and_deps("")
python_unittest(
name = "integration",
srcs = glob(["*.py"]),
env = dict(artifacts["env"]).update({
"EDENFS_SUFFIX": "",
# "HYPOTHESIS_VERBOSITY_LEVEL": "verbose",
}),
deps = artifacts["deps"] + [
"@/eden/integration/lib:lib",
],
external_deps = [
"py-hypothesis",
],
)
# For Facebook-internal builds, where we build slightly different FB-specific
# and OSS buildos, also run basic sanity tests on the -oss build flavor.
# We don't run all the tests on both flavors since it takes a while, and the
# two build flavors are almost the same, with only some minor differences in
# the initialization code.
if is_facebook_internal():
suffix = get_oss_suffix()
artifacts = get_test_env_and_deps(suffix)
python_unittest(
name = "integration" + suffix,
srcs = [
"basic_test.py",
],
env = dict(artifacts["env"]).update({
"EDENFS_SUFFIX": suffix,
}),
deps = artifacts["deps"] + [
"@/eden/integration/lib:lib",
],
)