summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2012-01-12tests: remove unexpected set -xKarel Zak1-2/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-12tests: cleanup pathsKarel Zak1-7/+12
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-12-16tests: update fdisk testsFrancesco Cosoleto6-31/+30
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2011-11-23tests: add mkfs.carmfs test for small FS with duplicate filesKarel Zak2-0/+56
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-04tests: add build-sys regression testKarel Zak18-2/+1603
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03tests: fix options evaluation, add support for optional testsKarel Zak2-15/+40
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-26tests: remove obsolete checktty testKarel Zak1-8/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-26login: add login.defs code and testsKarel Zak4-0/+55
The new logindefs.c file contains /etc/login.defs parser and functions for searching in the list of the login default variables. The patch also contains a new regression test for the code. Based on pam_login-4.0 from Suse. Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-26tests: cleanup islocal testKarel Zak2-2/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-26login: remove unused code and testsKarel Zak2-27/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-11lscpu: add s390 kvm test caseHeiko Carstens2-0/+21
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
2011-09-30tests: add missing fileKarel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-09-29tests: add loopdev libmount testKarel Zak1-0/+12
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-09-12lscpu: remove unneeded fileHeiko Carstens1-0/+0
As noted by Sami I accidentally added a garbage file. Just remove it again. Cc: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
2011-09-09lscpu: add Hypervisor to outputHeiko Carstens2-0/+2
Some vendors have several hypervisors. Therefore it makes sense to not only print out the hypervisor vendor but also the name of the hypervisor. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-09-09lscpu: add s390 test caseHeiko Carstens6-0/+60
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
2011-08-31Merge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak2-28/+0
* '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
2011-08-30tests: update fdisk and blkid MD testsFrancesco Cosoleto9-54/+102
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2011-08-30tests: add ts_fdisk_clean function to make fdisk output comparableFrancesco Cosoleto9-29/+18
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2011-08-17tests: grammar fixesDavidlohr Bueso28-62/+62
Trivial change, "Cannot found" to "Cannot find". Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-08-15grammar fixesDavidlohr Bueso4-13/+13
Correct grammar from "cannot found" to "cannot find". Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-08-12docs: Documentation directory addedSami Kerola2-28/+0
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>
2011-08-01tests: fix compiler warnings [-Wunused-parameter]Karel Zak2-3/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-27tests: update lscpu testsKarel Zak16-16/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-26tests: remove generated fileKarel Zak2-0/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-26Merge branch 'cramfs' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak1-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>
2011-07-25tests: add -o remount to libmount testsKarel Zak2-0/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-07-21md5: use symbolical digest lengthSami Kerola1-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>
2011-07-21tests: add 'none' source to libmount update testsKarel Zak7-0/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-14test_sysinfo: fix printf formatKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-14test_sysinfo: Use CHAR_BIT*sizeof(void*) instead of __WORDSIZE.Josiah Worcester1-1/+1
Signed-off-by: Josiah Worcester <josiahw@gmail.com>
2011-06-09tests: update blkid MD testKarel Zak1-0/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-09build-sys: use top-level directory for libblkid rather than shlibs/blkidKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-09build-sys: use top-level directory for libmount rather than shlibs/mountKarel Zak1-7/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-09build-sys: use top-level directory for libuuid rather than shlibs/uuidKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-06-08tests: add lscpu dumps from three Dell's & a XenSami Kerola8-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>
2011-06-01tests: add colrm basic testSami Kerola3-0/+30
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-05-26This adds a second parameter to size_to_human_string() to return aFrancesco Cosoleto1-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>
2011-05-26tests: test column(1) with multiple input filesKarel Zak2-0/+42
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-05-26Merge branch 'column' of git://github.com/kerolasa/lelux-utiliteetit into columnKarel Zak8-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
2011-05-19tests: add column testsSami Kerola8-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>
2011-05-16tests: update for recent fdisk changesKarel Zak9-91/+115
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-05-11tests: add mount(8) test for fstab entries without optionsKarel Zak4-0/+66
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-04-26libmount: add mnt_tabdiff_* functionsKarel Zak10-0/+132
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-04-21libmount: add support for x-* mount commentsKarel Zak3-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>
2011-04-19tests: don't run mount/regfile test on old kernelKarel Zak1-1/+8
The /sys/.../loop/backing_file is available since 2.6.37. Signed-off-by: Karel Zak <kzak@redhat.com>
2011-04-19tests: add test for RLIMIT_FSIZE issueKarel Zak4-0/+81
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-04-19tests: use libmount tab update tests for UID=0 onlyKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-04-12libblkid: remove test for non-zero head count in FAT superblock probe.Nick Holloway2-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>
2011-03-31tests: add dump from PPC64 to lscpu testsKarel Zak2-0/+31
Signed-off-by: Karel Zak <kzak@redhat.com>