summaryrefslogtreecommitdiffstats
path: root/tests/expected
Commit message (Collapse)AuthorAgeFilesLines
* misc: fix typos using codespellRuediger Meier2018-02-161-1/+1
| | | | | | Some more funny typos, please review carefully. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: update build-sys testsKarel Zak2018-02-1316-16/+14Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: column(1) test for space-char separatorKarel Zak2018-02-121-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: column(1) test non-space separator at begin of lineKarel Zak2018-02-121-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add mpool blkid test imageKarel Zak2018-02-051-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: rewrite cal(1) bigyear testKarel Zak2018-02-0226-218/+216Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update setarch testKarel Zak2018-02-011-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'libblkid-atari' of https://github.com/yontalcar/util-linuxKarel Zak2018-01-314-0/+30
|\ | | | | | | | | | | | | | | | | | | | | * 'libblkid-atari' of https://github.com/yontalcar/util-linux: libblkid: atari - reject devices with blocksize != 512 libblkid: atari - don't add duplicate entries libblkid: atari - test if any partition fits disk size tests: added missing expected outputs for partx (atari) libblkid: atari - fix bad variable name tests: added test for libblkid atari pt libblkid: Support for Atari partitioning scheme
| * tests: added missing expected outputs for partx (atari)Vaclav Dolezal2018-01-242-0/+14
| | | | | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
| * tests: added test for libblkid atari ptVaclav Dolezal2018-01-232-0/+16
| | | | | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
* | tests: update cal(1) testsKarel Zak2018-01-3080-2668/+1784Star
| | | | | | | | | | | | | | | | | | | | | | | | | | * remove extra space after year output f066c107ce6b76b4b11b239b9ab77561d4e0b84e * don't print blank space behind last char on row 8315a2ff1507571ef14d77beac867b34a7d5e6da * print just specified number of month for -1, -3 and -n 2bcf8f7934649a5ee7925cdfdb12ca5abbf59b38 Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: rewrite fsck-bad-headerRuediger Meier2018-01-247-1/+174
| | | | | | | | | | | | | | Fix test for systems with pagesize != 4096 Loop over many combinations of sizes, endianness and blocksizes. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | fsck.cramfs: fix crash when superblock size is too smallRuediger Meier2018-01-241-2/+1Star
|/ | | | | | | | | | | This hopefully fixes the original problem addressed by the reverted patch 7cb962c7. The bug was introduced by myself in f991dbd3 "fsck.cramfs: allow smaller superblock sizes" CC: Tobias Stoeckmann <tobias@stoeckmann.org> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: use subtests for weeknum cal(1) testsKarel Zak2018-01-229-1485/+1436Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use subtests for weekarg cal(1) testsKarel Zak2018-01-2218-147/+153
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* test: use subtests for jan1753 cal(1) testKarel Zak2018-01-223-19/+18Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: merge year cal(1) testsKarel Zak2018-01-2210-354/+352Star
| | | | | | | * merge tests * use subtests for cal(1) calls Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: merge 1m and 3m cal(1) testsKarel Zak2018-01-2220-148/+144Star
| | | | | | | * merge tests * use subtests for cal(1) calls Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: merge sep1752 cal(1) testsKarel Zak2018-01-2226-249/+248Star
| | | | | | | * merge tests * use subtests for cal(1) calls Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use subtests for sep1752w testKarel Zak2018-01-2214-258/+257Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add cal(1) --week=40 1752Karel Zak2018-01-221-0/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: Decode ARM CPUsRiku Voipio2018-01-191-0/+3
| | | | | | | | Since the kernel developers have refused to make /proc/cpuinfo user understandable, implement mapping in userspace. lscpu is available for most users via util-linux, so store the information here. Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
* tests: mbsencode - removed emoji, added control unicode characterVaclav Dolezal2018-01-114-4/+4
| | | | | | | Emojis are apparently too recent to be reliably recognised as printable on test machines. Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
* tests: add tests for encode functions from lib/mbsalign.cVaclav Dolezal2018-01-104-0/+40
| | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
* tests: update libsmartcols/titleKarel Zak2017-12-131-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: Add VDO superblock information into blkidSweet Tea Dorminy2017-12-071-0/+4
| | | | | | | [kzak@redhat.com: - add tests/expected/blkid/low-probe-vdo - enlarge the image (must be > 1024)] Signed-off-by: Karel Zak <kzak@redhat.com>
* rename: use access(3) to check if a file existsSami Kerola2017-12-041-0/+1
| | | | | | | This is more lightweight than calling stat(3). In same go add a regression test to ensure changes like this will not break --no-overwrite option. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lsns: add a case for testing nsfs columnMasatake YAMATO2017-11-271-0/+1
| | | | Signed-off-by: Masatake YAMATO <yamato@redhat.com>
* lsns: add a case for testing netnsid columnMasatake YAMATO2017-11-271-0/+1
| | | | Signed-off-by: Masatake YAMATO <yamato@redhat.com>
* tests: update columns test due to dda229c7b2b16a31fae8e99079ab4f4ae5bc8eacKarel Zak2017-11-221-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: udf: Fix parsing UDF revisionPali Rohár2017-11-201-0/+10
| | | | | | | | | | | | | | | | | UDF revision is stored as decimal number in hexadecimal format. E.g. number 0x0150 is revision 1.50, number 0x0201 is revision 2.01. Apparently all UDF test images have number which has same representation in decimal and hexadecimal format, so problem was not detected. This patch adds new test image with UDF revision 1.50. Internally number is stored as 0x0150. In decimal format it is (incorrectly) 1.80, but in hexadecimal correct 1.50. $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-8.img bs=1M count=10 $ mkudffs -r 0x150 -b 512 udf-hdd-mkudffs-1.3-8.img Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
* tests: Add UDF cd image created by mkudfiso 20100208Pali Rohár2017-11-161-0/+7
| | | | | | | | | $ mkudfiso -v "Volume Label" . | tail -n +2 > udf-cd-mkudfiso-20100208.img mkudfiso 20100208 creates UDF images without valid LVID (and LVIDIU), so it is a good candidate for testing fallback code for ID_FS_VERSION. Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
* tests: GPT device resize testKarel Zak2017-11-141-0/+54
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch '170925' of github.com:jwpi/util-linuxKarel Zak2017-11-1310-56/+56
|\ | | | | | | | | | | | | | | | | * '170925' of github.com:jwpi/util-linux: tests: adjust for ISO timezone colon use lib/timeutils: add common ISO timestamp masks lib/timeutils: add get_gmtoff() lib/timeutils: ISO_8601_BUFSIZ too small hwclock: add iso-8601 overflow check
| * tests: adjust for ISO timezone colon useJ William Piggott2017-11-1210-56/+56
| | | | | | | | | | | | | | Fix several tests broken by adding a timezone colon in the timeutils ISO format functions. Signed-off-by: J William Piggott <elseifthen@gmx.com>
* | Merge branch 'udf' of https://github.com/pali/util-linuxKarel Zak2017-11-131-0/+10
|\ \ | | | | | | | | | | | | | | | * 'udf' of https://github.com/pali/util-linux: test: Add UDF hdd image with final block size 4096 created by Linux mkudffs 1.3 libblkid: udf: Optimize and fix probing when block size > 2048 bytes
| * | test: Add UDF hdd image with final block size 4096 created by Linux mkudffs 1.3Pali Rohár2017-11-121-0/+10
| |/ | | | | | | | | | | | | | | | | | | | | | | | | $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-7.img bs=1M count=10 $ mkudffs -l Label512 -b 512 udf-hdd-mkudffs-1.3-7.img $ mkudffs -l Label4096 -b 4096 udf-hdd-mkudffs-1.3-7.img Image file was first formatted with block size 512 and then reformatted with block size 4096. Volume Recognition Sequence was overwritten and every Volume Structure Descriptor is now 4096 bytes long. Trying to read second VSD as 2048 bytes long will fail because 4069 bytes long VSD is padded with zeros. To verify that image file was properly detected, it should have label "Label4096" and not "Label512".
* / libblkid: vfat: Fix reading labels which starts with byte 0x05Pali Rohár2017-11-091-0/+7
|/ | | | | | | | When FAT directory entry has leading byte 0x05 it is interpreted as byte 0xE5. This is how FAT stores file name which starts with byte 0xE5 as leading byte in 0xE5 in FAT directory entry means that file slot is empty. Fixes: #533
* tests: update default lsmem outputKarel Zak2017-11-031-4/+2Star
| | | | | | | The commit 96cbe362c034305e5f12a912b4247b3321420ee7 forces lsmem to follow output column for split policy. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fsck.cramfs bad-header testKarel Zak2017-11-021-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add LUKS test imagesMilan Broz2017-10-242-0/+13
| | | | | | | Testing image contains only the first 4k sector, so it is not valid, but for blkid it should be enough. Signed-off-by: Milan Broz <gmazyland@gmail.com>
* tests: update lsmemKarel Zak2017-10-202-10/+70
| | | | | | * add --split Signed-off-by: Karel Zak <kzak@redhat.com>
* tests/lsmem: update lsmem test with ZONES columnGerald Schaefer2017-10-202-0/+60
| | | | | | | | The existing s390 and x86_64 dumps already contain the valid_zones sysfs attribute, so just add a new "lsmem -o +ZONES" test command and update the expected results. Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
* tests: update build-sys testsKarel Zak2017-09-1918-52/+82
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* uuidgen: add support for hash-based UUIDsPhilip Prindeville2017-09-051-0/+4
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* libuuid: add support for hash-based UUIDsPhilip Prindeville2017-09-052-0/+14
| | | | | | | | | Adding V3 and V5 UUIDs per RFC-4122. [kzak@redhat.com: - fix symbols file] Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update sfdisk wipe testKarel Zak2017-09-011-2/+2
| | | | | | | Now command wipefs returns results in the order how superblocks has been detected on the device. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: fix readline interaction with signalsKarel Zak2017-08-244-4/+4
| | | | | | | | | | | | | The high-level readline API is crazy to use with signals. Fortunately the library provides low-level rl_callback_* API. In this case we can use poll() to wait for input and control all signals, etc. This patch also a little changes fdisk behavior on CTRL+C and CTRL+D. The signals does not kill fdisk, but forces fdisk to return to the main menu, if already in the main menu then exit. If the disk layout has been modified than ask "Do you really want to exit...". Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'blkid-ubi'Karel Zak2017-08-071-1/+1
|\
| * libblkid: mark UBI as RAIDKarel Zak2017-08-031-1/+1
| | | | | | | | | | | | | | | | | | UBI is volume manager rather than filesystem. Note that libblkid has optimized RAIDs probing (don't search for another filesystems is RAID detected). We also don't search for RAIDs on very small devices, but this optimization is ignored for UBI char devices (size=1byte). Signed-off-by: Karel Zak <kzak@redhat.com>