summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* test_sysinfo: fix printf formatKarel Zak2011-06-141-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* test_sysinfo: Use CHAR_BIT*sizeof(void*) instead of __WORDSIZE.Josiah Worcester2011-06-141-1/+1
| | | | Signed-off-by: Josiah Worcester <josiahw@gmail.com>
* tests: update blkid MD testKarel Zak2011-06-091-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use top-level directory for libblkid rather than shlibs/blkidKarel Zak2011-06-091-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use top-level directory for libmount rather than shlibs/mountKarel Zak2011-06-091-7/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use top-level directory for libuuid rather than shlibs/uuidKarel Zak2011-06-091-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add lscpu dumps from three Dell's & a XenSami Kerola2011-06-088-0/+121
| | | | | | | | | | | | | | | | x86_64-dell_poweredgeR610 Ubuntu 11.04 kernel 2.6.38-8 x86_64-dell_poweredge1950 Red Hat EL 4.5 kernel 2.6.9-55.ELsmp x86_64-dell_e4310 Red Hat EL 5.3 kernel 2.6.18-194.17.4.el5 x86_64-el5xen Red Hat EL 5.6 kernel 2.6.18-238.el5xen Signed-off-by: Sami Kerola <sami.kerola@tomtom.com>
* tests: add colrm basic testSami Kerola2011-06-013-0/+30
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* This adds a second parameter to size_to_human_string() to return aFrancesco Cosoleto2011-05-261-26/+26
| | | | | | | | | | | | | | | string with a different format based on the following flags: SIZE_SUFFIX_1LETTER = "1K" SIZE_SUFFIX_3LETTER = "1KiB", SIZE_SUFFIX_SPACE = "1 KiB" or "1 K" [kzak@redhat.com: - rename flags to SIZE_SUFFIX_* format, - fix suffix[] buffer size - add 3 letter version to the test] Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: test column(1) with multiple input filesKarel Zak2011-05-262-0/+42
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'column' of git://github.com/kerolasa/lelux-utiliteetit into columnKarel Zak2011-05-268-0/+83
|\ | | | | | | | | | | | | | | | | | | | | | | * 'column' of git://github.com/kerolasa/lelux-utiliteetit: tests: add column tests column.c: global variables removed column.c: validate numeric user inputs column.c: free memory before exit column.c: make table function clarification column.c: coding style fixes column.c: add version printing column.c: replace emalloc with xcalloc
| * tests: add column testsSami Kerola2011-05-198-0/+83
| | | | | | | | | | | | | | | | Very basic regression tests for the column(1) command. http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/4066 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | tests: update for recent fdisk changesKarel Zak2011-05-169-91/+115
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: add mount(8) test for fstab entries without optionsKarel Zak2011-05-114-0/+66
|/ | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add mnt_tabdiff_* functionsKarel Zak2011-04-2610-0/+132
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add support for x-* mount commentsKarel Zak2011-04-213-4/+4
| | | | | | | | | | | | | | | | | | | | | | | The current way how add any comment or extra information to /etc/fstab is to use comment="" mount option. This is not too elegant and readable if you want to add more than one comment. It seems better to add any generic prefix that will be used for all 3rd-party userspace mount options. Expected syntax is: x-<application>-<options>[=<data>] For example: x-systemd-bar=managed All x-* options (as well as comment=) are ignored by libmount and not stored to the mtab file. Requested-by: Lennart Poettering <lennart@poettering.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: don't run mount/regfile test on old kernelKarel Zak2011-04-191-1/+8
| | | | | | The /sys/.../loop/backing_file is available since 2.6.37. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add test for RLIMIT_FSIZE issueKarel Zak2011-04-194-0/+81
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use libmount tab update tests for UID=0 onlyKarel Zak2011-04-191-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: remove test for non-zero head count in FAT superblock probe.Nick Holloway2011-04-122-0/+8
| | | | | | | | | | | | | | This change enables the auto-detection of the internal storage on a VTech Kidizoom camera, which has a zero head count value in the superblock. Microsoft documentation, "FAT: General Overview of On-Disk Format", states that the sectors and heads fields are only relevant for media that have a geometry. The Linux kernel also does not require a non-zero head count, and can manually mount the filesystem. Signed-off-by: Nick Holloway <Nick.Holloway@pyrites.org.uk>
* tests: add dump from PPC64 to lscpu testsKarel Zak2011-03-312-0/+31
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: detect sun4{u,v} in /proc/cpuinfo for sparc64Karel Zak2011-03-311-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add dump from UltraSparc T1 to lscpu testsKarel Zak2011-03-312-0/+37
| | | | | | Thanks to Jan Engelhardt. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add dump from huge ia64 to lscpu testsKarel Zak2011-03-312-0/+654
| | | | | | Thanks to Jan Engelhardt. Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: fix op-mode for /{sys,proc} dumpsKarel Zak2011-03-311-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update GPT testKarel Zak2011-03-111-5/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update libmount tests (add optstr output)Karel Zak2011-02-2316-2/+76
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add tests for [u]mount regular fileKarel Zak2011-02-212-0/+31
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [strutils] avoid integer overflow on large valuesDave Reisner2011-02-151-26/+26
| | | | | | | | | | | | | | This is visible on a 2TB disk via lsblk, where a large partition incorrectly displays as 1.171798692T instead of 1.8T. This is corrected by using a uint64_t type instead of a simple int -- consistant with the type used in lsblk.c to represent the raw size in bytes. [kzak@redhat.com: - add EiB support - add size_to_human_string() to regression tests] Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix libmount testKarel Zak2011-02-091-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: skip non-compiled libmount testsKarel Zak2011-01-258-0/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update lscpu tests on x86_64Karel Zak2011-01-252-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: ignore device name used in some fdisk and blkid testsFrancesco Cosoleto2011-01-2410-35/+40
| | | | Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
* remaining util-linux-ng to util-linuxSami Kerola2011-01-231-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: use WORDS_BIGENDIAN to determine platform byte-orderFabian Groffen2011-01-171-6/+1Star
| | | | | | | | | | | | Autoconf contains the right magic to determine the endianness on many platforms next to Linux. This reverses previous commits to move away from WORDS_BIGENDIAN: "use __BYTE_ORDER rather than AC specific WORDS_BIGENDIAN" This is necessary to compile on non Linux platforms like Darwin and Solaris. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* tests: use findmnt(8) for remount testKarel Zak2011-01-031-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use findmnt(8) for mount --move testKarel Zak2011-01-031-8/+5Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: refresh libmount fstab parser testsKarel Zak2011-01-036-6/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix strtosize() testKarel Zak2011-01-033-39/+39
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: check for mtabKarel Zak2011-01-032-1/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add libmount utab testsKarel Zak2011-01-038-0/+130
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: minor fixesKarel Zak2011-01-031-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: use separate buffer for userspace options, add mount attributesKarel Zak2011-01-0310-72/+98
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --enable-libmount-mountKarel Zak2011-01-031-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: remove utab from API, update testsKarel Zak2011-01-036-7/+41
| | | | | | | The utab file is private libmount stuff. Anything about utab should not be exported by library API. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: improve libmount context mount and umount testKarel Zak2011-01-0311-86/+126
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add basic libmount tests for mountingKarel Zak2011-01-034-3/+90
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add utab update testsKarel Zak2011-01-035-2/+41
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix Makefile and testsKarel Zak2011-01-031-7/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add libmount mtab update testKarel Zak2011-01-038-0/+83
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>