summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* lscpu: add s390 test caseHeiko Carstens2011-09-096-0/+60
| | | | Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* Merge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak2011-08-312-28/+0Star
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit: docs: remove duplicated text docs: require kernel support before accepting use of it docs: note about independent super block structs docs: add libmount & libblkid debug instructions Documentation: add debugging doc arch: start using arch as a usage() example docs: new file Documentation/release-schedule.txt docs: move setuid information from reame to hwclock.8 docs: clean up old readme files docs: copy contributors from legacy files to AUTHORS docs: new file Documentation/howto-man-page.txt docs: new file Documentation/source-code-management.txt docs: new file Documentation/howto-contribute.txt docs: new file Documentation/howto-compilation.txt docs: tell what the Documentation/ is about docs: add usage() howto for contributors docs: Documentation directory added docs: remove README.clear
| * docs: Documentation directory addedSami Kerola2011-08-122-28/+0Star
| | | | | | | | | | | | | | | | Move readme, licence, change log, relese notes and other supplementary files to a Documentation directory. This commit does not change contents of any other but few Makefile.am files. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | tests: update fdisk and blkid MD testsFrancesco Cosoleto2011-08-309-54/+102
| | | | | | | | Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
* | tests: add ts_fdisk_clean function to make fdisk output comparableFrancesco Cosoleto2011-08-309-29/+18Star
| | | | | | | | Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
* | tests: grammar fixesDavidlohr Bueso2011-08-1728-62/+62
| | | | | | | | | | | | Trivial change, "Cannot found" to "Cannot find". Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* | grammar fixesDavidlohr Bueso2011-08-154-13/+13
|/ | | | | | Correct grammar from "cannot found" to "cannot find". Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* tests: fix compiler warnings [-Wunused-parameter]Karel Zak2011-08-012-3/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update lscpu testsKarel Zak2011-07-2716-16/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove generated fileKarel Zak2011-07-262-0/+0
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'cramfs' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak2011-07-261-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'cramfs' of https://github.com/kerolasa/lelux-utiliteetit: include: move fsck return values to exitcodes.h include: move disk-utils/mkfs.h -> include/exitcodes.h mkfs.cramfs: coding style mkfs.cramfs: include-what-you-use header check mkfs.cramfs: error printing fixes mkfs.cramfs: convert spaces to tabs mkfs.cramfs: validate numeric user inputs mkfs.cramfs: few symbolic exit codes where missing md5: use symbolical digest length mkfs.cramfs: use program_invocation_short_name mkfs.cramfs: use xalloc.h fsck.cramfs: add missed strings to translation fsck.cramfs: coding style fsck.cramfs: use xalloc.h fsck.cramfs: retire die function cramfs.h: coding style cramfs: use stdint.h instead of u{8,16,32} cramfs_common: coding style Conflicts: disk-utils/Makefile.am Signed-off-by: Karel Zak <kzak@redhat.com>
| * md5: use symbolical digest lengthSami Kerola2011-07-211-2/+2
| | | | | | | | | | | | | | Magic hash lenght number 16 is turned to a definition MD5LENGTH, and put into use everywhere where md5 checksum is in use. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | tests: add -o remount to libmount testsKarel Zak2011-07-252-0/+6
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: add 'none' source to libmount update testsKarel Zak2011-07-217-0/+10
|/ | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* 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>