mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
Passes testsuite.
This commit is contained in:
parent
b35e5ff721
commit
398e78e8cd
|
@ -13,20 +13,20 @@ parallel --semaphorename `tty` --semaphore --wait
|
||||||
echo done
|
echo done
|
||||||
|
|
||||||
echo '### Test semaphore 2 jobs running simultaneously'
|
echo '### Test semaphore 2 jobs running simultaneously'
|
||||||
parallel -u -j2 --semaphore 'echo job1a; sleep 1; echo job1b'
|
parallel -u -j2 --semaphore 'echo job1a 1; sleep 1; echo job1b 3'
|
||||||
sleep 0.1
|
sleep 0.2
|
||||||
parallel -u -j2 --semaphore 'echo job2a; sleep 1; echo job2b'
|
parallel -u -j2 --semaphore 'echo job2a 2; sleep 1; echo job2b 5'
|
||||||
sleep 0.1
|
sleep 0.2
|
||||||
parallel -u -j2 --semaphore 'echo job3a; sleep 1; echo job3b'
|
parallel -u -j2 --semaphore 'echo job3a 4; sleep 1; echo job3b 6'
|
||||||
parallel --semaphore --wait
|
parallel --semaphore --wait
|
||||||
echo done
|
echo done
|
||||||
|
|
||||||
echo '### Test if parallel invoked as sem will run parallel --semaphore'
|
echo '### Test if parallel invoked as sem will run parallel --semaphore'
|
||||||
sem -u -j2 'echo job1a; sleep 1; echo job1b'
|
sem -u -j2 'echo job1a 1; sleep 1; echo job1b 3'
|
||||||
sleep 0.1
|
sleep 0.2
|
||||||
sem -u -j2 'echo job2a; sleep 1; echo job2b'
|
sem -u -j2 'echo job2a 2; sleep 1; echo job2b 5'
|
||||||
sleep 0.1
|
sleep 0.2
|
||||||
sem -u -j2 'echo job3a; sleep 1; echo job3b'
|
sem -u -j2 'echo job3a 4; sleep 1; echo job3b 6'
|
||||||
sem --wait
|
sem --wait
|
||||||
echo done
|
echo done
|
||||||
|
|
||||||
|
|
|
@ -43,20 +43,20 @@ done
|
||||||
20
|
20
|
||||||
done
|
done
|
||||||
### Test semaphore 2 jobs running simultaneously
|
### Test semaphore 2 jobs running simultaneously
|
||||||
job1a
|
job1a 1
|
||||||
job2a
|
job2a 2
|
||||||
job1b
|
job1b 3
|
||||||
job3a
|
job3a 4
|
||||||
job2b
|
job2b 5
|
||||||
job3b
|
job3b 6
|
||||||
done
|
done
|
||||||
### Test if parallel invoked as sem will run parallel --semaphore
|
### Test if parallel invoked as sem will run parallel --semaphore
|
||||||
job1a
|
job1a 1
|
||||||
job2a
|
job2a 2
|
||||||
job1b
|
job1b 3
|
||||||
job2b
|
job3a 4
|
||||||
job3a
|
job2b 5
|
||||||
job3b
|
job3b 6
|
||||||
done
|
done
|
||||||
### Test similar example as from man page - run 2 jobs simultaneously
|
### Test similar example as from man page - run 2 jobs simultaneously
|
||||||
Expect done: 1 2 5 3 4
|
Expect done: 1 2 5 3 4
|
||||||
|
|
Loading…
Reference in a new issue