testsuite: niceload: The most fragile tests split off.

This commit is contained in:
Ole Tange 2012-11-20 00:39:25 +01:00
parent eb0bc7fb6c
commit 9c8a03bdf2
4 changed files with 16 additions and 14 deletions

View file

@ -31,15 +31,6 @@ EOF
# force load > 10
while uptime | grep -v age:.[1-9][0-9].[0-9][0-9] >/dev/null ; do (timeout 5 nice burnP6 2>/dev/null &) done
cat <<'EOF' | stdout parallel -j0 -L1
echo '### --soft -f and test if child is actually suspended and thus takes longer'
niceload --soft -t 0.2 -f 0.5 'seq 1000000 | wc;echo This should finish last'
(sleep 1; seq 1000000 | wc;echo This should finish first)
EOF
# force load > 10
while uptime | grep -v age:.[1-9][0-9].[0-9][0-9] >/dev/null ; do (timeout 5 nice burnP6 2>/dev/null &) done
cat <<'EOF' | stdout parallel -j0 -k -L1
echo '### -H and --hard'
niceload -H -l 9.9 uptime | grep ':.[1-9][0-9].[0-9][0-9],' || echo OK-l9.9

View file

@ -0,0 +1,11 @@
#!/bin/bash
# force load > 10
while uptime | grep -v age:.[1-9][0-9].[0-9][0-9] >/dev/null ; do (timeout 5 nice burnP6 2>/dev/null &) done
cat <<'EOF' | stdout parallel -j0 -L1
echo '### --soft -f and test if child is actually suspended and thus takes longer'
niceload --soft -t 0.2 -f 0.5 'seq 1000000 | wc;echo This should finish last'
(sleep 1; seq 1000000 | wc;echo This should finish first)
EOF

View file

@ -7,11 +7,6 @@ OK--runmem
### -N and --noswap. Must give 0
-N 0
--noswap 0
### --soft -f and test if child is actually suspended and thus takes longer
1000000 1000000 6888896
This should finish first
1000000 1000000 6888896
This should finish last
### -H and --hard
OK-l9.9
OK-l9

View file

@ -0,0 +1,5 @@
### --soft -f and test if child is actually suspended and thus takes longer
1000000 1000000 6888896
This should finish first
1000000 1000000 6888896
This should finish last