summaryrefslogtreecommitdiffstats
path: root/tests/expected
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-091-0/+271
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup and update lsmemKarel Zak2016-11-091-91/+108
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsmem: add testcaseHeiko Carstens2016-11-091-0/+91
| | | | | | | | | | 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: add flock testsKarel Zak2016-10-317-0/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add sfdisk script case-insensitive testKarel Zak2016-10-261-0/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'tests-raid1' of https://github.com/rudimeier/util-linuxKarel Zak2016-10-261-1/+1
|\
| * test: fix raid1 minimum I/O sizeRuediger Meier2016-10-211-1/+1
| | | | | | | | | | | | | | Seems this has been changed in kernels >4.4.x or >4.8 from 512 bytes to 64K. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: add another sfdisk script testsKarel Zak2016-10-257-0/+155
| | | | | | | | | | Addresses: https://github.com/karelzak/util-linux/issues/367 Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: add sfdisk Type= and Id= testKarel Zak2016-10-251-0/+40
| | | | | | | | | | Addresses: https://github.com/karelzak/util-linux/issues/367 Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: add GPT attributes parser testsKarel Zak2016-10-255-0/+2226
|/ | | | | Addresses: https://github.com/karelzak/util-linux/issues/367 Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update build-sys expected outputKarel Zak2016-10-1918-36/+36
| | | | | | The su(1) change based on libseccomp has been reverted. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add chrt vs. nice testKarel Zak2016-10-031-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update build-sys testsKarel Zak2016-09-3018-50/+36Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add columns separator to libsmartcols testKarel Zak2016-09-161-0/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add export and raw to libsmartcols testKarel Zak2016-09-162-0/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add libsmartcols JSON testKarel Zak2016-09-163-0/+51
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add libsmartcols wrap and wrapnl tree testsKarel Zak2016-09-152-0/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add tree libsmartcols test filesKarel Zak2016-09-151-0/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add missing expected/ dir stuffKarel Zak2016-09-145-0/+62
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add libsmartcols title testKarel Zak2016-09-141-0/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: improve libsmartcols testKarel Zak2016-09-131-0/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: add application to test library featuresKarel Zak2016-09-133-0/+31
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update sfdisk output stringsKarel Zak2016-09-0111-20/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: Add losetup-loop test suiteStanislav Brabec2016-08-1711-0/+24
| | | | | | | Add losetup loop test suite that tests proper behavior of conflicting and re-used loop devices. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* libmount: Preserve empty string value in optstr parsingFilipe Brandenburger2016-08-107-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recent mount (since the switch to libmount in v2.22) drops the '=' in mount options that are set to an empty value. For example, the command line below will be affected: # mount -o rw,myopt='' -t tmpfs tmpfs /mnt/tmp Fix that by preserving an empty string in the options passed to the mount(2) syscall when they are present on the command line. Add test cases to ensure empty string handling is working as expected and in order to prevent regressions in the future. Also tested manually by stracing mount commands (on a kernel which accepts a special extra option, for testing purposes.) Before this commit: # strace -e mount ./mount -t tmpfs -o rw,myopt='' tmpfs /mnt/tmp mount("tmpfs", "/mnt/tmp", "tmpfs", MS_MGC_VAL, "myarg") = -1 EINVAL (Invalid argument) After this commit: # strace -e mount ./mount -t tmpfs -o rw,myopt='' tmpfs /mnt/tmp mount("tmpfs", "/mnt/tmp", "tmpfs", MS_MGC_VAL, "myopt=") = 0 All test cases pass, including newly added test cases. Also checked them with valgrind using: $ tests/run.sh --memcheck libmount/optstr Fixes #332. Signed-off-by: Filipe Brandenburger <filbranden@google.com>
* Merge branch 'lo'Karel Zak2016-08-041-0/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lo: mount: small change to mount.8 loopdev section libmount: one iteration to detect overlap and reuse loopdev lib/loopdev: cleanup sizelimit check mount.8: Update loop device documentation tests: Add loop-overlay test libmout: Reuse loop device safely Implement loopcxt_check_conflict() Add sizelimit to internal API mount: Handle MNT_ERR_LOOPOVERLAP libmount: Introduce new error: MNT_ERR_LOOPOVERLAP libmount: Fix possible crash in mnt_context_setup_loopdev()
| * tests: Add loop-overlay testStanislav Brabec2016-08-031-0/+7
| | | | | | | | | | | | | | The test will check proper loop device reuse and error in case of overlapping loop device. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* | lscpu: add parsable testcase with the --physical optionHeiko Carstens2016-08-0312-0/+251
|/ | | | Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* logger: remove trailing spaces when outputing to journalSami Kerola2016-07-191-1/+0Star
| | | | | | | | | | | | | | Issues: 1. Whitespace-ish \r is not stripped, while it should be. 2. In journal \r is considered unprintable. Lennart: "it is the duty of the client side to drop the trailing whitespace, which "logger" doesn't do". Reported-by: Ivan Babrou <ibobrik@gmail.com> Explained-by: Lennart Poettering <lennart@poettering.net> Reference: https://github.com/systemd/systemd/issues/3416 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: Fix fdisk/id and fdisk/mbr-nondos-mode on SparcJames Clarke2016-07-142-0/+192
| | | | | | | On Sparc, fdisk defaults to using SUN disk labels, which causes the output from these tests to differ from non-Sparc. Signed-off-by: James Clarke <jrtc27@jrtc27.com>
* tests: add chrt testKarel Zak2016-07-117-0/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: utmpdump add subsecond accuracy testSami Kerola2016-06-271-0/+5
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: fix utmpdump timestamps to be in iso formatSami Kerola2016-06-262-12/+12
| | | | | | | | The utmpdump-circle is slightly modified to use old timestamp format as basis of conversion and to do cyclic conversion via new format. This is better from test coverage point of view. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lscpu: update s390-lpar-drawer testcaseHeiko Carstens2016-06-241-2/+1Star
| | | | | | | | | | | | | | | | I noticed that the "cpu" line within /proc/cpuinfo has a different meaning on powerpc and sparc than on s390. On s390 it represents the cpu number while on powerpc and sparc it represent the model name. Given that the s390 kernel patch which adds the "cpu" line to /proc/cpuinfo hasn't been merged into the kernel yet, I changed that line to "cpu number" to avoid the unnecessary conflict. Therefore this patch updates the testcase, which mainly changes the contents of /proc/cpuinfo. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: show additional caches (s390)Heiko Carstens2016-06-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | The Linux kernel exposes the cache topology via sysfs. However on virtualized machines like s390 the cache topology contains only cpu private caches. For shared caches it is not known which cpus share them. The hypervisor would have to update this information whenever a virtual cpu would be scheduled on a different physical cpu and make the guest aware of that change. Given that there is hardly any benefit, if it all, this isn't done. However it is still of interest to know about the non-private caches. Therefore this information is available via /proc/cpuinfo at least on s390. This patch adds additional lines to the summary output for all shared caches for which information can be found in /proc/cpuinfo, since we know these aren't exposed via sysfs. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: show machine type (s390)Heiko Carstens2016-06-244-0/+4
| | | | | | | | Show also the machine type within the lscpu output. With the machine type it is possible to identify the cpu generation and the supported features. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: show static and dynamic MHz (s390)Heiko Carstens2016-06-241-0/+2
| | | | | | | | | | | | | | | | s390 machines provide static and dynamic cpu mhz information via /proc/cpuinfo. The static cpu mhz is the normal cpu frequency a cpu is supposed to run with. The dynamic cpu mhz is the actual frequency a cpu is running with. This is usually the same as the static cpu mhz. Note that this values are different to the min/max mhz values available on other architecutes. The min/max values are unknown. This patch adds two new fields to the summary output which display these two values. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: fix typo in summary outputHeiko Carstens2016-06-241-1/+1
| | | | | | | The new drawer support did have a type in the summary output: it reported Drawers(s) instead of Drawer(s). Fix this. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: add s390 drawer testcaseHeiko Carstens2016-06-241-0/+35
| | | | | | | Add a new s390 testcase so we get some coverage for the new drawer cpu topology level. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* fdisk: Fix typo RequiredPartiton -> RequiredPartitionSebastian Rasmussen2016-05-313-1/+1132
| | | | | | | | This typo fix is backwards compatible in that fdisk will accept both the GPT attribute RequiredPartition and RequiredPartiton with the typo. Update documentation and tests to all use the new attribute name. Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
* misc: Fix various typosSebastian Rasmussen2016-05-311-1/+1
| | | | | | | Fix various typos in error messages, warnings, debug strings, comments and names of static functions. Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
* tests: refresh cal(1) testKarel Zak2016-05-242-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: move getopt to separate directoryKarel Zak2016-04-2230-0/+0
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: don't depend on GNU md5sumRuediger Meier2016-04-131-2/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: test_md5 prints md5sum onlyRuediger Meier2016-04-131-7/+7
| | | | | | | We want to to use it for other tests without depending on gnu md5sum and without cut or awk. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* colcrt: avoid the command getting hung [afl]Sami Kerola2016-04-131-0/+3
| | | | | | | Some inputs make getwc(3) not to progress file descriptor and neither to report EILSEQ. Detect such situation and skip the bad input. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: remove deprecated md5sum based fdisk/bsd testRuediger Meier2016-04-061-123/+0Star
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add fdisk/bsd hexdump for alphaRuediger Meier2016-04-061-0/+217
| | | | | | | Taken from Debian build logs: https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=alpha&ver=2.28~rc2-1&stamp=1459443555 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add DM error target for blkidKarel Zak2016-03-301-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>