summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fsck.cramfs: allow smaller superblock sizesRuediger Meier2014-05-191-1/+2
| | | | | | | | | | We are already fine with checking for different endianess. Now we also succeed if systems's page size does not match. Note that page_size is only really used if INCLUDE_FS_TESTS is defined, see followups. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests, fix cramfs for systems with certain page sizesRuediger Meier2014-05-182-3/+6
| | | | | | | This is only a partial fix to get comparable image md5sums. fsck.cramfs still fails if system page size > 4096 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* Merge branch 'tests-mount' of https://github.com/rudimeier/util-linuxKarel Zak2014-05-164-4/+27
|\ | | | | | | | | | | | | | | * 'tests-mount' of https://github.com/rudimeier/util-linux: tests: use ts_mount for cramfs tests: ts_mount knows which fs is expected tests: ts_mount validates error message tests, add function ts_mount
| * tests: use ts_mount for cramfsRuediger Meier2014-05-162-2/+2
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: ts_mount knows which fs is expectedRuediger Meier2014-05-162-2/+4
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: ts_mount validates error messageRuediger Meier2014-05-161-3/+9
| | | | | | | | | | | | | | Skip only if mount reports a non-empty fs which is not available in /proc/filesystems. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests, add function ts_mountRuediger Meier2014-05-162-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to generalize mounts similar to how we do it already in minix/mkfs. Currently most of our other checks just fail if "fs not supported". Note that the new function checks a bit stronger than before in minix/mkfs. It respects mount's return value and stderr goes to $TS_OUTPUT too. It's a bit ugly that we write to $TS_OUTPUT from inside of the function. But if the caller would do it then we couldn't ts_skip and the whole function would be pointless. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | Merge branch 'tests-check-prog' of https://github.com/rudimeier/util-linuxKarel Zak2014-05-1636-22/+55
|\ \ | | | | | | | | | | | | | | | | | | * 'tests-check-prog' of https://github.com/rudimeier/util-linux: tests: check for mkfs.ext{2,3,4} tests: consolidate some checks for commands tests: add function ts_check_prog
| * | tests: check for mkfs.ext{2,3,4}Ruediger Meier2014-05-1527-0/+29
| | | | | | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * | tests: consolidate some checks for commandsRuediger Meier2014-05-158-22/+21Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use ts_check_prog for mdadm, readelf, file, ntpdate, bc (mdadm was not always checked so far). There are some positive side-effects. We are using always $PATH now instead of randomly hardcoded /usr/bin, /sbin, etc. If we ever want to change this again, we should do this generically in ts_init. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * | tests: add function ts_check_progRuediger Meier2014-05-151-0/+5
| |/ | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | lslogins: add FAILED-LOGIN to pretty outputKarel Zak2014-05-161-1/+2
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lslogins: sync man page and usage()Karel Zak2014-05-162-79/+81
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lslogins: improve pretty outputKarel Zak2014-05-161-28/+44
| | | | | | | | | | | | | | | | * use Yes/No * print all available information (columns) * cleanup code Signed-off-by: Karel Zak <kzak@redhat.com>
* | lslogins: NLS for all messagesKarel Zak2014-05-161-27/+28
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lslogins: conding style changesKarel Zak2014-05-161-343/+340Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lslogins: improve supplementary groups code, add SUPP-GIDSKarel Zak2014-05-161-98/+55Star
| | | | | | | | | | | | | | | | * don't build list, but directly create a string * don't mix IDs and group names on output * add SUPP-GIDS to print only IDs Signed-off-by: Karel Zak <kzak@redhat.com>
* | lslogins: align to right 0|1 columnsKarel Zak2014-05-151-4/+4
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lslogins: cleanup status[] usageKarel Zak2014-05-151-42/+25Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lslogins: cleanup fill_table()Karel Zak2014-05-151-62/+36Star
| | | | | | | | | | | | | | * check xasprintf() return code is unnecessary * just check all scols_line_set_data() return codes on one place Signed-off-by: Karel Zak <kzak@redhat.com>
* | lslogins: mention --time-format in usageOndrej Oprala2014-05-151-1/+2
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* | lslogins: fix option exclusivityOndrej Oprala2014-05-151-1/+1
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* | lslogins: add option --time-formatOndrej Oprala2014-05-151-0/+31
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* | lslogins: comment-in an expensive reallocOndrej Oprala2014-05-151-1/+2
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* | lslogins: add option --isoOndrej Oprala2014-05-151-9/+10
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* | lslogins: add support for multiple time formatsOndrej Oprala2014-05-151-34/+74
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* | lslogins: pretty printing and extended -l,-gOndrej Oprala2014-05-152-68/+147
| |
* | lslogins: also add readutmp.cOndrej Oprala2014-05-151-0/+76
| |
* | lslogins: add readtump.h headerOndrej Oprala2014-05-151-0/+28
| |
* | lslogins: make it workOndrej Oprala2014-05-151-270/+344
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* | lslogins: use thread-safe functionsOndrej Oprala2014-05-151-27/+43
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* | lslogins: store users in a treeOndrej Oprala2014-05-151-170/+190
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* | lslogins: add functionalityOndrej Oprala2014-05-159-88/+891
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* | login: extract get_hushlogin_statusOndrej Oprala2014-05-153-118/+124
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* | lslogins: move to login-utilsOndrej Oprala2014-05-154-10/+13
| | | | | | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* | lslogins(1): skeleton and argparsing for a new utilityOndrej Oprala2014-05-154-0/+516
|/ | | | Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
* Merge branch 'travis-root-checks-v2' of https://github.com/rudimeier/util-linuxKarel Zak2014-05-1450-160/+233
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'travis-root-checks-v2' of https://github.com/rudimeier/util-linux: travis-ci: enable root checks travis-ci: minor cleanup and speedup tests: introduce TS_CMD_UUIDGEN (never use installed one) tests, don't write TS_DEVICE to stdout anymore tests: ts_scsi_debug_init must not run in a subshell tests: cleanup ts_scsi_debug_init tests: some more tests need loop support tests: ts_device_init requires loop support tests: use ts_check_losetup in losetup test tests: add function ts_check_losetup tests: ts_device_init remove useless error handling
| * travis-ci: enable root checksRuediger Meier2014-05-131-3/+12
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * travis-ci: minor cleanup and speedupRuediger Meier2014-05-131-13/+8Star
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: introduce TS_CMD_UUIDGEN (never use installed one)Ruediger Meier2014-05-135-4/+10
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests, don't write TS_DEVICE to stdout anymoreRuediger Meier2014-05-131-1/+0Star
| |
| * tests: ts_scsi_debug_init must not run in a subshellRuediger Meier2014-05-1317-130/+146
| | | | | | | | | | | | | | | | | | | | | | ts_skip and ts_die won't work from subshell. Now we simply use TS_DEVICE which is globally set in that function. I've made sure that we never change TS_DEVICE variable after we've got it. So we could use it again for cleanup on exit in ts_{finalize,die,skip} functions. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: cleanup ts_scsi_debug_initRuediger Meier2014-05-131-6/+7
| | | | | | | | | | | | | | | | Sort out global and local vars. Now we set TS_DEVICE globally to be use later. Skip really quiet if modprobe fails. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: some more tests need loop supportRuediger Meier2014-05-132-0/+2
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: ts_device_init requires loop supportRuediger Meier2014-05-1328-1/+28
| | | | | | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: use ts_check_losetup in losetup testRuediger Meier2014-05-131-0/+9
| | | | | | | | | | | | | | In losetup test we have to handle the special case that ts_check_losetup requires a working losetup binary. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: add function ts_check_losetupRuediger Meier2014-05-131-0/+12
| | | | | | | | | | | | Unfortunately losetup -f does not return an error nowadays. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
| * tests: ts_device_init remove useless error handlingRuediger Meier2014-05-121-7/+4Star
| | | | | | | | | | | | | | Don't know why we should deinit the empty string. This patch prepares further refactoring or error handling. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* | tests: add .BE hexdump test results (from s390)Karel Zak2014-05-1423-0/+707
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | Merge branch 'tests-known' of https://github.com/rudimeier/util-linuxKarel Zak2014-05-148-18/+106
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'tests-known' of https://github.com/rudimeier/util-linux: tests, script/race is known to fail tests: script/race would work with variable loop count tests: ipcs/limits2 is known to fail tests: fix hexdump for big endian tests, add missing output for hexdump tests: fix hexdump, add ts_finalize tests: fix "KNOWN FAILED" for subtests