summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/tar01 (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-04-12testsuites/libtests/[m-z]*: Change license to BSD-2Joel Sherrill1-3/+22
Updates #3053.
2022-04-07testsuites/libtests/[p-z]*: Change license to BSD-2Joel Sherrill1-3/+22
Updates #3053.
2021-12-09untar: Make behavior similar to GNU or BSD tarChristian Mauderer4-9/+245
RTEMS untar implementation had problems with overwriting or integrating archives into existing directory structures. This patch adapts the behavior to mimic that of a GNU tar or BSD tar and extends the tar01 test to check for the behavior. That is: * If a directory structure exists, the files from the archive will be integrated. Existing files are overwritten. * If a file exists and the archive contains a directory with the same name, the file is removed and a directory is created. In the above example: if l1/l2 is a file it will be overwritten with a new directory. * If a directory exists and the archive contains a file with the same name, the directory will be replaced if it is empty. If it contains files, the result is an error. * An archive also can contain only a file without the parent directories. If in that case one of the parent directories exists as a file extracting the archive results in an error. In the example: if l1/l2 is a file and the archive doesn't contain the directories but only the file l1/l2/x.txt that would be an error. * In case of an error, it is possible that the archive has been partially extracted. Closes #4568
2020-05-08libtests/tar01: Remove files of tar01.tar archiveSebastian Huber3-5/+0
Update #3968.
2020-05-07libtests/tar0[12]: Add tar archiveSebastian Huber1-0/+0
Do not generate the test tar archive on the host computer since not all file systems support symbolic links. Close #3968.
2019-12-19config: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORSSebastian Huber1-1/+1
Rename CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS into CONFIGURE_MAXIMUM_FILE_DESCRIPTORS. Update #3753.
2019-11-26untar: Properly make parent pathSebastian Huber2-15/+15
Close #3823.
2019-11-25libtests: Use '-' for TAR file namesSebastian Huber1-3/+3
Use uniform pattern for all TAR file names. Use the dl* tests as a template. Update #3818.
2019-11-25libtests/tar0[12]:: Use static archive contentSebastian Huber3-0/+5
This simplifies the build process. Do not generate the archive content through the build system. Let the version control system deal with symbolic links. Update #3818.
2018-04-10testsuite/libtests: Merged nested Makefile.am files into one Makefile.amChris Johns2-124/+9
This change is part of the testsuite Makefile.am reorganization. Update #3382
2017-11-06tests: Use simple console driverSebastian Huber1-1/+1
Update #3170. Update #3199.
2017-10-28tests: Remove TEST_INITSebastian Huber1-2/+0
The TEST_EXTERN is a used only by the system.h style tests and they use CONFIGURE_INIT appropriately. Update #3170. Update #3199.
2017-10-28tests: Use rtems_test_printerSebastian Huber1-16/+13
Update #3170. Update #3199.
2017-10-23testsuite: Use printk for all test output where possible.Chris Johns1-0/+2
- Remove the printf support leaving the direct printk support configured with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf call to printk. - Control the test's single init for functions and global data with TEST_INIT and not CONFIGURE_INIT. They are now separate. Updates #3170.
2017-10-21libtests/tar01: Fix build dependenciesSebastian Huber1-2/+7
2017-07-18tests: Use floating point taskSebastian Huber1-0/+2
These tests directly or indirectly use fprintf(), etc. which may use the floating point unit. Update #3076.
2017-06-13tests: Fix build dependenciesSebastian Huber1-1/+6
See also: https://www.gnu.org/software/automake/manual/html_node/Built-Sources-Example.html
2017-05-11testsuites: Fix build dependences for generated files.Chris Johns1-0/+4
2016-10-13libmisc/xz: Add xz decompression.Chris Johns2-4/+96
Add support to untar XZ compressed files.
2016-08-09libmisc/untar: Set the perms to the value in the tar file.Chris Johns2-1/+34
This patch parses the mode field in the tar header and sets the directory or file to the mode value in the header. Closes #2768.
2016-07-26Add Untar_FromGzChunk_Print() + TestAlexander Krutwig4-4/+85
2016-07-26Add Untar_FromChunk_Print() + TestAlexander Krutwig3-0/+54
2016-06-03libmisc/untar: Support directory create and overwrites. Share the common code.Chris Johns1-3/+6
Support creating directories for files with a path depth greater than 1. Some tar files can have files with a path depth greater than 1 and no directory entry in the tar file to create a directory. Support overwriting existing files and directories failing in a similar way to tar on common hosts. If a file is replaced with a file delete the file and create a new file. If a directory replaces a file remove the file and create the directory. If a file replaces a directory remove the directory, and if the directory is not empty and cannot be removed report an error. If a directory alreday exists do nothing leaving the contents untouched. The untar code now shares the common header parsing and initial processing with the actual writes still separate. No changes to the IMFS have been made. Updates #2415. Closes #2207.
2014-12-16Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEMSebastian Huber1-1/+0
This define was superfluous, undocumented and used inconsistently.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns2-2/+2
2014-03-20tests/libtests: Use <rtems/test.h>Sebastian Huber1-2/+6
2012-05-11libtmtests - Eliminate missing prototype warningsJoel Sherrill1-1/+6
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill3-9/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2012-05-07Revert: Remove CVS IdsJoel Sherrill1-0/+4
See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html for details.
2012-05-04Remove CVS-Ids.Ralf Corsépius1-4/+0
2012-02-01Remove all .cvsignore files.Joel Sherrill1-2/+0
2011-12-082011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+1
PR 1589/build * block01/Makefile.am, block02/Makefile.am, block03/Makefile.am, block04/Makefile.am, block05/Makefile.am, block06/Makefile.am, block07/Makefile.am, block08/Makefile.am, block09/Makefile.am, block10/Makefile.am, bspcmdline01/Makefile.am, cpuuse/Makefile.am, devfs01/Makefile.am, devfs02/Makefile.am, devfs03/Makefile.am, devfs04/Makefile.am, deviceio01/Makefile.am, devnullfatal01/Makefile.am, dumpbuf01/Makefile.am, ftp01/Makefile.am, gxx01/Makefile.am, heapwalk/Makefile.am, malloc02/Makefile.am, malloc03/Makefile.am, malloc04/Makefile.am, malloc05/Makefile.am, malloctest/Makefile.am, monitor/Makefile.am, monitor02/Makefile.am, mouse01/Makefile.am, putenvtest/Makefile.am, rtems++/Makefile.am, rtmonuse/Makefile.am, stackchk/Makefile.am, stackchk01/Makefile.am, stringto01/Makefile.am, tar01/Makefile.am, tar02/Makefile.am, tar03/Makefile.am, termios/Makefile.am, termios01/Makefile.am, termios02/Makefile.am, termios03/Makefile.am, termios04/Makefile.am, termios05/Makefile.am, termios06/Makefile.am, termios07/Makefile.am, termios08/Makefile.am, tztest/Makefile.am: Remove obsolete optional manager capability.
2011-06-202011-06-20 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-0/+1
* devfs04/Makefile.am, deviceio01/Makefile.am, monitor02/Makefile.am, stackchk01/Makefile.am, stringto01/Makefile.am, tar01/Makefile.am, tar02/Makefile.am, termios01/Makefile.am, termios03/Makefile.am, termios04/Makefile.am tztest/Makefile.am: Add missing files.
2011-04-052011-04-05 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber1-10/+11
* tar01/init.c: Fixed integer types.
2011-02-22Add HAVE_CONFIG_H.Ralf Corsepius1-0/+4
2010-07-312010-07-31 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-2/+3
* tar01/Makefile.am, tar02/Makefile.am: Apply clean-local to remove intital_fs directory.
2010-07-302010-07-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-0/+4
* tar01/Makefile.am, tar02/Makefile.am: Apply TARTESTS.
2010-07-30Fix typo.Ralf Corsepius1-1/+1
2010-07-302010-07-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-4/+3
* tar01/Makefile.am: Apply $LN_S, $PAX. Use subshell for tarball creation. Don't add initial_fs to CLEANFILES. * tar02/Makefile.am: Apply $LN_S, $PAX. Use subshell for tarball creation.
2010-07-302010-07-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-5/+1
* tar01/Makefile.am, tar02/Makefile.am: Eliminate stamp-filesystem.
2010-07-302010-07-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-0/+2
* tar01/Makefile.am, tar02/Makefile.am: Add BUILT_SOURCES.
2010-07-302010-06-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-12/+12
* configure.ac: autoconf >= 2.65, automake >= 1.11.
2010-07-292010-07-29 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill1-4/+7
* tar01/Makefile.am, tar02/Makefile.am: Fix dependencies for parallel build.
2010-07-292010-07-29 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-2/+1
* tar01/Makefile.am, tar02/Makefile.am: Replace mkdir cascade with $(MKDIR_P).
2010-07-292010-07-29 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-5/+2
* tar01/Makefile.am, tar02/Makefile.am: Misc. fixes.
2010-07-29Remove MANAGERS.Ralf Corsepius1-2/+0
2010-07-272010-07-27 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill5-0/+223
PR 1532/testing * Makefile.am, configure.ac: Add initial tests for untar capabilities. * tar01/.cvsignore, tar01/Makefile.am, tar01/init.c, tar01/tar01.doc, tar01/tar01.scn, tar02/.cvsignore, tar02/Makefile.am, tar02/init.c, tar02/tar02.doc, tar02/tar02.scn: New files.