summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Replace another instance of realpath; add quiet test on platformsStephane Peter2023-03-112-2/+6
|
* Needed to update testlinter script for readlinkStephane Peter2023-03-111-1/+1
|
* Use the more compatible `readlink -f` instead of `realpath` in tests.Stephane Peter2023-03-1114-14/+14
|
* Use readlink to help on NetBSDStephane Peter2022-10-261-1/+1
|
* move from bashunit to shunit2. refactoring tests. (#272)Alexandr Reshetnikov2022-06-1117-158/+232
| | | | | | | | | * move from bashunit to shunit2 move run-tests.sh to test simplify build.yml * back shunit2 to submodule
* signtest: more and better (#258)realtime-neil2021-09-241-32/+278
| | | | | | | | | | | | | | | | | | | | | | | | update `test/signtest` with the following improvements: * add function `cat_key` to manage secret keys as heredocs of ascii-armored content * add function `checked_import_key` to manage/verify secret key imports * add function `create_sign_verify` to create, sign, and verify signatures on makeself archives * remove the two existing tests and add four new tests: * `testSingleKey`: test simple sign/verify with one existing key * `testMultipleKeys`: test more complicated sign/verify when more than one key is present (this would have caught issue #257) * `testWrongKey`: ensure that using the wrong key fails signature verification * `testWrongPassword`: ensure that using the wrong password fails to create a signature
* fix #254: allow and sanitize lsm files without trailing newlines (#255)realtime-neil2021-08-221-0/+48
| | | | | | | * edit `makeself.sh`: change the LSM_CMD from `cat` to `awk 1` when generating the LSM content into the archive * add `test/lsmtest`: verify the correct functionality of three different LSM files; i.e., empty, single line, and single line without trailing newline.
* GPG signature improvements for compatibilityStephane Peter2021-04-291-12/+13
|
* Add signature verification option (#241)AXsagi2021-04-282-0/+43
| | | Co-authored-by: Stéphane Peter <megastep@megastep.org>
* Use realpath after file was createdStephane Peter2021-03-171-0/+1
|
* Can't reliably use realpath on non-existent filesStephane Peter2021-03-171-1/+1
|
* Fix typo and add test run script instead of all through the MakefileStephane Peter2021-03-171-0/+0
|
* fix #235: remove $OSTYPE from header (#236)realtime-neil2020-12-211-0/+122
| | | | | * fix #235: remove $OSTYPE from header * account for current release with VERSION file
* fix #231: get --append working with --compress (#232)realtime-neil2020-11-281-44/+81
| | | | | | | | | | | | | | | | | | | | | | | | The decompression command specified by `--compress` does not match the semantics required by the `--append` operation. Change the decompression command for the `--compress` to match those of the other compression options. edit `makeself.sh`: * try to locate `gzip` and `compress` commands and set the `COMPRESS` variable appropriately. Change `COMPRESS` value for `compress` from `Unix` to `compress`. * change switch block to match new value * change `GUNZIP_CMD` from `exec` expression to subshell that uses either `compress` (detected) or `gzip` (default) * in the append extraction, `eval "$GUNZIP_CMD"` edit `test/appendtest`: * be clever with the way we setup the test archives * test every compression option, if we have the required command
* Added test for truncated archivesStephane Peter2020-10-161-1/+12
|
* Added unit test to check for corrupted archiveStephane Peter2020-10-141-0/+27
|
* Fix archive dir (#219)Andy Neff2020-07-061-0/+51
| | | | | | | | | | | | | | | | | * Add test to check ARCHIVE_DIR variable Signed-off-by: Andy Neff <andy@visionsystemsinc.com> * Fix not handling spaces correctly Signed-off-by: Andy Neff <andy@visionsystemsinc.com> * Test two more vars Signed-off-by: Andy Neff <andy@visionsystemsinc.com> * Made test simplier and dash compliant Signed-off-by: Andy Neff <andy@visionsystemsinc.com>
* Cosmetic changesStephane Peter2020-06-171-0/+1
|
* Fix append (#217)Andy Neff2020-06-171-1/+15
| | | | | | | | | | | | | | | * Fix initial bug Signed-off-by: Andy Neff <andy@visionsystemsinc.com> * Improve append test a little - Make the append test require the files get bigger at least Signed-off-by: Andy Neff <andy@visionsystemsinc.com> * Better append test improvement Signed-off-by: Andy Neff <andy@visionsystemsinc.com>
* Preliminary support for zstd compression (#210)Stephane Peter2020-04-271-0/+9
|
* Skip pbzip2 extract test if command not available (i.e. Windows)Stephane Peter2020-03-051-0/+2
|
* Printing content of license file (#197) (#198)Michal Hagara2020-02-061-1/+1
| | | | | | | Printing path to the file instead of content of the file was introduced in 56c742bd90ebcb22feaff4d78ae4e62e72ffc7ad Reverting parsing of the license file to the way it was before that commit and escaping argument with quotes to address the original issue
* Switch from readlink to more portable realpathStephane Peter2019-09-153-3/+3
|
* Fix #48 --append functionality (#174)Timothy Brackett2019-09-131-3/+23
| | | | | | | | | | | | | | * Fix #48 --append functionality * Fix #48 --append functionality Also adds some additional testing to the appendtest to catch previously uncaught failure modes. * Use size of uncompressed tar for USIZE Change covers the corner case where files are updated in the archive during an --append. Removes the necessity for the OLDUSIZE variable.
* fix #167: whitespace license path (#168)realtime-neil2019-08-041-0/+63
|
* Issue #152 (#157)Mirko Serra2019-02-153-6/+40
| | | | | | | | | | | | * Added option chown and made nochown default. This can also be specified at creation of the file * Added test. makeself default invocation shouldn't destroy suid bits * Typo. Corrected description of --nochown and --chown * Corrected datetest not working on computers with different locale * Small change to directory name and remove duplicated line
* stable sort, even with whitespace paths (#153)realtime-neil2019-01-301-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | * don't use `xargs -0` because it's not well supported * use `sed 's/./\\&/g'` to properly quote whitespace in paths * add test unit for whitespace-containing paths This patch addresses comments made in github pull request #151 regarding whitespace-containing filenames and stable sorted inputs. References on lacking `xargs -0`: * http://nixdoc.net/man-pages/HP-UX/man1/xargs.1.html * http://nixdoc.net/man-pages/IRIX/man1/xargs.1.html * http://nixdoc.net/man-pages/Tru64/man1/xargs.1.html * https://www.unix.com/man-page/sunos/1/xargs References on using find with xargs: * http://www.etalabs.net/sh_tricks.html
* Fix unit tests so they fail when there are failures (#148)George2018-12-113-5/+34
| | | | | | * add append unit test before changes to fix append. Note the assert change, since it always passed before * fix the unit tests so they fail when appropriate, at least on osx
* Add unit test for `--tar-extra` option (#109)Denys Havrysh2017-07-191-0/+28
|
* Must install pbzip2 in TravisStephane Peter2017-05-041-1/+1
|
* Added more unit tests for checking extraction integrityStephane Peter2017-05-041-0/+49
|
* Moved common setup steps in its own functionStephane Peter2017-05-041-23/+11
|
* Fixed testDateSetStephane Peter2017-05-041-1/+0
|
* Add option --package-time to set the packaging date.Marc Pawlowsky2016-03-051-0/+131
| | | | | Needed to enable the byte-for-byte identical package when packaging the same source twice.
* Add submodule bashunit so we can do a little bit of unit testing.Marc Pawlowsky2016-03-051-0/+0