1. 09 Jul, 2016 1 commit
    • Craig Small's avatar
      misc: testsuite to source aux scripts correctly · 6118be80
      Craig Small authored
      Because I don't know how to redirect properly in tcl, there are
      some small scripts that do this for me. With your standard
      make check, all is good because the scripts and the binary are
      in the usual spots.
      make distcheck however puts them all over the place. The binary is
      in a different tree to the test and aux scripts. The change now
      tells where aux script where its binary is.
  2. 03 Jan, 2016 1 commit
  3. 14 Jun, 2015 1 commit
    • Craig Small's avatar
      testsuite: fix ps signals test · 898e3cc3
      Craig Small authored
      On some setups the signals count can change and be truncated. You
      will notice this because the number will have "<" prepended. The
      testsuite didn't handle this.
      You could either get:
               BLOCKED          BLOCKED          BLOCKED           CAUGHT
      CAUGHT          CATCHED
      0000000000000000 0000000000000000 0000000000000000 00000001f3d1fef9 00000001f3d1fef9 00000001f3d1fef9
       00000000  00000000  00000000 <f3d1fef9 <f3d1fef9 <f3d1fef9
  4. 13 Jun, 2015 3 commits
    • Craig Small's avatar
      Do not link test process to libprocps · eb6190e6
      Craig Small authored
      The test process introduced at 420cd9c7 incorrectly linked to
      libprocps which made the CI runner fail.
    • Craig Small's avatar
      Skip tests where /proc/vmstat unreadable · 54fdbb19
      Craig Small authored
      testsuite would fail if /proc/vmstat was unreadable.
      Issue #3 brought up by Mike Frysinger.
      test script explicitly checks to see if it is readable and
      sets these tests to unsupported if not.
    • Craig Small's avatar
      Create test process · 420cd9c7
      Craig Small authored
      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.
  5. 10 May, 2015 4 commits
  6. 09 May, 2015 2 commits
    • Craig Small's avatar
      pgrep SID=1 is valid · 34a1194a
      Craig Small authored
      On most systems the only process with a SID=1 is init
      and certainly not a test sleep.  On docker systems this
      test program IS on SID=1 and so our "impossible SID" becomes
    • Craig Small's avatar
      Fix some sched and tty tests · 4050148a
      Craig Small authored
      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.
  7. 03 Apr, 2015 1 commit
    • Craig Small's avatar
      free: Use IEC units · f8e98b65
      Craig Small authored
      Free always used 1024 based units but used the confusing old style
      kilo,mega etc.
      This change changes the names to kibi,mebi for 1024 based divisors
      and kilo,mega for 1000 based divisors or IEC units.
      It also checks if you try to set two units, e.g free -k -m
      Petabyte and Pebibyte have been added.
      If you used to use the long options such as --mega these will now
      actually print megabytes (they previously printed mebibytes).
      The short options are being used on the IEC units
      References: https://www.gitorious.org/procps/procps/merge_requests/38Signed-off-by: Craig Small's avatarCraig Small <csmall@enc.com.au>
  8. 19 Aug, 2014 1 commit
  9. 01 Jul, 2014 1 commit
    • Craig Small's avatar
      Reliably kill test processes · cacba561
      Craig Small authored
      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.
  10. 27 May, 2014 1 commit
    • Craig Small's avatar
      Reduced partition type check · f4cc9720
      Craig Small authored
      vmstat -p checks used to fail on systems with odd
      partition tables, including some Debian buildd servers.
      This change limits what sort of test partitions are used,
      otherwise the test is skipped.
      There probably are other valid partitions, these can be added
      later, if known.
  11. 02 Feb, 2014 1 commit
    • Craig Small's avatar
      Update help files · 8e7ef322
      Craig Small authored
      Benno Schulenberg suggested some changes to the help messages
      to provide some consistency and clarity for both the users and
      translators of procps.
      The test needed to be updated as the pmap output changed too.
      Signed-off-by: Craig Small's avatarCraig Small <csmall@enc.com.au>
  12. 29 Jan, 2014 1 commit
    • Craig Small's avatar
      Check for presence of disks in vmstat · 5a34ff0a
      Craig Small authored
      vmstat -d or vmstat -p would crash mysteriously under different
      circumstances. The problem was eventually tracked down to /sys not
      being mounted which meant is_disk() always returned false.
      The partition would then be attempted to be linked to a non-existent
      disk causing a segfault.
      vmstat will now not link to a disk if none exists.
      The change in testing will skip those tests when /sys/block doesn't
      Many thanks to Daniel Schepler for his analysis and suggestions.
      Bug-Debian: http://bugs.debian.org/736628
  13. 03 Dec, 2013 1 commit
  14. 09 Oct, 2013 1 commit
  15. 31 Jul, 2013 1 commit
  16. 25 May, 2013 3 commits
  17. 07 Apr, 2013 1 commit
  18. 06 Apr, 2013 1 commit
  19. 25 Mar, 2013 2 commits
  20. 18 Mar, 2013 1 commit
  21. 14 Mar, 2013 2 commits
    • Jaromir Capik's avatar
      testsuite: increasing the upper limit of permitted values · 7f15f07b
      Jaromir Capik authored
      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.
    • jim warner's avatar
      miscellaneous: clean up trailing whitespace throughout · fe75e26a
      jim warner authored
      The entire tree's polluted with inappropriate trailing
      whitespace. This commit rids our environment of all of
      those useless keystrokes. Unfortunately, it sure ain't
      a permanent solution and requires every contributor to
      instruct their editor(s) to prevent or eliminate them.
      Plus it's strongly recommended we all insert something
      like what's shown below to our '.gitconfig' file so as
      to provide at least some warnings when we try to apply
      any patches (git am) that do contain the #@!%& things!
      ~/.gitconfig excerpt ---------------------------------
        whitespace = trailing-space, space-before-tab, blank-at-eof
        whitespace = warn
      --------------------------------- ~/.gitconfig excerpt
      Signed-off-by: jim warner's avatarJim Warner <james.warner@comcast.net>
  22. 26 Dec, 2012 1 commit
  23. 23 Dec, 2012 1 commit
    • Craig Small's avatar
      Added pmap -X and -XX tests · 1f1201f8
      Craig Small authored
      The two extra extended pmap options were not tested previously.
      We test against our known process and process 1 which we should
      not be able to get data for.
      Unfortunately, the tests cannot catch SEGSEGVs but they should.
      Signed-off-by: Craig Small's avatarCraig Small <csmall@enc.com.au>
  24. 13 Dec, 2012 1 commit
  25. 31 Oct, 2012 1 commit
  26. 30 Oct, 2012 1 commit
  27. 29 Aug, 2012 1 commit
  28. 30 Jun, 2012 1 commit
    • Craig Small's avatar
      Set the locale to C. · 30d5db1a
      Craig Small authored
      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
  29. 28 Jun, 2012 1 commit
  30. 24 Jun, 2012 1 commit