aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/unittest.bash
Commit message (Collapse)AuthorAge
* Description redacted.Gravatar Chris Parsons2016-03-30
| | | | | -- MOS_MIGRATED_REVID=118500217
* Make the bazel_worker_test non-flaky, once and for all.Gravatar Philipp Wollermann2016-03-10
| | | | | -- MOS_MIGRATED_REVID=116801400
* Record correct shell test failure timesGravatar Michajlo Matijkiw2016-01-07
| | | | | | | | A failing test could use a previous run's timestamp, resulting in awkward negative times, especially in the case of sub-second runs. -- MOS_MIGRATED_REVID=111345693
* unittest.bash: Correctly handle failures due to "errexit" in tests. This ↵Gravatar Philipp Wollermann2015-12-15
| | | | | | | will get rid of all the "ghost flakes" where tests crashed with no apparant reason printed into our logs. Now a stack trace is printed and an easy to understand failure reason, too. -- MOS_MIGRATED_REVID=110142957
* unittest.bash: Make it clear that true / false are strings and treat them as ↵Gravatar Philipp Wollermann2015-12-11
| | | | | | | such. -- MOS_MIGRATED_REVID=109991616
* Don't print an error message about cat if a test exits abnormallyGravatar Kristina Chodorow2015-12-10
| | | | | | | | | | On calls to fail, the failure message is written to $TEST_TMPDIR/__fail. This is cat-ed to get the message, but if the test exited without calling fail then an annoying 'cat: blah/blah/blah/__fail: No such file or directory' message is printed. This throws out the error message if the cat fails. -- MOS_MIGRATED_REVID=109896051
* This change fixes a mysterious timeout when the Maven tests fail.Gravatar Lukacs Berki2015-11-26
| | | | | | | I have no idea why this is a problem: apparently, postincrement fails (but only the first one, so theoretically, changing only that line would be enough), preincrement works and i=$(( $i + 1 )) also works. The documentation of bash is of no help, I checked the file on the off chance that there are weird Unicode characters on that line (or where i is set) and I had no more ideas after (other than there being a bug in bash) -- MOS_MIGRATED_REVID=108774915
* Fixes up bash stack walking on Mac OS. There are cases where BASH_SOURCE is ↵Gravatar Dave MacLachlan2015-11-06
| | | | | | | | | a sparse array with holes. This appears to be due to the sub shell launching of the tests. By using FUNCNAME as our count of stack frames, and "ignoring" the holes, we get much better stack output on the Mac. Previously we were just erroring out. RELNOTES:none -- MOS_MIGRATED_REVID=107255705
* Pass test log as argument to formatting perl program instead of inliningGravatar Michajlo Matijkiw2015-09-30
| | | | | | | | | No need to worry about escaping any perl-related chars. RELNOTES: -- MOS_MIGRATED_REVID=104207407
* Fix a long standing issue where in the presence of '{' or '\' characters in ↵Gravatar Miguel Alcon Pinto2015-09-30
| | | | | | | the test log output we would fails to report the tests that failed (and show the whole raw output instead). This is because we inline a text inside a perl program but we were only escaping } character. -- MOS_MIGRATED_REVID=104102328
* Rationalize copyright headersGravatar Damien Martin-Guillerez2015-09-25
| | | | | | | | | | | The headers were modified with `find . -type f -exec 'sed' '-Ei' 's|Copyright 201([45]) Google|Copyright 201\1 The Bazel Authors|' '{}' ';'` And manual edit for not Google owned copyright. Because of the nature of ijar, I did not modified the header of file owned by Alan Donovan. The list of authors were extracted from the git log. It is missing older Google contributors that can be added on-demand. -- MOS_MIGRATED_REVID=103938715
* Do not fail when the test argument do not match any testGravatar Damien Martin-Guillerez2015-09-23
| | | | | | | | | Bazel test environment set -eu and when giving an argument to the test suite, the for loop matching for test to run was returning an error, resulting in the whole test to fails. -- MOS_MIGRATED_REVID=103727268
* Port to FreeBSD.Gravatar Doug Rabson2015-08-26
| | | | | | | -- Change-Id: I4e65cc583e758d2f7e45209ffcb37f6a871e2ed7 Reviewed-on: https://bazel-review.git.corp.google.com/#/c/1840 MOS_MIGRATED_REVID=101462155
* Enforce creation of the start timestamp in unittest.bashGravatar Damien Martin-Guillerez2015-05-07
| | | | | | | | | | If the set_up method fails then the start timestamp file is not created and the start timestamp argument to in the timestamp computation function will be undefined leading to an unwanted error if set -u is activated. -- Change-Id: I188e9302bbdb1049dc317765eaa653bafc5a51de MOS_MIGRATED_REVID=92946436
* Remove dependency on bcGravatar Kristina Chodorow2015-04-16
| | | | | | | This makes installation easier for systems that don't come with bc installed (e.g., Travis CI and Ubuntu Vivid Vervet). -- MOS_MIGRATED_REVID=91297054
* Enable test sharding for bazel_example_testGravatar Damien Martin-Guillerez2015-04-14
| | | | | | | | | Test sharding run the same "bazel" test in parallel. The unittest.bash framework then distribute the test functions equally on the various shard. -- MOS_MIGRATED_REVID=90990754
* unittest.bash fix: support undefined TEST_WARNINGS_OUTPUT_FILEGravatar Damien Martin-Guillerez2015-04-08
| | | | | | | | Bazel tests set -u and that prevented selection of test to run in a test suite with --test_arg. -- MOS_MIGRATED_REVID=90497934
* Fixed timestamp of unittest.bash under OS XGravatar Damien Martin-Guillerez2015-03-24
| | | | | | | | In OS X date does not support the %N formatting, so using python to print out date instead -- MOS_MIGRATED_REVID=89303112
* Allow bash unit tests to fails without failure messageGravatar Damien Martin-Guillerez2015-03-20
| | | | | | | | | | | This change allows tests to fails silently and have the test output by function preserved. Without it, a script that would set +e and have a failing command would generate a failure on the fetching of the failure message, making the whole test suite fails. -- MOS_MIGRATED_REVID=89120786
* Open-source unittest.bashGravatar Damien Martin-Guillerez2015-03-18
This is part of the shell test infrastructure for Bazel. It creates test suites in Bazel shell. Handling the test ouputs efficiently for making test summaries. -- MOS_MIGRATED_REVID=88929067