summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: unset *_DEBUG variablesKarel Zak2012-12-101-0/+4
| | | | | Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add shared subtrees to umount --recursive testKarel Zak2012-11-152-1/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add umount --recursive testKarel Zak2012-11-152-0/+102
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add armv7 lscpu dumpKarel Zak2012-11-122-0/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add ppc64-POWER7-64cpu lscpu dumpKarel Zak2012-11-122-0/+80
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove lscpu /sys dumps without 'possible' CPU maskKarel Zak2012-11-1215-0/+0
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add private mnt_get_kernel_cmdline_option()Karel Zak2012-11-083-0/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.cramfs: compile with -DINCLUDE_FS_TESTS for make checkKarel Zak2012-10-221-1/+1
| | | | | | | | | make check sudo su - cd tests ./run.sh cramfs Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add mising "export" keywordKarel Zak2012-10-151-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: skip ipcs limits overflow when bc is not availableGilles Espinasse2012-10-151-0/+1
| | | | | | | Found only this one while trying as-root tests Signed-off-by: Gilles Espinasse <g.esp@free.fr>
* tests: fix ipcs basic limit when bc is not availableGilles Espinasse2012-10-151-0/+1
| | | | | | | | Skip basic limit test if bc is not available. That happen to be the case when building from sources, following LFS book Signed-off-by: Gilles Espinasse <g.esp@free.fr>
* ddate: remove from util-linuxSami Kerola2012-10-155-5/+0Star
| | | | | | | | | | | See RedHat bug for reasons why the ddate is cleaned up. The reference is where to get the command in future. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=823156 References: https://github.com/bo0ts/ddate Acked-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix mount move test to work with shared mountMilan Broz2012-10-091-3/+16
| | | | | | | | | | | If parent mount for test directory is mounted with shared flag, move mount test fails because kernel rejects mount move operation. Use another directory level and explicitly make parent mount private. (All "modern" systems using system have mounts shared for some reason.) Signed-off-by: Milan Broz <mbroz@redhat.com>
* tests: ignore test if kernel doesn't support minix fsMilan Broz2012-10-091-1/+2
| | | | | | | | Minix mount test returs failure if kernel have no minix support, minix: mkfs ... FAILED (minix/mkfs) ignore test result instead in this case. Signed-off-by: Milan Broz <mbroz@redhat.com>
* tests: fix timezone for cramfsMilan Broz2012-10-091-0/+1
| | | | | | | | cramfs test need explicitly set timezone otherwise ls diff fails with cramfs: mkfs checksums ... FAILED (cramfs/mkfs) Signed-off-by: Milan Broz <mbroz@redhat.com>
* tests: remove encryption loopdev testKarel Zak2012-09-122-65/+0Star
| | | | | Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update build-sys testsKarel Zak2012-08-1514-585/+12Star
| | | | | | | - remove tests programs (no more compiled by default) - add resizepart Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: make compatible with autotoolsKarel Zak2012-08-036-31/+82
| | | | | | | | | | | | | | | | The command 'make check' is called from 'make distcheck' (which is used to generate official util-linux tarballs). It means that tests/ stuff has to be compatible with autotools and differentiate between source and build directories. * remove run-nonroot.sh (merged into run.sh * remove commands.sh.in * all tests and top level run.sh accept --builddir and --srcdir command line options * functions.sh modified to use $top_builddir/tests for output files Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add tests/run-nonroot.sh to automake fileKarel Zak2012-08-031-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add libmount optstr deduplicateKarel Zak2012-08-012-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: standardize fdisk headers in MBR testsKarel Zak2012-08-014-26/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: blkid/md-raid1-part failsBernhard Voelker2012-08-011-4/+6
| | | | | | | [kzak@redhat.com: - I forgot to apply this part of the Bernhard's patch] Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup ts_is_mountedBernhard Voelker2012-07-311-3/+0Star
| | | | | | | * tests/functions.sh (ts_is_mounted): Remove check for canonicalization failure again, because it is now done by ts_canonicalize. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* tests: make blkid/md-raid1-part more robustBernhard Voelker2012-07-311-6/+6
| | | | | | | | | | | * tests/expected/blkid/mk-raid1-part: Replace major and minor number of ID_PART_ENTRY_DISK by a special string. Add ID_FS_UUID and ID_FS_UUID_ENC again, also with a special string. * tests/ts/blkid/md-raid1-part: Before comparing the expected output with the actual output, replace the values of ID_PART_ENTRY_DISK, ID_FS_UUID and ID_FS_UUID_ENC with the speacial strings mentioned above. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* tests: add non-dos mode fdisk testKarel Zak2012-07-312-0/+330
|
* tests: add layout info to dos mode testKarel Zak2012-07-312-0/+191
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: rename doslabel testKarel Zak2012-07-314-26/+28
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add run.sh to make check for non-root usersKarel Zak2012-07-302-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: check for 'make check'Karel Zak2012-07-301-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: move tests to check_PROGRAMSKarel Zak2012-07-301-4/+4
| | | | | | Thanks to Mike Frysinger. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: remove lt- prefixesKarel Zak2012-07-302-2/+5
| | | | | Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: more robust symlinks usageKarel Zak2012-07-301-1/+14
| | | | | Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use ts_is_mounted in mount/regfileBernhard Voelker2012-07-301-2/+2
| | | | | | | If the test directory is on a symlink, then mount/regfile failed because it did not search for the mount point in /proc/mounts canonicalized. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* tests: search mount point in canonicalized form in /proc/mountsBernhard Voelker2012-07-301-1/+4
| | | | | | | | | | | | * tests/functions.sh (ts_is_mounted): Enhance to resolve symlinks in given mount point before grep'ing in /proc/mount. If the test directory is on a symlink, then e.g. tests/ts/cramfs/doubles failed because the kernel keeps the mount entry in a canonicalized form in /proc/mounts while this function searched for it with the original path name. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* tests: update non-lib build testsKarel Zak2012-07-275-0/+276
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update build-sys testsKarel Zak2012-07-2613-1018/+1198
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update partx, add missing whitespaceKarel Zak2012-07-264-10/+10
| | | | | | ... probably removed by git-pull from Sami's repo :-( Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update paths to helpersKarel Zak2012-07-261-7/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update blkid tests with fdisk outputKarel Zak2012-07-264-7/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update fdisk test (default output format changed)Petr Uzel2012-07-266-13/+7Star
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* tests: look: add words fileSami Kerola2012-07-262-3/+4
| | | | | | Archlinux words 2.0-4 package does not have 'apple-pie' in words file. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: partx changed default output formatSami Kerola2012-07-265-15/+20
| | | | | Reference: commit 7cfd1b26437acd45f1e2e75c9648afabb8f5b2da Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: update oddinput testKarel Zak2012-07-231-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* test_sysinfo: fix compiler warning [-Wmissing-prototypes]Karel Zak2012-07-161-19/+10Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: cleanup .gitignore filesKarel Zak2012-06-261-4/+0Star
| | | | | | | - move all binaries to top-level .gitignore - remove unnecessary */.gitignore files Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert tests/ to moduleKarel Zak2012-06-267-133/+76Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add lscpu test for box with 64 CPUsKarel Zak2012-06-212-0/+88
| | | | | | | | | | | | | | | Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 64 On-line CPU(s) list: 0-63 Thread(s) per core: 2 Core(s) per socket: 8 Socket(s): 4 Vendor ID: GenuineIntel ... Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: tests: update oddinput testDavidlohr Bueso2012-06-212-2/+4
| | | | | | | | Adding mbr to the API breaks this test, specifically when reading the first 512 bytes of the MBR, update the expected output for oddinput.toosmall. Also let the test create and remove the test file instead of having it in the expected directory. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* tests: add losetup/mount encryption testKarel Zak2012-05-282-0/+65
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add UFS uuids to resultsKarel Zak2012-05-241-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>