summaryrefslogtreecommitdiffstats
path: root/tests/expected
Commit message (Collapse)AuthorAgeFilesLines
* uuidparse: add new commandSami Kerola2017-06-261-0/+33
| | | | | | | | | | | This command will analyze and print information about UUID's. The command is based on libuuid/src/uuid_time.c but modified to use libsmartcol. [kzak@redhat.com: - minor coding style changes] Reference: http://marc.info/?l=util-linux-ng&m=149735980715600&w=2 Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: Add UDF hdd image which label has length 30 charactersPali Rohár2017-06-221-0/+9
| | | | | | | | | | Structure dstring for label has 32 bytes, first byte is 8 (Compression ID), last byte is 30 (count of 8bit characters in label). Therefore label is not nul terminated and dstring parser needs to handle it (fixed in previous commit). $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-6.img bs=1M count=10 $ mkudffs -l AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA -b 512 udf-hdd-mkudffs-1.3-6.img
* Merge branch 'master' of https://github.com/pali/util-linuxKarel Zak2017-06-212-0/+18
|\ | | | | | | | | | | * 'master' of https://github.com/pali/util-linux: tests: Add UDF hdd images with blocksize 1024 and 4096 created by Linux mkudffs 1.3 libblkid: udf: Fix detection of UDF images with block size 1024 and 4096
| * tests: Add UDF hdd images with blocksize 1024 and 4096 created by Linux ↵Pali Rohár2017-06-142-0/+18
| | | | | | | | | | | | | | | | | | | | mkudffs 1.3 $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-4.img bs=1M count=10 $ mkudffs -l Label -b 1024 udf-hdd-mkudffs-1.3-4.img $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-5.img bs=1M count=10 $ mkudffs -l Label -b 4096 udf-hdd-mkudffs-1.3-5.img
* | tests: add MBR resize testsKarel Zak2017-06-194-0/+116
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: split partx in root and non-rootRuediger Meier2017-06-155-0/+0
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: fix and refactor partxRuediger Meier2017-06-151-0/+1
|/ | | | | | | | Subtest delete-non-existent was broken because since 2d47fa39 option --nr was missing. It wasn't noticed because we did not check stderr. Now we check all return values and output. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add more tests for line(1)Ruediger Meier2017-06-141-0/+18
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: update build-sys testKarel Zak2017-06-0219-20/+18Star
| | | | | | The libtinfo is enough (and libncurses optional for cal). Signed-off-by: Karel Zak <kzak@redhat.com>
* Revert "tests: use stdbuf when stderr and stdout is randomly ordered"Ruediger Meier2017-06-012-2/+2
| | | | | | | | stdbuf does not seem to work reliable. Failed on travis/OSX This reverts commit 398b3148bedee936ee0b012b3b6e82b20547f218. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: use stdbuf when stderr and stdout is randomly orderedRuediger Meier2017-06-012-2/+2
| | | | | | glibc seems to flush stdout before stderr. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: avoid diff of diffsRuediger Meier2017-06-011-4/+3Star
| | | | | | | | | | Certain diff implementations do not produce comparable output. Noticed on Alpine Linux/busybox. CC: Sami Kerola <kerolasa@iki.fi> Reported-by: Assaf Gordon <assafgordon@gmail.com> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: update build-sys due to readlineKarel Zak2017-05-2319-36/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: Fix UDF test output after changing UUID algorithmPali Rohár2017-05-176-12/+12
|
* tests: Fix UDF test output for 8bit OSTA Compressed UnicodePali Rohár2017-05-161-1/+1
|
* tests: Add UDF hdd image with non ASCII 8bit label created by Linux mkudffs 1.3Pali Rohár2017-05-161-0/+9
| | | | | $ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-3.img bs=1M count=10 $ mkudffs -l 'ÿ' -b 2048 /tmp/udf-hdd-mkudffs-1.3-3.img
* Merge branch 'master' of https://github.com/pali/util-linuxKarel Zak2017-05-112-5/+11
|\ | | | | | | | | | | | | * 'master' of https://github.com/pali/util-linux: tests: Add UDF CD-ROM hybrid image (ISO+Joliet+UDF) created by Nero 6 tests: Fix test output for low-probe-udf to contain UDF data Revert "libblkid: Probe UDF volumes for ISO9660 info as well"
| * tests: Add UDF CD-ROM hybrid image (ISO+Joliet+UDF) created by Nero 6Pali Rohár2017-05-051-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This image was created by Nero Burning ROM version 6 via option CD-ROM (UDF/ISO) with UDF version 2.01 and enabled ISO Joliet extension. Moreover for testing purposes it has set custom Disc label (and also every other identifier) which is different for ISO, Joiliet and UDF part. It contains ISO/Joliet/UDF string prefix to distinguish between them. So reading this image as basic ISO would produce different label as when reading it as ISO with Joliet image and also different as UDF image. Windows detects its label as "UDF Label". Before commit ccfb5b0a1d318c1ac96884c70c7b5090331849fc blkid show label for this image as "Joliet Label" and after as "UDF Label". Note that it is not common to have such images with different label stored in Joliet part and in UDF part. Moreover it is very hard to generate them.
| * tests: Fix test output for low-probe-udf to contain UDF dataPali Rohár2017-05-051-5/+2Star
| | | | | | | | | | | | | | | | | | Label was really not changed because of fix by commit 2f2730bc77c972d613cfec421468c84f15749708. UUID is different due to fact that ISO image does not have UUID and libblkid generate one from compilation date. Plus "Joliet Extension" in UDF context does not make sense.
* | tests: update wipe-partitionKarel Zak2017-05-101-0/+2
|/ | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add new build-sys testsKarel Zak2017-05-032-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* testsL update build-sys testsKarel Zak2017-05-0318-18/+84
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add tests for new column featuresKarel Zak2017-05-028-0/+348
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add column(1) table testKarel Zak2017-05-024-0/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add column(1) columnate testKarel Zak2017-05-028-4/+18
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: Add UDF hdd images created by Linux mkudffs 1.3Pali Rohár2017-05-012-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-012-0/+0
|
* tests: update libmount outputsKarel Zak2017-04-284-6/+6
| | | | 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: fix fincore/count for PAGE_SIZE != 4096Ruediger Meier2017-04-063-0/+110
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: remove fincore SMALLER_THAN_PAGESIZE testsRuediger Meier2017-04-061-6/+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>
* tailf: remove deprecated utilitySami Kerola2017-04-0220-20/+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>
* tests: refresh fincore testKarel Zak2017-03-231-38/+37Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add cases for testing fincore commandMasatake YAMATO2017-03-231-0/+62
| | | | 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-201-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: (sfdisk) tell kernel about new partitionKarel Zak2017-02-171-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use swap in sfdisk wipe testKarel Zak2017-02-161-1/+1
| | | | | | and add "udevadm settle". Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add sfdisk --wipe and --wipe-partition testsKarel Zak2017-02-154-0/+192
| | | | | | 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-011-0/+31
| | | | | | | 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-169-0/+12
| | | | | | 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-041-0/+9
| | | | | | | | | | | 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-224-0/+122
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add new findmnt --options testsKarel Zak2016-12-204-0/+47
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add findmnt testsKarel Zak2016-12-209-0/+90
| | | | 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>
* agetty: remove obsolete HAVE_UPDWTMP fallbackRuediger Meier2016-12-071-1/+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>