summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: add column(1) table testKarel Zak2017-05-027-4/+42
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add column(1) columnate testKarel Zak2017-05-0211-35/+80
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add column/files directoryKarel Zak2017-05-024-5/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: Add UDF hdd images created by Linux mkudffs 1.3Pali Rohár2017-05-014-0/+18
| | | | | | | | $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-1.img bs=1M count=10 $ mkudffs -l Label -b 512 udf-hdd-mkudffs-1.3-1.img $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-2.img bs=1M count=10 $ mkudffs -l Label udf-hdd-mkudffs-1.3-2.img
* tests: Rename udf-hdd-mkudffs* images to indicate used mkudffs versionPali Rohár2017-05-014-0/+0
|
* tests: update libmount outputsKarel Zak2017-04-286-13/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update script(1) testsKarel Zak2017-04-184-18/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fincore/count, skip unsupported FSRuediger Meier2017-04-061-0/+17
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: handle dd errors in fincore/countRuediger Meier2017-04-061-11/+20
| | | | | | | On dd error the test will fail earlier and the test diff will be more useful. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix fincore/count for PAGE_SIZE != 4096Ruediger Meier2017-04-064-4/+124
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: remove fincore SMALLER_THAN_PAGESIZE testsRuediger Meier2017-04-062-14/+0Star
| | | | | | | | | | | | | | These tests failed for example on ext4 with a non-default blocksize 1024. In this case it seems that the kernel only caches a full page if we read at least PAGE_SIZE -BLOCK_SIZE +1. Both tests also failed on NFS allthough block size seems to be 1M there. We still keep the test for PAGE_SIZE-1 which seems to work more reliable. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* Merge branch 'tailf-removal' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak2017-04-0422-61/+0Star
|\ | | | | | | | | * 'tailf-removal' of https://github.com/kerolasa/lelux-utiliteetit: tailf: remove deprecated utility
| * tailf: remove deprecated utilitySami Kerola2017-04-0222-61/+0Star
| | | | | | | | | | | | | | | | March 2017 is gone, it is time to remove this utility as scheduled in earlier commit, and promised in manual page. Reference: 3f8478a71ccde6883d4c81b7e65561a106653b28 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | ipcs: make shmall overflow a bit less worseRuediger Meier2017-04-032-6/+6
|/ | | | | | | | | | | | | | | | | Still no large integer support but on overflow we print now the largest possible value, maybe even the largest one which makes sense at all. So on x86_64 systems we'll see now: $ echo "4503599627370496" > /proc/sys/kernel/shmall $ ipcs -m -l | grep "max total" max total shared memory (kbytes) = 18014398509481980 rather than this: $ ipcs -m -l | grep "max total" max total shared memory (kbytes) = 0 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add --mountpoint to findmnt callsKarel Zak2017-03-313-5/+5
| | | | | | ... if necessary to make things more robust. Signed-off-by: Karel Zak <kzak@redhat.com>
* test: fix mountpoint device check in libmount/loopRuediger Meier2017-03-311-12/+15
| | | | | | | | This test could fail if the build directory is somehow exoticly mounted (shared bind mounts, symlinks). CC: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: define columns for fincore testKarel Zak2017-03-271-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove status=none dd(1) from fincoreKarel Zak2017-03-241-1/+4
| | | | | | | | | seems dd(1) sucks on travis more than expected: dd: invalid status flag: `none' Try `dd --help' for more information. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: redirect unwanted dd(1) advices to /dev/nullKarel Zak2017-03-241-3/+3
| | | | | | | | | | It seems that dd(1) on travis writes unwanted messages to stdout dd: you probably want conv=notrunc with oflag=append and we do not want conv= Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch '2017wk11' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2017-03-242-4/+4
|\ | | | | | | | | | | | | | | | | * '2017wk11' of git://github.com/kerolasa/lelux-utiliteetit: blkid: add control struct blkid: simplify version option handling tests: add static keyword where needed [smatch scan] tests: do not use plain 0 as NULL [smatch scan] libsmartcols: fix test variable shadowing
| * tests: add static keyword where needed [smatch scan]Sami Kerola2017-03-172-4/+4
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | tests: refresh fincore testKarel Zak2017-03-232-42/+41Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: add cases for testing fincore commandMasatake YAMATO2017-03-233-0/+257
|/ | | | Signed-off-by: Masatake YAMATO <yamato@redhat.com>
* tests: refresh lscpu testsKarel Zak2017-03-1512-196/+196
| | | | | | | .. due to libsmartcols use for the default output. The output does not contain extra unnecessary blank space anymore. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: another improvement to the sfdisk wipe testKarel Zak2017-02-202-13/+7Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: make sfdisk wipe partition optionalKarel Zak2017-02-171-4/+13
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: (sfdisk) tell kernel about new partitionKarel Zak2017-02-172-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add udevadm settle to sfdisk wipeKarel Zak2017-02-161-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add --show-diffKarel Zak2017-02-162-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use swap in sfdisk wipe testKarel Zak2017-02-162-5/+6
| | | | | | and add "udevadm settle". Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add sfdisk --wipe and --wipe-partition testsKarel Zak2017-02-156-0/+303
| | | | | | Addresses: https://github.com/karelzak/util-linux/issues/410 Addresses: https://github.com/karelzak/util-linux/issues/411 Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: make rootfs lookup by parent-id more robustKarel Zak2017-02-013-0/+65
| | | | | | | The root FS id really does not have to be the smallest one. Reported-by: Michal Soltys <soltys@ziu.info> Signed-off-by: Karel Zak <kzak@redhat.com>
* last: use --time-format instruction when printing wtmp creation timeSami Kerola2017-01-161-3/+1Star
| | | | | | | | This makes --time-format=iso timestamp to look the same as login/logout times. When --time-format=noformat is used the file creation time not printed. There is no change to default format. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: Introduce libmount/loopStanislav Brabec2017-01-1611-1/+146
| | | | | | Add libmount/loop test that tests various loop mount options. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* lscpu: add aarch64 specific namesKarel Zak2017-01-091-0/+3
| | | | | | | | It seems that aarch64 uses a different names for some /proc/cpuinfo fields (e.g. intel: bogomips, flags, and aarch64: BogoMIPS, features, ...) Addresses: https://github.com/karelzak/util-linux/issues/392 Signed-off-by: Karel Zak <kzak@redhat.com>
* disk-utils/mkfs.minix: Set ninodes after checking maxNate Clark2017-01-042-0/+10
| | | | | | | | | | | ninodes in the superblock needs to be set after inodes is checked against MINIX_MAX_INODES otherwise a value larger than MINIX_MAX_INODES can be attempted to be stored in the superblock. Without this change the command "mkfs.minix -2 -i 65530 <dev>" would write a minix superblock with ninodes set to 0. Signed-off-by: Nate Clark <nate@neworld.us>
* tests: add findmnt output testsKarel Zak2016-12-225-0/+166
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add new findmnt --options testsKarel Zak2016-12-205-5/+67
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add findmnt testsKarel Zak2016-12-2013-0/+254
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add missing fileKarel Zak2016-12-131-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: revert X-* and x-* meaningKarel Zak2016-12-091-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's hope this is last change necessary to cleanup x-* usage: x-* persistent option, stored in utab, available for umount, etc. X-* fstab comment only mount(8) supports x-mount.mkdir= as well as newly recommended X-mount.mkdir= Advantages: * less invasive * does not require exception for x-systemd * does not require rename x-initrd to X-initrd The systemd and dracut users will get the new (=fixed) functionality without a change in fstab configuration. This is the primary goal. Disadvantages: * not 100% compatible libmount behavior, x-* options have not been previously stored in utab. The API is the same, options will be still available, but on x-* libmount will write to /run/mount/utab. For now it seems only systemd uses x-*, and they like this behavior, so... Addresses: https://github.com/systemd/systemd/pull/4515 Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: remove obsolete HAVE_UPDWTMP fallbackRuediger Meier2016-12-072-2/+0Star
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: update sfdisk outputKarel Zak2016-11-3048-0/+96
| | | | | | | | | | | The output of the "New situation:" contains Disklabel type: <name> Disk identifier: <removed> lines now. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update lsmem testsKarel Zak2016-11-302-35/+35
| | | | | | | The commit 4c0e1eaf34fe604118afcd792291419e1d4ff661 modifies the alignment of the STATE column. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add x86_64-16g lsmem testKarel Zak2016-11-093-1/+272
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup and update lsmemKarel Zak2016-11-092-105/+126
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsmem: add testcaseHeiko Carstens2016-11-095-0/+166
| | | | | | | | | | Add a single s390 specific test case to verify that the contents of various output formats do not change in incompatible way if the lsmem code is changed. This is based on a patch from Clemens von Mann. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* tests: let lsmod fail silentlyRuediger Meier2016-11-071-2/+2
| | | | | | | This is mostly for non-Linux systems where lsmod is not even available. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: always quote $LODEVRuediger Meier2016-11-071-23/+23
| | | | | | | Since there is no error handling in this test $LODEV may be empty. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: replace sleep by udevadmRuediger Meier2016-11-071-11/+10Star
| | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl> CC: Stanislav Brabec <sbrabec@suse.cz>