summaryrefslogtreecommitdiffstats
path: root/tests/ts/ipcs
Commit message (Collapse)AuthorAgeFilesLines
* tests: add missing ts_check_test_command callsKarel Zak2019-03-045-0/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add ipcslimits lockRuediger Meier2018-03-092-0/+4
| | | | | | | These two tests conflict. Interestingly, this is our first lock for a non-root check. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: grep's short option -A is more portableRuediger Meier2017-06-011-13/+13
| | | | | | | Noticed on Alpine Linux/busybox. Reported-by: Assaf Gordon <assafgordon@gmail.com> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* ipcs: make shmall overflow a bit less worseRuediger Meier2017-04-032-6/+6
| | | | | | | | | | | | | | | | | Still no large integer support but on overflow we print now the largest possible value, maybe even the largest one which makes sense at all. So on x86_64 systems we'll see now: $ echo "4503599627370496" > /proc/sys/kernel/shmall $ ipcs -m -l | grep "max total" max total shared memory (kbytes) = 18014398509481980 rather than this: $ ipcs -m -l | grep "max total" max total shared memory (kbytes) = 0 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* misc: Fix various typosSebastian Rasmussen2016-05-311-1/+1
| | | | | | | Fix various typos in error messages, warnings, debug strings, comments and names of static functions. Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
* tests: skip ipcs test which require /procRuediger Meier2016-03-211-0/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: skip nonroot before checking for progs in PATHRuediger Meier2015-12-101-1/+0Star
| | | | | | | | | | The least annoying and most useful order is this one: 1. check for compiled UL commands 2. check for root 3. check for loop support 4. check for external progs Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: don't check the current ipcs limitsKarel Zak2014-12-192-7/+7
| | | | | | | | | | The ipcs/limit test checks the current kernel limits, but we have no clue about the current setting, so on on 64bit system it may overflow. It's better to test for well known limits only. For the random setting is there ipcs/limit2 test. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix the ipcs test for shmall being too big to showKarel Zak2014-10-011-1/+1
| | | | | | Based on hints from Adam Sampson, Ruediger Meier and Sami Kerola. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: make ipcs limit calculations work when numbers are largeSami Kerola2014-08-111-1/+2
| | | | | | | | | | Test suite failed when I ran it with kernel 3.16. Error is the following. tests/ts/ipcs/limits2: line 31: [: 18446744073692774399: integer expression expected Reference: http://lkml.iu.edu/hypermail/linux/kernel/1406.0/01869.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: consolidate some checks for commandsRuediger Meier2014-05-152-3/+2Star
| | | | | | | | | | | 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: ipcs/limits2 is known to failRuediger Meier2014-05-131-0/+5
| | | | | | | See github issue #51, comment 2 https://github.com/karelzak/util-linux/issues/51 Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add basic test case for ipcs -m -i nRuediger Meier2014-03-131-1/+3
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add basic test case for ipcs -s -i nRuediger Meier2014-03-131-1/+3
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add basic test case for ipcs -q -i nRuediger Meier2014-03-131-0/+2
| | | | Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: quote generated arguments for ipcrmRuediger Meier2014-03-133-6/+6
| | | | | | | | In case that awk fails to parse out the right id the next ipc command will give us a clear error message instead of telling us to use correct syntax. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: check commands needed for running a test existSami Kerola2014-03-076-0/+20
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: avoid executing dirname(1) commandSami Kerola2014-02-176-6/+6
| | | | | | Bash parameter expansion does the same thing. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: add ipcmk(1) and ipcrm(1) checksSami Kerola2013-01-254-0/+125
| | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> 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>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-304-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: cleanup ts/ipcsKarel Zak2009-02-114-11/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add support for subdirs to basic test functionsKarel Zak2009-02-113-7/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: create subdirs for test scriptsKarel Zak2009-02-114-0/+226
Signed-off-by: Karel Zak <kzak@redhat.com>