rm -f tests/root
ln -s root1 tests/root
-LC_ALL=C TZ=GMT ./pidstat 2 6 -t -e sleep 1 > tests/out.pidstat-e.tmp && diff -u tests/expected.pidstat-e tests/out.pidstat-e.tmp
+LC_ALL=C TZ=GMT ./pidstat 2 6 -t -e sleep 3 > tests/out.pidstat-e.tmp && diff -u tests/expected.pidstat-e tests/out.pidstat-e.tmp
--- /dev/null
+rm -f tests/root
+ln -s root1 tests/root
+LC_ALL=C TZ=GMT ./pidstat -e sleep 2 > tests/out2.pidstat-e.tmp && diff -u tests/expected2.pidstat-e tests/out2.pidstat-e.tmp
05420 LC_ALL=C TZ=GMT ./pidstat -t -rw -u -U foo 2 1 > tests/out.pidstat-Ufoo.tmp
05430 LC_ALL=C TZ=GMT ./pidstat -t -rw -u -U root 2 1 > tests/out.pidstat-Uroot.tmp
05440 LC_ALL=C TZ=GMT ./pidstat -t -svwu -p 21342,1234,7900,9009 2 6 > tests/out.pidstat-plist.tmp
-05450 LC_ALL=C TZ=GMT ./pidstat 2 6 -t -e sleep 1 > tests/out.pidstat-e.tmp
+05450 LC_ALL=C TZ=GMT ./pidstat 2 6 -t -e sleep 3 > tests/out.pidstat-e.tmp
+05452 LC_ALL=C TZ=GMT ./pidstat -e sleep 2 > tests/out2.pidstat-e.tmp
===== Tests to be done at the very end
09900 grep -i FIXME *.c *.h *.in && exit 1 || exit 0
--- /dev/null
+Linux 1.2.3-TEST (SYSSTAT.TEST) 01/01/70 _x86_64_ (9 CPU)
+
+00:00:00 UID PID %usr %system %guest %wait %CPU CPU Command
+00:00:00 1000 8741 0.00 0.00 0.00 0.00 0.00 0 firefox
+Average: 1000 8741 0.00 0.00 0.00 0.00 0.00 - firefox
--- /dev/null
+if [ ! -x configure -o ! -x do_test -o ! -x iconfig ]; then
+ echo Not executable
+ exit 1
+fi
Extra tests
+==== Global tests
+0010 Check that configure, do_test and iconfig are executable
+
==== PCP tests
0100 LC_ALL=C pmdumplog -a tests/pcpar > tests/extra/out.pcpar.tmp
0110 LC_ALL=C ./sadf -l -O pcparchive=tests/extra/pcpar-ssr tests/data-ssr.tmp -- -m FAN,TEMP,IN