summaryrefslogtreecommitdiffstats
path: root/tests/expected
Commit message (Collapse)AuthorAgeFilesLines
...
* script: add the -o/--output-limit option. Fix race test.Fred Mora2018-05-141-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | When script is used on a host with a relatively small free disk space, it is sometimes desirable to limit the size of the captured output. This can now be enforced with the --output-limit option. The --output-limit option lets the user specify a maximum size. The program uses the size parsing from strutils and thus supports the usual multiplicative suffixes (kiB, KB, MiB, MB, etc.). After the specified number of bytes have been written to the output file, the script program will terminate the child process. Due to buffering, the size of the output file might exceed the specified limit. This limit also does not include the start and done messages. The race test was throwing an error dur to a variable being "" in some cases. Quoting the variable in the equal test took care of that test. [kzak@redhat.com: - use done() to stop script - count also timing file - remove unnamed member initialization in ctl struct - add to bash-completion] Signed-off-by: Fred Mora <fmora@datto.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update sfdisk JSON outputKarel Zak2018-04-062-20/+20
| | | | | References: d881b773318dbd3f5ceb58a1e9a560fe0d1ac90a Signed-off-by: Karel Zak <kzak@redhat.com>
* lsmem: improve JSON outputKarel Zak2018-04-052-53/+53
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update JSON outputsKarel Zak2018-04-043-50/+50
| | | | | | It does not contains extra space after ":" separator anymore. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove namei(1) failed lstat testKarel Zak2018-03-271-5/+0Star
| | | | | | | | The strerror() output is is nothing stable and may be different on another systems. It would be possible to use sed(1) to unify the output, but it seems overkill in this case. Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'master' of https://github.com/pali/util-linuxKarel Zak2018-03-2721-0/+134
|\ | | | | | | | | | | | | * 'master' of https://github.com/pali/util-linux: tests: Add tests for FAT32 labels blkid: Encode any field which starts with LABEL in same way as LABEL field libblkid: vfat: Change parsing label in special cases
| * tests: Add tests for FAT32 labelsPali Rohár2017-11-2521-0/+134
| | | | | | | | | | | | | | | | | | | | These FAT32 images were generated for FAT label test suite in October 2017. Now blkid reports same FAT32 label as MS-DOS 6, 7 and Windows 98, XP, 10. For more information about test result see email: https://www.spinics.net/lists/kernel/msg2640891.html Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
* | tests: update column(1) space-separator testKarel Zak2018-03-271-6/+6
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | column: fix leading space characters bugKarel Zak2018-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bug has been introduced during column(1) rewrite. The function read_input() need to skip leading space only temporary to detect empty lines, but the rest of the code has to use the original buffer (line). I've tried to fix one of the symptoms by 5c7b67fbbf41c973ca8d49b1e8bdba22dbb917aa (alter), but this solution is unnecessary and too complex. Changes: * don't ignore leading space * remove unnecessary stuff introduced by 5c7b67fbbf41c973ca8d49b1e8bdba22dbb917aa * fix regression test with incorrect separator Addresses: https://github.com/karelzak/util-linux/issues/575 Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1560283 Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: update lsmemKarel Zak2018-03-201-2/+2
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: add /proc/swaps libmount parser testKarel Zak2018-03-201-0/+22
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | 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>