summaryrefslogtreecommitdiff
path: root/testsuite/config
Commit message (Collapse)AuthorAgeFilesLines
* testsuite: Update the library tests for new locationCraig Small2022-08-291-3/+3
| | | | Signed-off-by: Craig Small <csmall@dropbear.xyz>
* build-sys: Update tests to new binary locationsCraig Small2022-08-291-1/+1
|
* testsuite shmid can be hex tooCraig Small2022-05-031-2/+2
| | | | | | | | | | Previously the match for shmid was \d+ but the variable is printed as a hex number, updated the regex to suit. Added some changes for pmap test so if the test_shm process fails we just skip past it. Signed-off-by: Craig Small <csmall@dropbear.xyz>
* testsuite: Add check for shared memoryCraig Small2022-04-261-0/+21
| | | | | | | | | | | Created a test process test_shm that allocates a shared memory segment and prints the segment ID. pmap testsuite runs pmap to check that the segment is found. The value returned by shmget() is the same value that is printed in the fifth column /proc/<PID>/maps Signed-off-by: Craig Small <csmall@dropbear.xyz>
* testsuite: Return error if tty is TTYCraig Small2022-03-221-0/+5
| | | | | | | | | | | | | | In some build systems, such as the Debian pbuilders, the environment is strange. The tty is called "TTY" which causes some of the ps tests to fail. This commit checks for that specific result and returns "" so the tests can be bypassed. Replaces Debian patch fix_checks. References: https://salsa.debian.org/debian/procps/-/blob/debian/2%253.3.17-7/debian/patches/fix_checks
* sysctl: Support systemd glob patternsCraig Small2021-09-151-0/+9
| | | | | | | | | | | | | | systemd-sysctl handles glob patterns along with overrides and exceptions. Now the procps sysctl does it too. The return value for sysctl is consistently either 0 or 1. Added tests to check sysctl functions. References: procps-ng/procps#191 Signed-off-by: Craig Small <csmall@dropbear.xyz>
* build-sys: Enable testing of sigqueueCraig Small2020-05-111-0/+33
| | | | | | | | | | | | | | | The referenced commits enavled both pkill and kill to send an integer to the killed or signalled process. The test_process now will report on the integer if sent and the testsuite changes take advantage of this new feature. Another process make/destroy set had to be made as using spawn instead of exec changes both the SID and TTY for the underlying process, making other tests fail. References: commit 7d55409b82602dac540c011000c9c5abedb5158a commit 2b804a532a90a98bccc5255a728da9076a5e4f4f
* testsuite: pgrep: Provide test for matching a more than 4k command line; ↵Clay Baenziger2019-09-211-3/+14
| | | | beware as TCL does not seem to match on strings >4k
* Do not link test process to libprocpsCraig Small2015-06-141-1/+1
| | | | | The test process introduced at 420cd9c7 incorrectly linked to libprocps which made the CI runner fail.
* Create test processCraig Small2015-06-131-11/+10
| | | | | | | | | For the test suite, procps used to use sleep which would just create a process or two to test the tools against. Some setups coreutils creates all programs including sleep into one blob which means a lot of the tests fail, see issue #2 procps has its own sleep program now.
* Fix some sched and tty testsCraig Small2015-05-091-0/+9
| | | | | | | | The ps sched test has been disabled. There are too many odd build farms this fails in strange ways. Other odd build farms have no tty and so some tests check for no tty and skip if not found.
* Reliably kill test processesCraig Small2014-07-011-0/+15
| | | | | | | | | | | | | | | It seems command -v also includes built-ins so checking for kill is useless because it finds the built-in and those machines or environments that have no /bin/kill fail at the check stage. Oh and then TCL exec doesn't spawn a shell. After reading way too many TCL websites, I believe this should fix the problem. TCL quoting is... different to say the least but it works reliably here. The script now even picked up a typo elsewhere which was nice. This change should stop the intermittent FTBFS bugs from the Debian pbuilders, I hope! You'd think kill $var wouldn't be this difficult.
* procps-ng : tests, remove which dependencyGilles Espinasse2013-05-261-1/+1
| | | | | | | which is a separate package that may not be available and is not yet build on Linux from scratch build order. Instead use posix command -v. command -v is a builtin working with bash-4.2, 3.0.25 or even old bash-2.05 or current debian dash Signed-off-by: Gilles Espinasse <g.esp@free.fr>
* Revert "Fixed last_value for loops over 99999"Gilles Espinasse2013-04-071-1/+1
| | | | | | | This reverts bogus commit 2840d7f4c66a85676c79eeb2c89db4d450fd3fc4. 99 was already added with 7f15f07b3f0d4a9c1e1a39d95f8e784edb65e041 Signed-off-by: Gilles Espinasse <g.esp@free.fr>
* Fixed last_value for loops over 99999Craig Small2013-03-251-1/+1
| | | | | | For large loops, the value 999,999 was big, but not big enough. References: http://www.linuxfromscratch.org/lfs/view/development/chapter06/procps-ng.html
* testsuite: increasing the upper limit of permitted valuesJaromir Capik2013-03-141-12/+12
| | | | | | | | This commit increases the upper limit of permitted values in the expect_table_dsc procedure from 999,999 to 99,999,999. The previous value was insufficient and causing the slabtop test to fail on build systems where the number of objects exceeds one milion.
* Debian Bug report #526355Alfredo Esteban2012-08-291-2/+2
| | | | | | | | | | http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526355 Flag -f doesn't modify output anymore. There is a new flag -a to show full command line processes. Signed-off-by: Alfredo Esteban <aedelatorre@gmail.com>
* Set the locale to C.Craig Small2012-06-301-0/+1
| | | | | | Some checks will fail due to different locales. For example 1.2 will become 1,2 so the match fails. Problem reported by Alfredo Esteban with fix suggested by Mike Frysinger
* tests: do not assume sleep command pathSami Kerola2012-04-161-2/+3
| | | | | | | | The testsuite failed on archlinux which has sleep in /usr/bin/ instead of /bin/ directory. This commit will make expect to use $PATH to determine where sleep is. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* ps abort causes problems in testsuiteCraig Small2012-03-031-0/+1
| | | | | | | | | Under certain circumstances, using abort() when either make check or make distcheck puts ps into an infinite loop around the function catastrophic_failure() in ps and the C library raise and abort functions. Using exit removes this problem and does almost the same thing.
* Updated testsuite files for new NLS outputCraig Small2012-01-021-1/+6
|
* Added slabtop testsCraig Small2011-12-021-0/+40
|
* fixed small tests for pmap and ps checksCraig Small2011-12-011-3/+18
|
* More testing added for procpsCraig Small2011-11-301-36/+22
|
* added uptime and vmstat testsCraig Small2011-11-271-0/+10
|
* rearranged testsuiteCraig Small2011-11-271-2/+29
|
* more free tests and pgrep testsCraig Small2011-11-271-0/+8
| | | | | Almost fully testing all features of pgrep now. free had additional tests added to it
* new free commandsCraig Small2011-11-231-1/+32
|
* testsuite fixesCraig Small2011-11-231-0/+8