summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/tar01/init.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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-091-1/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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-261-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.
* testsuite/libtests: Merged nested Makefile.am files into one Makefile.amChris Johns2018-04-101-9/+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.
* 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.
* libmisc/xz: Add xz decompression.Chris Johns2016-10-131-3/+71
| | | | Add support to untar XZ compressed files.
* libmisc/untar: Set the perms to the value in the tar file.Chris Johns2016-08-091-0/+30
| | | | | | | 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-261-0/+45
|
* Add Untar_FromChunk_Print() + TestAlexander Krutwig2016-07-261-0/+41
|
* 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-211-1/+1
|
* 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-111-2/+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.
* 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-27 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-07-271-0/+122
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.