Commit Graph

559 Commits

Author SHA1 Message Date
Ruediger Meier 51f9b431c0 tests: write tests/failures to build- instead of srcdir
All other test output goes to builddir too and moreover "make distcheck"
complains about writing to it's read-only srcdir.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-03-13 17:24:13 +01:00
Sami Kerola 59ac7e76c6 tests: check swaplabel, and perform more swapon boundary tests
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-03-12 12:06:35 +01:00
Karel Zak 62b07018c1 tests: cleanup fallocate
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-12 11:02:15 +01:00
Karel Zak 2d12322958 Merge branch 'master' of https://github.com/rudimeier/util-linux
* 'master' of https://github.com/rudimeier/util-linux:
  tests, skip fallocate for unsupported filesystems
2014-03-12 10:55:47 +01:00
Ruediger Meier fd25dcf456 tests, skip fallocate for unsupported filesystems 2014-03-11 15:53:19 +01:00
Karel Zak 1f54c9f607 tests: refresh fdisk outputs
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-11 13:00:41 +01:00
Karel Zak f9b7d7a60f tests: update fdisk MBR and SUN tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-11 12:35:44 +01:00
Karel Zak 41050b7e23 libfdisk: (bsd) fix output
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-11 12:33:30 +01:00
Karel Zak ad9fe47e75 cfdisk: follow terminal-colors.d
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-11 12:22:35 +01:00
Sami Kerola 2f79154639 tests: check commands needed for running a test exist
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-07 11:52:57 +01:00
Karel Zak 65acdc8734 build-sys: remove deprecated-mount/
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-03-05 13:19:19 +01:00
Ondrej Oprala 3bf7ede997 hexdump: color unit may now be longer than the corresponding format unit
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-03-04 12:48:59 +01:00
Karel Zak 6855da75f3 build-sys: enable parallel tests for make check
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-02-17 15:07:41 +01:00
Sami Kerola 40e6f7a063 tests: make tests to run parallel
Unarguably this change makes test output to be more messy, but when I
compare run time tells with clear numbers parallel is quicker.  For me
the quickness is important factor.  Running test suite always after a
change is preferrably quick, and if something is indicated to be broken
it is ok to spend time in drilling down what happen.

$ time ./tests/run.sh --parallel=5
[...]
real    1m48.037s

Same without parallelization.

$ time ./tests/run.sh
real    3m16.687s

The default is changed to be parallel, where job count is same as number
of CPUs.

[kzak@redhat.com: - propagate --parallel into function.sh
                  - don't use extra title for non-parallel execution
                  - disable by default]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-02-17 15:01:02 +01:00
Karel Zak 67ef06d71d tests: fdisk now prints SGI system partitions too
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-02-17 14:34:31 +01:00
Karel Zak 65bb09be76 tests: update libmount tabdiff tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-02-17 14:32:22 +01:00
Karel Zak 093407a585 tests: update ionice test
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-02-17 14:30:03 +01:00
Sami Kerola e55db6a862 tests: add isosize --sectors and --divisor tests
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-02-17 14:16:21 +01:00
Sami Kerola 272f2ea49f tests: align last.1 with recent phantom detection
None existing account is not still-logged-in but gone mysteriously,
assuming wtmp logout markup is missing.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-02-17 14:04:39 +01:00
Sami Kerola e130ce53ce tests: avoid executing dirname(1) command
Bash parameter expansion does the same thing.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-02-17 13:55:41 +01:00
Karel Zak 67958a167d tests: fix trailing spaces in cal(1) stuff
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-02-17 13:40:03 +01:00
Karel Zak c6f462ffac libmount: accept (deleted) path suffix in mountinfo file
Addresses: debian bug #711183
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-02-17 13:12:23 +01:00
Ondrej Oprala 098ab0778f hexdump: add highlighting support
[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-10 16:01:37 +01:00
Sami Kerola d64dde93a2 tests: cal(1) is year is limited to signed 32 bit value
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-02-06 16:55:25 +01:00
Karel Zak 4a2332edd9 tests: update build-sys tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-01-17 15:01:49 +01:00
Karel Zak 14a04268b8 tests: update lscpu tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-01-14 13:59:34 +01:00
Karel Zak 3eb433df82 tests: add partx --update test
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-01-14 09:51:02 +01:00
Karel Zak 7256f4265b tests: update partx sgi test
Since commit 4253275490 the libblkid
lists system partitions for SGI label.

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-01-14 09:41:04 +01:00
Mike Frysinger 1987fdf5dc tests: libmount: skip tabfiles-py when pylibmount is disabled
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-06 12:45:20 +01:00
Mike Frysinger afe8061952 tests: last: skip when last is not enabled
References: https://bugs.gentoo.org/489794
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2014-01-06 12:45:16 +01:00
Sami Kerola 4d2f0d08f6 tests: cal: do not let --week=<num> to adjust requested month
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-06 10:58:54 +01:00
Sami Kerola dc37cc2912 tests: cal: take account week numbers when determing month lenght
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-06 10:58:54 +01:00
Sami Kerola cd80445017 namei: align missing files with rest of the print out
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-12-02 10:59:27 +01:00
Ruediger Meier 247e259c0e tests: fix fdisk GPT test
There was a missing newline since cd05de50.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2013-11-14 20:01:30 +01:00
Karel Zak 5dc242cc97 tests: update blkid swap tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08 14:22:35 +01:00
Ondrej Oprala bea5774c5b hexdump: add basic tests
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-08 12:53:10 +01:00
Karel Zak 485517de72 tests: add sparc64 lscpu test
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-11-05 12:49:20 +01:00
Karel Zak cd05de5013 tests: test corruted GPT headers
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-23 10:46:10 +02:00
Karel Zak e0e9ff9e9f tests: add TERM= to all cal(1) tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-22 12:03:52 +02:00
Tommi Kyntola aae4f87e68 cal: added argument option for -w|--week to display that week
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-22 10:32:32 +02:00
Tommi Kyntola db652f617e cal: various tests for week numbers
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-22 10:31:56 +02:00
Tommi Kyntola a2c047e017 cal: added two missing tests
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-22 10:21:17 +02:00
Karel Zak 2dff599ec8 tests: add nologin to build tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-21 12:47:25 +02:00
Karel Zak d414f5d421 tests: use 'btrfs' rather than 'btrfsctl'
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-08 17:00:44 +02:00
Karel Zak 4200ebd605 tests: update fdisk outputs
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-08 16:37:13 +02:00
Karel Zak f48145b500 testsL fix py<libname> check
Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-03 16:20:38 +02:00
Karel Zak 5259e1e1f9 tests: update build tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27 12:19:14 +02:00
Karel Zak 99004bc873 tests: improve cal --color test
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-26 10:25:24 +02:00
Karel Zak 5aef934748 tests: update odd output fdisk test
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-25 17:51:13 +02:00
Karel Zak 5ae0491ee8 ORIG_HEAD
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-25 17:41:43 +02:00