summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: update ZFS testKarel Zak2015-11-191-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add uuidd output checkSami Kerola2015-10-183-0/+69
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add uuidgen output checkSami Kerola2015-10-182-0/+53
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add uuid parser checkSami Kerola2015-10-183-0/+42
| | | | | | | The check is based on code by Theodore Ts'o to test libuuid, from which unstable output is commented out. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: replace username with tag in logger testKarel Zak2015-10-063-8/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add missing filesKarel Zak2015-10-062-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update and extend logger testsKarel Zak2015-10-062-0/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add sfdisk --move-data testKarel Zak2015-09-095-1/+157
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sfdisk: add --reorderKarel Zak2015-09-071-1/+21
| | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1232707 Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: (blkid) update drbdmanageKarel Zak2015-08-311-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: (cal) update US week numbersKarel Zak2015-08-316-610/+610
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: check biggest week number correctly when highlightingSami Kerola2015-08-312-0/+46
| | | | | | | This allows Sunday based week 54 be highlighted, and deny week 54 for Monday based weeks when year has only 52 weeks. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add very long mount line to libmount mtabKees Cook2015-08-273-0/+15
| | | | | | | | Very long mount lines from the kernel (either from escaping or from giant option lists) could exceed BUFSIZ, leading to parsing failures. This adds a test for the condition. Signed-off-by: Kees Cook <keescook@chromium.org>
* tests: update static build testKarel Zak2015-08-241-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: added drbdmanage control volume detection.Philipp Marek2015-08-242-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add blkid script to test whole-disk MBR devicesKarel Zak2015-08-213-0/+43
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add colcrt regression testsSami Kerola2015-08-106-0/+422
| | | | | | | Thanks to Alaa Mubaied for providing crash1 input file making colcrt to crash. The crash2 was generated using American Fuzzy Lop. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: fix minix tests filenamesKarel Zak2015-08-032-9/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: try mkfs & mount all supported minix versionsKarel Zak2015-08-037-30/+70
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix minix testKarel Zak2015-08-037-11/+15
| | | | | | | | | - run the test with UID=0 only. The minix FS inode contains UID and GID, so the final image checksum depends on user... - always use subtest name for the images Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fsck.minix checksSami Kerola2015-08-0312-0/+160
| | | | | | | The debian bug was fixed in commit 730ae9c89971, and the rest are about having test coverity for various file name lenghts and minix fs versions. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add way to control mkfs.minix time stampsSami Kerola2015-08-031-0/+1
| | | | | | | Needed in order to create reproducable file systems image files, so that out come of mkfs.minix can be checksum'ed. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tasts: add logger octet counting testKarel Zak2015-07-292-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'test-fixes' of https://github.com/rudimeier/util-linuxKarel Zak2015-07-281-3/+0Star
|\
| * Revert "tests: start script/race test only when --force specified"Ruediger Meier2015-07-281-3/+0Star
| | | | | | | | | | | | | | | | | | This reverts commit 8ba3f35e07f736a0165669ac787b016b4311eb29. This test is not too slow anymore and BTW since last script refactoring it does work now even on slow/heavy-loaded systems. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: update build-sys testsKarel Zak2015-07-2418-349/+364
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: add udevadm settleKarel Zak2015-07-241-0/+2
|/ | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add fullpath tests to rename/subdirAndreas Henriksson2015-06-252-0/+33
| | | | Signed-off-by: Andreas Henriksson <andreas@fatal.se>
* Merge branch 'script'Karel Zak2015-06-2512-4/+180
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * script: (25 commits) script: add note to BUGS man page section script: fix EOF problems script: improve poll debugging script: cleanup signals usage script: debug poll() results script: add support for SCRIPT_DEBUG= script: remove magic constants from poll code script: rename control struct members script: close timingfp also when -e tests: add scriptreplay test script: move timing file opening close to use of it script: add noreturn function attributes script: use gettime_monotonic() to get timing file timestamps script: use correct input type, move comment, and so on script: replace strftime() workaround with CFLAGS = -Wno-format-y2k script: move do_io() content to small functions script: add 'Script started' line always to capture file script: remove io vs signal race script: merge doinput() and output() functions to do_io() script: use poll() rather than select() ...
| * Merge branch 'script3' of git://github.com/kerolasa/lelux-utiliteetit into ↵Karel Zak2015-06-1612-4/+180
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | script * 'script3' of git://github.com/kerolasa/lelux-utiliteetit: tests: add scriptreplay test script: move timing file opening close to use of it script: add noreturn function attributes script: use gettime_monotonic() to get timing file timestamps script: use correct input type, move comment, and so on script: replace strftime() workaround with CFLAGS = -Wno-format-y2k script: move do_io() content to small functions script: add 'Script started' line always to capture file script: remove io vs signal race script: merge doinput() and output() functions to do_io() script: use poll() rather than select() script: use signalfd() to catch signals script: add struct script_control and remove global variables script: remove function prototypes tests: check script options work as expected tests: add script output buffering race check
| | * tests: add scriptreplay testSami Kerola2015-06-083-0/+48
| | | | | | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| | * script: remove io vs signal raceSami Kerola2015-06-081-4/+0Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make do_io() to run poll() until all streams are empty. This should remove the signal from child versus io handling race for good. Addresses: https://github.com/karelzak/util-linux/pull/62 Addresses: https://bugs.launchpad.net/bugs/264967 Addresses: https://bugs.debian.org/305808 CC: Wolfgang Richter <wolf@cs.cmu.edu> CC: Ruediger Meier <ruediger.meier@ga-group.nl> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| | * tests: check script options work as expectedSami Kerola2015-06-067-0/+103
| | | | | | | | | | | | | | | | | | | | | Options --flush and --timing remain unchecked, as I do not have an idea how to check them reliably. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| | * tests: add script output buffering race checkSami Kerola2015-06-062-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | Regression check to a fix by Stanislav Brabec. Reference: 0b285b84b2f14339fd86857244654ba25fac7d73 CC: Stanislav Brabec <sbrabec@suse.cz> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | | tests: always kill helperRuediger Meier2015-06-161-7/+7
|/ / | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: add JSON sfdisk dumpsKarel Zak2015-06-154-0/+45
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: update fdisk BSDKarel Zak2015-06-111-2/+0Star
|/ | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: fix January 1753 week number printoutSami Kerola2015-05-182-0/+62
| | | | | | | | | | | | | | | Earlier output was clearly broken. $ cal -w 1 1753 January 1753 Su Mo Tu We Th Fr Sa 51 1 2 3 4 5 6 52 7 8 9 10 11 12 13 52 14 15 16 17 18 19 20 52 21 22 23 24 25 26 27 52 28 29 30 31 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* Merge branch 'test-fixes' of https://github.com/rudimeier/util-linuxKarel Zak2015-05-132-0/+6
|\ | | | | | | | | | | * 'test-fixes' of https://github.com/rudimeier/util-linux: tests: fix kill/all_processes tests: add $top_builddir to $PATH
| * tests: fix kill/all_processesRuediger Meier2015-05-081-0/+3
| | | | | | | | | | | | We have to wait for the killed helper. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: add $top_builddir to $PATHRuediger Meier2015-05-081-0/+3
| | | | | | | | | | | | | | | | | | | | Since we have dropped some more hardcoded search paths we should make sure that our tested binaries would use the right helpers from our build directory. See 07b51567 and follow-up commits. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: update lscpu tests (due to CPU flags in output)Karel Zak2015-05-137-0/+7
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: add hexdump from GPTKarel Zak2015-05-112-0/+1111
|/ | | | | | | | * use hardcoded UUIDs for partitions in sfdisk GPT test * output hexdump of the GPT header (it would be possible to use MD5 sum, but from hexdump it's more obvious where is problem) Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: (gpt) add API for raw partition attributesMichael Marineau2015-05-055-0/+78
| | | | | | | | | | | | | | | | | The existing APIs can only toggle individual bits or get and set bits in a complex text representation, making it impractical to use libfdisk for manipulating the GPT partition attribute field in more complex ways such as updating a value that is multiple bits wide. For example priority based partition selection originally designed for ChromeOS includes two integer values that are 4-bits wide. http://www.chromium.org/chromium-os/chromiumos-design-docs/disk-format#TOC-Trusting-the-GPT [kzak@redhat.com: - add new symbols to .sym file and docs - remove unused variables from test program] Signed-off-by: Michael Marineau <michael.marineau@coreos.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* test_uuidd: add commentKarel Zak2015-04-241-0/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* test_uuidd: add pid, tid and idx back to objectKarel Zak2015-04-241-5/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* test_uuidd: make objdump more robustKarel Zak2015-04-241-4/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* test_uuidd: fix includeKarel Zak2015-04-241-2/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* test_uuidd: don't exit on failed pthread_create()Karel Zak2015-04-241-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* test_uuidd: don't exit on failed pthread_create()Karel Zak2015-04-241-8/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>