summaryrefslogtreecommitdiffstats
path: root/tests/ts
Commit message (Collapse)AuthorAgeFilesLines
* uuidgen: add support for hash-based UUIDsPhilip Prindeville2017-09-051-0/+31
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* libuuid: add support for hash-based UUIDsPhilip Prindeville2017-09-053-0/+67
| | | | | | | | | 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>
* libblkid: mark UBI as RAIDKarel Zak2017-08-031-0/+0
| | | | | | | | | 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>
* libblkid: add support for UBI superblockRafał Miłecki2017-08-031-0/+0
| | | | | | | | | | | | | | | | | | UBI is a volume management system that can be used on a raw flash partition for providing multiple logical volumes. Detecting UBI superblock may be useful for tools wanting to simplify or automate attaching UBI. Please note it's not directly related to the ubifs support which is just a filesystem working on top of UBI volume. In other words: UBI can be used on MTD partition (e.g. /dev/mtdblock0) while ubifs can be used on UBI volume (e.g. /dev/ubi0_0). This patch adds simple code reading UBI version and unique number and setting it in the blkid_probe. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* libfdisk: add --nopartno to mkpart sampleKarel Zak2017-08-011-0/+9
| | | | | | | | * disable dialogs for the mkpart sample * add --nopartno use-case to force libfdisk to use default partno(s) * add test for this feature Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: check sfdisk resize on unsorted offsetsKarel Zak2017-07-191-0/+28
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: support default partno in mkpart-fullspec sampleKarel Zak2017-07-191-0/+46
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove UUIDs with time overflow from uuidparseKarel Zak2017-07-181-2/+0Star
| | | | | | | | The time_t used by timeval is "long", it means too small on 32-bits archs to hold large numbers. Reported-by: Ruediger Meier <ruediger.meier@ga-group.nl> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use sample-fdisk-mkpart-fullspecKarel Zak2017-07-111-0/+181
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: check for missing programs in last(1) testKarel Zak2017-07-111-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use sample-fdisk-mkpartKarel Zak2017-07-111-0/+57
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: explicitly define wipefs outpuit columnsKarel Zak2017-06-291-5/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* uuidparse: add new commandSami Kerola2017-06-261-0/+63
| | | | | | | | | | | 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/+0
| | | | | | | | | | 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/+0
|\ | | | | | | | | | | * '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/+0
| | | | | | | | | | | | | | | | | | | | 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-191-0/+67
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: split partx in root and non-rootRuediger Meier2017-06-152-16/+43
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: fix and refactor partxRuediger Meier2017-06-151-34/+86
|/ | | | | | | | 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>
* misc: POSIX usage dd, regarding unit suffixesRuediger Meier2017-06-142-2/+2
| | | | | | | | | In POSIX we have only 'b' and 'k' (case-sensitive). In the real work, OSX was the only system I've found which does not understand capital 'K'. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add more tests for line(1)Ruediger Meier2017-06-141-4/+25
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: fix fincore, don't use variable COLUMNSRuediger Meier2017-06-141-6/+6
| | | | | | | | | COLUMNS is automatically set by bash and may result in stupid errors like fincore: unknown column: 160 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check for timeout commandRuediger Meier2017-06-011-0/+1
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* Revert "tests: use stdbuf when stderr and stdout is randomly ordered"Ruediger Meier2017-06-012-4/+2Star
| | | | | | | | 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: handle non glibc error message for fallocateRuediger Meier2017-06-011-3/+2Star
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: use stdbuf when stderr and stdout is randomly orderedRuediger Meier2017-06-012-2/+4
| | | | | | 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/+2Star
| | | | | | | | | | 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: grep's short option -A is more portableRuediger Meier2017-06-011-13/+13
| | | | | | | Noticed on Alpine Linux/busybox. Reported-by: Assaf Gordon <assafgordon@gmail.com> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check for ps --ppidKarel Zak2017-05-301-0/+3
| | | | | Reported-by: Assaf Gordon <assafgordon@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: make /proc optionalKarel Zak2017-05-301-4/+12
| | | | | Reported-by: Assaf Gordon <assafgordon@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: check for TS_HELPER_SYSINFO in fincore testKarel Zak2017-05-231-5/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: Add UDF hdd image with non ASCII 8bit label created by Linux mkudffs 1.3Pali Rohár2017-05-161-0/+0
| | | | | $ 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
* tests: Add UDF CD-ROM hybrid image (ISO+Joliet+UDF) created by Nero 6Pali Rohár2017-05-051-0/+0
| | | | | | | | | | | | | | | | | | | 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: add tests for new column featuresKarel Zak2017-05-022-0/+106
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add column(1) table testKarel Zak2017-05-023-4/+24
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add column(1) columnate testKarel Zak2017-05-023-31/+62
| | | | 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-012-0/+0
| | | | | | | | $ 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-282-7/+12
| | | | 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-061-4/+14
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: remove fincore SMALLER_THAN_PAGESIZE testsRuediger Meier2017-04-061-8/+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-041-40/+0Star
|\ | | | | | | | | * 'tailf-removal' of https://github.com/kerolasa/lelux-utiliteetit: tailf: remove deprecated utility
| * tailf: remove deprecated utilitySami Kerola2017-04-021-40/+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>