summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/tar01 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* testsuites/libtests/[m-z]*: Change license to BSD-2Joel Sherrill2022-04-121-3/+22
| | | | Updates #3053.
* testsuites/libtests/[p-z]*: Change license to BSD-2Joel Sherrill2022-04-071-3/+22
| | | | Updates #3053.
* untar: Make behavior similar to GNU or BSD tarChristian Mauderer2021-12-094-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
* libtests/tar01: Remove files of tar01.tar archiveSebastian Huber2020-05-083-5/+0
| | | | Update #3968.
* libtests/tar0[12]: Add tar archiveSebastian Huber2020-05-071-0/+0
| | | | | | | Do not generate the test tar archive on the host computer since not all file systems support symbolic links. Close #3968.
* config: CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORSSebastian Huber2019-12-191-1/+1
| | | | | | | Rename CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS into CONFIGURE_MAXIMUM_FILE_DESCRIPTORS. Update #3753.
* untar: Properly make parent pathSebastian Huber2019-11-262-15/+15
| | | | Close #3823.
* libtests: Use '-' for TAR file namesSebastian Huber2019-11-251-3/+3
| | | | | | | Use uniform pattern for all TAR file names. Use the dl* tests as a template. Update #3818.
* libtests/tar0[12]:: Use static archive contentSebastian Huber2019-11-253-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.
* testsuite/libtests: Merged nested Makefile.am files into one Makefile.amChris Johns2018-04-102-124/+9
| | | | | | This change is part of the testsuite Makefile.am reorganization. Update #3382
* tests: Use simple console driverSebastian Huber2017-11-061-1/+1
| | | | | Update #3170. Update #3199.
* tests: Remove TEST_INITSebastian Huber2017-10-281-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.
* tests: Use rtems_test_printerSebastian Huber2017-10-281-16/+13
| | | | | Update #3170. Update #3199.
* testsuite: Use printk for all test output where possible.Chris Johns2017-10-231-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.
* libtests/tar01: Fix build dependenciesSebastian Huber2017-10-211-2/+7
|
* tests: Use floating point taskSebastian Huber2017-07-181-0/+2
| | | | | | | These tests directly or indirectly use fprintf(), etc. which may use the floating point unit. Update #3076.
* tests: Fix build dependenciesSebastian Huber2017-06-131-1/+6
| | | | | | See also: https://www.gnu.org/software/automake/manual/html_node/Built-Sources-Example.html
* testsuites: Fix build dependences for generated files.Chris Johns2017-05-111-0/+4
|
* libmisc/xz: Add xz decompression.Chris Johns2016-10-132-4/+96
| | | | Add support to untar XZ compressed files.
* libmisc/untar: Set the perms to the value in the tar file.Chris Johns2016-08-092-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.
* Add Untar_FromGzChunk_Print() + TestAlexander Krutwig2016-07-264-4/+85
|
* Add Untar_FromChunk_Print() + TestAlexander Krutwig2016-07-263-0/+54
|
* libmisc/untar: Support directory create and overwrites. Share the common code.Chris Johns2016-06-031-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.
* Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEMSebastian Huber2014-12-161-1/+0
| | | | This define was superfluous, undocumented and used inconsistently.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-212-2/+2
|
* tests/libtests: Use <rtems/test.h>Sebastian Huber2014-03-201-2/+6
|
* libtmtests - Eliminate missing prototype warningsJoel Sherrill2012-05-111-1/+6
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-113-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.
* Revert: Remove CVS IdsJoel Sherrill2012-05-071-0/+4
| | | | | See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html for details.
* Remove CVS-Ids.Ralf Corsépius2012-05-041-4/+0
|
* Remove all .cvsignore files.Joel Sherrill2012-02-011-2/+0
|
* 2011-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2011-12-081-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-20 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-06-201-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-05 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-04-051-10/+11
| | | | * tar01/init.c: Fixed integer types.
* Add HAVE_CONFIG_H.Ralf Corsepius2011-02-221-0/+4
|
* 2010-07-31 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-07-311-2/+3
| | | | | * tar01/Makefile.am, tar02/Makefile.am: Apply clean-local to remove intital_fs directory.
* 2010-07-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-07-301-0/+4
| | | | * tar01/Makefile.am, tar02/Makefile.am: Apply TARTESTS.
* Fix typo.Ralf Corsepius2010-07-301-1/+1
|
* 2010-07-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-07-301-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-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-07-301-5/+1
| | | | | * tar01/Makefile.am, tar02/Makefile.am: Eliminate stamp-filesystem.
* 2010-07-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-07-301-0/+2
| | | | | * tar01/Makefile.am, tar02/Makefile.am: Add BUILT_SOURCES.
* 2010-06-23 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-07-301-12/+12
| | | | * configure.ac: autoconf >= 2.65, automake >= 1.11.
* 2010-07-29 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-07-291-4/+7
| | | | | * tar01/Makefile.am, tar02/Makefile.am: Fix dependencies for parallel build.
* 2010-07-29 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-07-291-2/+1
| | | | | * tar01/Makefile.am, tar02/Makefile.am: Replace mkdir cascade with $(MKDIR_P).
* 2010-07-29 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-07-291-5/+2
| | | | * tar01/Makefile.am, tar02/Makefile.am: Misc. fixes.
* Remove MANAGERS.Ralf Corsepius2010-07-291-2/+0
|
* 2010-07-27 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-07-275-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.