summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Remove outdated tests from test/attr.testAndreas Gruenbacher2015-03-031-4/+0
| | | | | | Extended attributes are not accounted for in the real file size on most file systems, not even in ext* file systems with large inodes. Remove the associated tests.
* Remove test/ext/fs.testAndreas Gruenbacher2015-03-032-72/+1
| | | | | These tests don't do anything useful anymore on most ext4 file systemms, so remove it.
* Properly set and report empty attribute valuesAndreas Gruenbacher2015-02-201-8/+18
| | | | | | | Change getfattr to print empty attribute values as "" (including the quotes), 0x, or 0s, depending on the encoding chosen. Fix setfattr to set empty attribute values when the value specified is an empty string; before, an encoded empty value like "" (including the quotes) had to be specified.
* test: fix cleanup & running as rootMike Frysinger2014-01-134-4/+20
| | | | | | | | | | | This fixes a bug when doing the cleanup of tests in a subdir by making sure we chdir back to our starting point. We also move the root test out of XFAIL and instead do the root checking at runtime. If we are root, the test passes nicely, otherwise it marks itself as SKIP quickly. These are fixing issues noticed when doing the update to libacl.
* modernize build systemMike Frysinger2014-01-092-49/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This deletes the hand rolled build system and replaces it entirely with autotools. The overall diffstat shows that this is a clear win, and it makes the package build/install like every other autotool package out there which makes the lives of distro maintainers a lot easier. This should also be faster by virtue of using a non-recursive build. Things to note: - to generate autotools: ./autogen.sh - to see full compile output: make V=1 - to build specific targets: make attr getfattr ... - to run tests: make check - to create a release: make distcheck -j Other non-developer things: - the xattr.conf file is now installed into sysconfdir by default - man pages are no longer compressed as this is uncommon in the autotools world and distros don't need it anyways (they already handle it automatically for most pakages) - the minor # of the shared library is now based on the package version so it'll be much bigger ... this isn't a problem, and is actually a bugfix (older releases didn't change when they should have) (Again, this is all using the standard autotool targets.)
* test: make running parallel/out-of-tree safeMike Frysinger2014-01-093-22/+46
| | | | | | | | | | Change the run program to update PATH to find the tools locally automatically. This lets us avoid having to always build in the tree and allows for direct running. Also update the program to create a tempdir for each test to run inside of. This way we can run all the tests in parallel without randomly clobbering each other.
* test: fix on selinux systemsBrandon Philips2013-04-301-2/+2
| | | | | additional 'security.selinux' attrs appear on selinux systems, filter them out to get the tests to pass.
* getfattr: return non-zero exit code on failureKamil Dudka2011-05-271-0/+4
| | | | reported by Jean-Pierre André at https://bugzilla.redhat.com/660619
* walk_tree: do not follow symlink to directory with -hKamil Dudka2011-05-252-7/+9
| | | | reported by Jean-Pierre André at https://bugzilla.redhat.com/660613
* test: fix root tests with sortingBrandon Philips2011-04-191-18/+17
| | | | The root tests were not piped through the sorting program. Fix this.
* test: Add sort-getfattr-output to source filesBrandon Philips2011-04-191-1/+1
| | | | test/sort-getfattr-output was missing from the tarball. Add it.
* attr.test: fix tests after "Stop quoting nonprintable characters in the ↵Andreas Gruenbacher2009-07-311-8/+8
| | | | | | | getfattr output" after 6824f9c68225388c8c7a9e887a21f0aa222c3571 getfattr outputs \ooo style characters in fewer cases. Fix the test case to match.
* test/run: fix lt- prefix from libtool wrappersBrandon Philips2009-06-221-0/+2
| | | | | | | | | On some platforms libtool prefixes the in-tree binaries under .libs with "lt-". This causes the tests to break. This patch removes the lt- prefix from program error output. A discussion on the issue is here: http://lists.gnu.org/archive/html/libtool/2009-05/msg00042.html
* More license updatesAndreas Gruenbacher2009-05-122-8/+20
| | | | | | | | | | | | | Clarify some license notices to specifically refer to GPLv2+ instead of only referring to GPL without version. (Most of the sloppy license headers slipped in unnoticed; the changes were acked by Felix Blyakher <felixb@sgi.com> on behalf of SGI on 8 April 2009.) Add license headers to a number of small files which were only licenses as GPLv2+ implicitly so far. Refer to this package as "this program" rather than "Attr" throughout the license notices; this simplifies sharing files among packages.
* Fix wrong license noticesAndreas Gruenbacher2009-03-111-1/+1
| | | | | | | | Some of the license notices added in commit f36cdfd are wrongly referring to GPLv2.1. This is wrong; the proper licenses that the notices should refer to are GPLv2, and LGPLv2.1. Fix this mistake. Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
* Add copyright and license notices to lots of filesAndreas Gruenbacher2009-03-101-0/+16
| | | | Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
* Add a small script for sorting the getfattr outputAndreas Gruenbacher2009-02-233-22/+121
| | | | | | | Instead of using grep and sort, use a small perl script for sorting the getfattr output. That way, the test remains more obvious. This reverts commit aeaf2d577c10f42dbc21e8d7370ee9cf37e5667e.
* Make all the tests readdir order independentAndreas Gruenbacher2009-02-232-115/+24
| | | | | | | | When reading directories, different filesystems return files in different orders. Some tests depended on a specific order; remove this dependency by sorting the results before checking them. Signed-off: Andreas Gruenbacher <agruen@suse.de>
* Add root tests to tarballs as wellAndreas Gruenbacher2009-02-231-1/+1
| | | | Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
* Move getfattr.test to root/Brandon Philips2009-02-232-1/+6
| | | | | | This test requires root privileges. Signed-off-by: Brandon Philips <bphilips@suse.de>
* attr: add make tests target and use make to run testsBrandon Philips2009-02-232-4/+22
| | | | | | | | | | The tests are difficult to run. So, this patch adds a Make target that sets up the path and runs *.test files in the test/ directory. ext specific tests can be ran from the test directory by running `make ext-tests` Signed-off-by: Brandon Philips <bphilips@suse.de>
* attr: Tests for path recursion with -L -P -RBrandon Philips2009-02-231-0/+116
| | | | | | Add tests against patches from Andreas to fix up walk_tree.c. Signed-off-by: Brandon Philips <bphilips@suse.de>
* attr: move ext2/3 tests into seperate test file.Brandon Philips2009-02-232-48/+111
| | | | | | | Some of these tests are fs specific and don't work under newer ext3 disks. Move into a seperate directory and file. Signed-off-by: Brandon Philips <bphilips@suse.de>
* Create two ENV variables TUSER and TGROUP to get the user/group running the testBrandon Philips2009-02-231-0/+3
| | | | | Signed-off-by: Brandon Philips <bphilips@suse.de> Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
* Update the run script to a more recent versionAndreas Gruenbacher2009-02-231-18/+69
| | | | | | | | | | | | | Avoid a warning: main::process_test() called too early to check prototype at ./run line 47. main::process_test() called too early to check prototype at ./run line 60. Add a >~ test line that is similar to > but is interpreted as a regular expression. Signed-off-by: Brandon Philips <bphilips@suse.de> Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
* Add some code to the tree walking to better handle file descriptors.Tim Shimmin2007-12-041-16/+87
| | | | Merge of master-melb:xfs-cmds:30192a by kenmcd.
* fix up tree walking for symlinksTim Shimmin2007-11-212-29/+76
| | | | Merge of master-melb:xfs-cmds:30105a by kenmcd.
* Update copyright annotations and license boilerplates to correspond with SGI ↵Nathan Scott2005-11-091-28/+0
| | | | | | Legals preferences. Merge of master-melb:xfs-cmds:24326a by kenmcd.
* attr updates from Andreas - emphasis on improved handling of special ↵Nathan Scott2003-07-212-244/+418
| | | | characters, and creates an little library for helper functions
* Updates from AndreasG.Nathan Scott2002-09-071-8/+12
|
* minor updates from Andreas.Nathan Scott2002-09-041-0/+1
|
* Update copyright dates (again)Eric Sandeen2002-06-041-1/+1
|
* Undoes mod: xfs-cmds:slinx:120772aEric Sandeen2002-06-041-1/+1
| | | | Undo xfs-cmds:slinx:120772a, inadvertently whacked a previous mod.
* Update copyright datesEric Sandeen2002-06-041-1/+1
|
* updates from Andreas -man page update, additional test cases.Nathan Scott2002-04-221-0/+8
|
* man page and test script updates from Andreas. fix syscall numberingNathan Scott2002-03-111-0/+22
| | | | | a/ on sparc (fremovexattr was wrong) and b/ if arch doesn't have numbers defined yet, handle it cleanly (errno.h missing).
* merge changes from Andreas - test scripts updates, setfacl bug fix.Nathan Scott2002-03-051-0/+14
|
* bump version, incorporate Andreas test update & ARM syscalls.Nathan Scott2002-02-281-57/+149
|
* Merge of xfs-cmds-2.4.18:slinx:112273a by nathans.Nathan Scott2002-02-251-1/+1
| | | | sync up with patch from AndreasG, mainly creates libattr.rpm/deb.
* Merge of xfs-cmds-2.4.18:slinx:111138a by nathans.Nathan Scott2002-02-254-0/+276
bump to version 2.0.0 for extended attribute and other interface changes. incorporate new code, docs, etc from ext2/ext3 project.