summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2013-07-03libmount: add functions to handle comments in fs tablesOndrej Oprala3-0/+104
Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-06-07rev: stop adding new line at the end when input does not have itSami Kerola2-1/+5
When the rev(1) is executed twice outcome is expected to be exactly what it was originally. That includes not adding new line at the end of the output. The oneliner below demonstrates earlier issue. $ printf "abc\n123" | rev | rev Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-05-26tests: check cal works when year is far in futureSami Kerola2-0/+301
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-05-26cal: stop trimming whitespacesSami Kerola5-336/+336
Remove trailing spaces from output it is trivial cal | sed 's/ *$//' but padding them back is difficult. CC: Pádraig Brady <P@draigbrady.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-05-26tests: add cal day color corner casesSami Kerola2-0/+123
Check that the first, andn last, possible dates and strange Sep 1752 dates are highlighted correctly. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-05-26tests: add calendar reformation checkSami Kerola2-0/+293
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-05-21tests: new warning fixGilles Espinasse1-1/+1
2.23 added -Wstrict-prototypes check. Fix make check showing CC tests/helpers/test_md5.o tests/helpers/test_md5.c:8: warning: function declaration isn't a prototype Signed-off-by: Gilles Espinasse <g.esp@free.fr>
2013-05-13tests: add losetup testsKarel Zak12-0/+159
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-26wipefs: add --backupOndrej Oprala3-0/+32
[kzak@redhat.com: - don't wipe if failed to create a backup file - use ts_scsi_debug_init in the regression tests] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-26tests: partx tests cleanupKarel Zak2-33/+23
* use ts_scsi_debug_init * use headers in output * use udevadm Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-26tests: add partx regression testsOndrej Oprala11-0/+106
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2013-04-25tests: make mount tests backwardly compatible with deprecated-mount/Karel Zak3-14/+25
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-18tests: fix compiler warningKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-15tests: add BE minix testKarel Zak5-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-12tests: consolidate scsi_debug usageKarel Zak13-166/+69
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-12tests: use udevadm settle rather than sleepKarel Zak13-29/+43
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-10tests: make line(1) optionalKarel Zak1-0/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-10tests: update lscpu testsKarel Zak2-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-09libblkid: support LIBBLKID_DEBUG= onlyKarel Zak1-1/+0
... the BLKID_DEBUG= is not more supported. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-09libblkid: fix DBG()Karel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-21tests: update build testsKarel Zak15-132/+151
* remove ld-linux-* from output * findmnt linked with libudev * lslocks linked with libmount * uuidd linked with librt * static binaries are no more enabled by default * chfn/chsh linked with libuser * add nsenter, runuser, setpriv Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-21tests: add chfnsh build testsKarel Zak4-0/+404
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-12tests: move fallocate test fileKarel Zak1-3/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-12tests: move tailf test inputKarel Zak1-5/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-12tests: update fdisk testsKarel Zak8-13/+22
- the new fdisk ask-partition-number dialog does not ask for non-senses (non-existing partitions etc.) - 'p'rint command prints disk label name (usually "dos" in the tests) Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11tests: update aks-partition-number dialog (planned regression)Karel Zak1-1/+1
Since 2.23 the fdisk ask-partition-number dialog don't ask for partition number if there is only one partition. This was default in DOS driver, now it's default everywhere. For Sun/BSD it's regression... but we don't want to maintain any extra code --- sorry --- we don't want any exception in the code. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11tests: update 'odd input' fdisk testKarel Zak2-2/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11tests: fix typo in fdisk testKarel Zak2-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11tests: update bsd testKarel Zak1-25/+5
This is the correct 'L'ist partition types dialog output for BSD. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-11tests: ignore stderr in fdisk -lKarel Zak2-16/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-06tests: add fdisk GPT testKarel Zak2-0/+197
Note that the test does not check on-disk data (by checksum) because the current fdisk does not allow to modify automatically generated partition and disk UUIDs. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-06tests: add fdisk BSD testKarel Zak2-0/+233
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-06tests: update fdisk mbr testsKarel Zak2-0/+23
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-05tests: use checksum to detect rev(1) consistencyKarel Zak2-3/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-04tests: make utmpdump TZ independentKarel Zak2-0/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-04tests: update ipcs (reorder default output)Karel Zak1-11/+11
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-04tests: update libblkid PT testsKarel Zak5-5/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-04tests: update UDF testKarel Zak1-0/+5
.. blkid now returns infor from ISO header too. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-04tests: update ISO testsKarel Zak3-0/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-26tests: add umount --all-targets testsKarel Zak5-0/+137
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-07libblkid: improve Silicon RAID proberKarel Zak2-2/+1
* count checksum from superblock * new (correct) superblock definition from dmraid Reported-by: Frank Hirtz <fhirtz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-06tests: add f2fs image testAlejandro Martinez Ruiz2-0/+7
Signed-off-by: Alejandro Martinez Ruiz <alex@nowcomputing.com>
2013-01-25tests: sort commands stringsSami Kerola1-62/+43
The list is starting to be long enough that making any order to it seems like right thing to do. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-25tests: add ipcmk(1) and ipcrm(1) checksSami Kerola8-0/+133
Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-25tests: add whereis(1) checkSami Kerola3-0/+30
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-25tests: add isosize(1) checkSami Kerola4-0/+26
Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-25tests: add fallocate(1) checkSami Kerola3-0/+27
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-25tests: add setarch(8) checkSami Kerola3-0/+25
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-25tests: add setsid(1) checkSami Kerola3-0/+25
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-01-25tests: add dmesg(1) checkSami Kerola10-0/+612
Signed-off-by: Sami Kerola <kerolasa@iki.fi>