aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/integration/startup_options_test.sh
Commit message (Collapse)AuthorAge
* Add SearchUnaryOptions and SearchNullaryOptions to improve the parsingGravatar Luis Fernando Pino Duque2016-12-09
| | | | | | | | | | | | of the startup options. This allows us to do the following: - Avoid using the product name when reporting startup option parsing errors. - Passing --bazelrc as a command argument throws an error (fix for issue #1659). -- PiperOrigin-RevId: 141445030 MOS_MIGRATED_REVID=141445030
* Create a proper wrapper script for executing "bazel" in the integration tests.Gravatar Luis Fernando Pino Duque2016-10-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently a call to "bazel" in an integration test means calling a (quite hidden) function in test-setup.sh which actually calls "$bazel" defined in "shell/bazel/testenv.sh" which is equal to "$(rlocation io_bazel/src/bazel)". This is extremely confusing and error prone. The new mechanism is to add a wrapper script to shell/bin called bazel and export this directory to the PATH. Moreover, not every test loads the same test environment, for instance consider how bazel_query_test loads the test environment: - Load shell/integration/testenv.sh which loads, - shell/bazel/test-setup.sh which loads, - shell/bazel/testenv.sh which loads, - shell/unittest.bash which loads, - shell/testenv.sh Again this is error prone and specially hard to understand, in fact each test writer needs to decide which of these testenv to load. This change fixes all of this by having only one testenv.sh and summarizing the test setup in integration_test_setup.sh. Namely, for any new integration test, the developer needs to load integration_test_setup to get the environment set up including the unittest framework (also it helps to attract contributions). This change also allows to open sourcing client_sigint_test: Since bazel was a function client_sigint_test was using a wrong process id to interrupt the build. The problem is that $! returns bash's id instead of the id of the process running in the background when using a function instead of an executable. A few tests needed to be adapted to the new infrastructure. -- MOS_MIGRATED_REVID=136470360
* Add trailing true after kill which does not have exit status 0.Gravatar Tobias Werth2016-09-12
| | | | | | | | | Also increase timeout to reduce flakyness. -- Change-Id: Ieb5bbd9b2f9e28cd3ec39f42deb0aba0f501171c Reviewed-on: https://bazel-review.googlesource.com/c/6033/ MOS_MIGRATED_REVID=132873805
* s/blaze/bazel to fix failing test.Gravatar Tobias Werth2016-09-12
| | | | | | | -- Change-Id: I1203f15e8e02373b062142c0631ff94f14bd437d Reviewed-on: https://bazel-review.googlesource.com/c/6032/ MOS_MIGRATED_REVID=132870643
* Open-source startup_options_test.Gravatar Tobias Werth2016-09-12
-- MOS_MIGRATED_REVID=132852747