mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 14:07:55 +00:00
testsuite: niceload: The most fragile tests split off.
This commit is contained in:
parent
eb0bc7fb6c
commit
9c8a03bdf2
|
@ -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
|
||||
|
|
11
testsuite/tests-to-run/niceload03.sh
Normal file
11
testsuite/tests-to-run/niceload03.sh
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
5
testsuite/wanted-results/niceload03
Normal file
5
testsuite/wanted-results/niceload03
Normal 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
|
Loading…
Reference in a new issue