summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-02-10hexdump: add highlighting supportOndrej Oprala30-0/+987
[kzak@redhat.com: - fix coding style, - use xalloc in all code, - fix strtol usage] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2014-02-06tests: cal(1) is year is limited to signed 32 bit valueSami Kerola4-369/+355
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-01-17tests: update build-sys testsKarel Zak18-18/+15
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-01-14tests: update lscpu testsKarel Zak1-33/+35
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-01-14tests: add partx --update testKarel Zak2-0/+11
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-01-14tests: update partx sgi testKarel Zak1-0/+2
Since commit 4253275490926cf533bfd0bc33279729e9ff427a the libblkid lists system partitions for SGI label. Signed-off-by: Karel Zak <kzak@redhat.com>
2014-01-06tests: libmount: skip tabfiles-py when pylibmount is disabledMike Frysinger1-0/+2
The default configure disables python support, so this test fails by default. Add a simple check for module availability. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-01-06tests: last: skip when last is not enabledMike Frysinger2-0/+4
References: https://bugs.gentoo.org/489794 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-12-06tests: cal: do not let --week=<num> to adjust requested monthSami Kerola1-42/+42
The previous commit made --week=<number> to have smaller weight value than a month supplied by user. The commit started to print the month that has more days at the week when a week is split to two months, and only one month output is requested. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-12-06tests: cal: take account week numbers when determing month lenghtSami Kerola1-8/+4
The month header does not need to wrap if month width with week number allows printing to single line. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-12-02namei: align missing files with rest of the print outSami Kerola1-1/+1
This change should make namei output more readable when multiple arguments are supplied. The old: $ namei -l /usr/foo f: /usr/foo drwxr-xr-x root root / drwxr-xr-x root root usr foo - No such file or directory The new: $ namei -l /usr/foo f: /usr/foo drwxr-xr-x root root / drwxr-xr-x root root usr foo - No such file or directory Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-11-14tests: fix fdisk GPT testRuediger Meier1-0/+1
There was a missing newline since cd05de50. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2013-11-08tests: update blkid swap testsKarel Zak2-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08hexdump: add basic testsOndrej Oprala10-26/+306
Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-05tests: add sparc64 lscpu testKarel Zak2-0/+17
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-23tests: test corruted GPT headersKarel Zak2-1/+57
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-22tests: add TERM= to all cal(1) testsKarel Zak11-0/+11
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-22cal: added argument option for -w|--week to display that weekTommi Kyntola2-0/+258
Because many years have two sections of week 52 or 53, the week that this argument points to is the one that starts during that year (when available). The week number in argument is also highlighted in addition to possibly visible current/defined date highlighting. Signed-off-by: Tommi Kyntola <kynde@iki.fi>
2013-10-22cal: various tests for week numbersTommi Kyntola14-0/+2822
Current tests were replicated with week numbers and some additional tests for week numbering corner cases were added, too. Signed-off-by: Tommi Kyntola <kynde@iki.fi>
2013-10-22cal: added two missing testsTommi Kyntola4-0/+104
Bigyear and Sep1752 lacked their were missing their last intended tests along with their expected outputs. Signed-off-by: Tommi Kyntola <kynde@iki.fi>
2013-10-21tests: add nologin to build testsKarel Zak18-0/+18
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-08tests: use 'btrfs' rather than 'btrfsctl'Karel Zak2-4/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-08tests: update fdisk outputsKarel Zak13-53/+53
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-03testsL fix py<libname> checkKarel Zak1-1/+1
Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27tests: update build testsKarel Zak18-18/+50
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26tests: improve cal --color testKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25tests: update odd output fdisk testKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25ORIG_HEADKarel Zak2-8/+85
tests: update sun label test * add fdisk -l outputs (to make the test more usable) * use more usable geometry * don't expect that 'create sun label' oprations asks for C/H/S (we follows fdisk_context defaults) Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25libfdisk: (sun) make it more obvious why the first sector movedKarel Zak1-10/+25
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25tests: remove remaining set -xKarel Zak1-6/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25tests: update lscpu testsKarel Zak3-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-20pylibmount: rewrite to be py2/py3 universalOndrej Oprala6-42/+53
Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-19tests: update fdisk outputsKarel Zak5-56/+63
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-19tests: update sun label testKarel Zak1-7/+7
Note that we use a little different label setting, so the checksums are also different. For more details see commit 4170ae9cbd3ad54c9c7427212eaae6fdb030b57a. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-18tests: refresh fdisk testsKarel Zak17-520/+560
2013-09-12tests: lscpu: add CPU max MHz to test resultsSami Kerola3-0/+3
Commit 44320710bdb98a3036e8297d0e0af043fb72d702 changed default output. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-09-11tests: add bcache imagesKarel Zak4-0/+8
images generated by Rolf Fokkens <rolf@rolffokkens.nl> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-11tests: use stable MBR IDKarel Zak3-3/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-11tests: refresh jbd blkid testKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-11tests: add XFS log imageKarel Zak2-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-29tests: check last(1) and utmpdump(1) IPv6 functionalitySami Kerola9-0/+115
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-08-29last: tell verbally system is still runningSami Kerola1-5/+5
Use of uptime time stamp as previous boot login time makes the output not constant, which is rather difficult to test. Verbal message 'system is still running' makes testing easy, and noticing which boot is still running clear to a person. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-08-29last: trim trailing white spacesSami Kerola1-2/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-08-29tests: add last(1) testSami Kerola4-0/+184
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-08-26tests: minor changes to make tests more portableKarel Zak4-2/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19tests: consolidate Py tests initializationKarel Zak5-14/+13
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19pylibmount: add regression testsOndrej Oprala40-0/+1222
Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-13build-sys: remove deprecated elvtune commandKarel Zak6-6/+0
The command is deprecated for years and useless with 2.6.x kernels. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-07-03tests: update libmount fstab full parse testKarel Zak1-10/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-07-03libmount: add functions to safely replace a fs tableOndrej Oprala2-0/+36
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>