aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/ijar/test
Commit message (Collapse)AuthorAge
* Support @ syntax for specifying the list of files to zipperGravatar Damien Martin-Guillerez2016-01-21
| | | | | | | | | | | | | | | When creating an archive with //third_party/ijar:zipper, all files to add should be specified as an argument. When adding a lot of files, this leads to reaching the maximum size of the command line. This change add a @filename argument that permit to specify a file containing the list of files to zip. -- Change-Id: I02843588896969ef2d6add26c1c67ff44a27f7de Reviewed-on: https://bazel-review.googlesource.com/#/c/2695/ MOS_MIGRATED_REVID=112678600
* Set test_class for java_test test target where it is neededGravatar Damien Martin-Guillerez2016-01-19
| | | | | | | | | This make those test target compatible with --nolegacy_bazel_java_test. -- Change-Id: I2316c9aa53327b417ecce5fd5dab95ec726da11d Reviewed-on: https://bazel-review.googlesource.com/#/c/2690 MOS_MIGRATED_REVID=112446514
* Fix ijar_test when errexit is onGravatar Damien Martin-Guillerez2015-12-16
| | | | | | | | $(...) is incorrect when doing a test to test the return value, (...) should be used instead. -- MOS_MIGRATED_REVID=110248027
* 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
* Add zip64 support to ijarGravatar Liam Miller-Cushon2015-12-03
| | | | | | | This allows ijar to process jars with >65535 entries. -- MOS_MIGRATED_REVID=109321374
* Normalize ijar's header to 'The Bazel Authors'.Gravatar Damien Martin-Guillerez2015-11-19
| | | | | | | | As per discussion with Alan, just use the same copyright than for the rest of Bazel and adds Alan as an author. -- MOS_MIGRATED_REVID=108250408
* Recognize SourceDebugExtension attributes in ijarGravatar Liam Miller-Cushon2015-10-20
| | | | | | | | This doesn't change behaviour (they continue to get dropped from the interface jar), but it avoids some spurious "skipping unknown attribute" warnings. -- MOS_MIGRATED_REVID=105767979
* Fix bazel's ijar test afterGravatar Liam Miller-Cushon2015-10-15
| | | | | -- MOS_MIGRATED_REVID=105439722
* Support Java 8 MethodParameters attribute in ijarGravatar Liam Miller-Cushon2015-10-14
| | | | | -- MOS_MIGRATED_REVID=105417011
* 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
* Increase the size of ijar_testGravatar Damien Martin-Guillerez2015-09-16
| | | | | | | It is timingout on our Darwin CI machine, see http://ci.bazel.io/job/Bazel/PLATFORM_NAME=darwin-x86_64/110/console -- MOS_MIGRATED_REVID=103130707
* Fixes ijar tests on OSXGravatar Damien Martin-Guillerez2015-09-15
| | | | | | | | | Two things were broken: - Paths to zip/unzip when in the PATH by latest change - md5sum was broken by FreeBSD change -- MOS_MIGRATED_REVID=103077733
* Remove a line accidentally left in from debugging.Gravatar Lukacs Berki2015-09-15
| | | | | -- MOS_MIGRATED_REVID=103076612
* Make ijar appropriately prune InnerClasses, at the cost of a lot of unholy ↵Gravatar Lukacs Berki2015-09-15
| | | | | | | hacks. -- MOS_MIGRATED_REVID=103068956
* Fix ijar compressionGravatar Damien Martin-Guillerez2015-09-11
| | | | | | | | | | Ijar was compressing with the zlib wrapper, which is incompatible with the ZIP format. Unfortunately, the zlib wrapper is totally undocumented. Fixes #436. -- MOS_MIGRATED_REVID=102846162
* Add support for compression in //third_party/ijar:zipperGravatar Damien Martin-Guillerez2015-08-31
| | | | | | | | | | | Add the 'C' flag to //third_party/ijar:zipper to try to compress files using the DEFLATE algorithm. To avoid regression, creation of uncompressed ZIP files is still the default. -- Change-Id: I8ad7182d8f6f152abd56ae472a406cbb8d39fb64 Reviewed-on: https://bazel-review.googlesource.com/#/c/1821/ MOS_MIGRATED_REVID=101925953
* 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
* Fix zipper for empty filesGravatar Kristina Chodorow2015-07-02
| | | | | | | It was erroring out because it could not mmap an empty file. -- MOS_MIGRATED_REVID=97338974
* Set-up travis OSX to compile using JDK 7Gravatar Damien Martin-Guillerez2015-06-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is introducing a few changes to use the Java compiler from errorprone: - add the --java_langtools flag to the shell tests so we do the tests with the same java compiler tooling than Bazel, and - added the langtools the bootclasspath of the JavaBuilder tests. - tagged some tests and deactivated them on travis OSX because they either requires Java 8 or a lot of disk space. To do the same change on a local install, one must: - change the source and target versions to 7 in the tools/jdk:toolchain target, - use the .travis/jdk7.WORKSPACE file instead of the default Bazel workspace (it contains a maven_jar refering to the errorprone's java compiler tools), and - set the JAVA_VERSION environent variable to "1.7". The .travis/build.sh script does just that when under OS X. -- Change-Id: Idb466cf47cf7df35a34fb0dd8d186628aae0cba7 Reviewed-on: https://bazel-review.googlesource.com/#/c/1520/ MOS_MIGRATED_REVID=96011123
* Use the ijar ZIP implementation in Blaze instead of libarchiveGravatar Damien Martin-Guillerez2015-06-01
| | | | | | | | | | | This ZIP implementation is lightweight and rely on zlib for compression. libarchive was a bit tricky to set-up so it's better to use that one. -- Change-Id: I607b492998572e834e095a4606eeb77c0b574542 Reviewed-on: https://bazel-review.googlesource.com/#/c/1410/ MOS_MIGRATED_REVID=94910072
* Fix %O format string in ijar's zipperGravatar Damien Martin-Guillerez2015-06-01
| | | | | | | | | Also remove the leading slash when flattening files Fixes #219. -- MOS_MIGRATED_REVID=94751441
* Refactor ZIP implementation of ijarGravatar Damien Martin-Guillerez2015-05-28
| | | | | | | | | | | | | | | | | | | | It extracts Zip/Unzip methods of ijar in a separate library. A zipper binary is provided to test that implementation outside. Note that this implementation does not compute CRC-32 and unzip will complain on file zipped with it (but Java won't complain). The error handling has been replaced to use proper error reporting instead of launching abort()'s allover the place so ijar's zip library can be used outside of ijar. Finally, support for ZIP preamble has been added to handle self-extractable ZIP files. -- Change-Id: I833034b4c0054925bada75102fe040db875da789 Reviewed-on: https://bazel-review.googlesource.com/#/c/1371/ MOS_MIGRATED_REVID=94656262
* Improved ijar shell testsGravatar Damien Martin-Guillerez2015-05-04
| | | | | | | | | | | | | | | | | | | The ijar tests were a bit bloated so using our shell test framework to separate those tests into individual function and enable sharding. The ijar tests are still ~70s on a macbook with a SSD drive (compared to ~140s before). Those 70s are spent in tests that write big files and test ijar behavior with those big files. In those tests, disk IOs dominate time. Timing the various operation gave that jaring the 2.2Gb large file takes ~17s each time (operation we do twice). Simply creating that file takes approximatively 10s. Reducing the number of operations in that test would reduce significantly its duration. Unfortunately, that would reduce the coverage of the test. -- Change-Id: Idc817ab32b78b69bde8dd95ddedbcf6b9f12ee3f MOS_MIGRATED_REVID=92723971
* Open-source ijar's testsGravatar Damien Martin-Guillerez2015-03-10
-- MOS_MIGRATED_REVID=88210083