parallel/testsuite/wanted-results/sem01

99 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

par_2jobs ### Test similar example as from man page - run 2 jobs simultaneously
par_2jobs Expect done: 1 2 5 3 4
par_2jobs Scheduling 5
par_2jobs starting 5
par_2jobs Scheduling 1
par_2jobs starting 1
par_2jobs Scheduling 2
par_2jobs done 1
par_2jobs starting 2
par_2jobs Scheduling 3
par_2jobs done 2
par_2jobs starting 3
par_2jobs Scheduling 4
par_2jobs done 5
par_2jobs starting 4
par_2jobs done 3
par_2jobs done 4
par_bg_p_should_error ### Test bug #33621: --bg -p should give an error message
par_bg_p_should_error parallel: Error: Jobs running in the background cannot be interactive.
par_fg_line-buffer ### Failed on 20141226
par_fg_line-buffer OK
par_fg_then_bg ### Test --fg followed by --bg
par_fg_then_bg 1
par_fg_then_bg 2
par_fg_then_bg 3
par_fg_then_bg 4
par_fg_then_bg 5
par_fg_then_bg 6
par_fg_then_bg 7
par_fg_then_bg 8
par_fg_then_bg 9
par_fg_then_bg 10
par_fg_then_bg 11
par_fg_then_bg 12
par_fg_then_bg 13
par_fg_then_bg 14
par_fg_then_bg 15
par_fg_then_bg 16
par_fg_then_bg 17
par_fg_then_bg 18
par_fg_then_bg 19
par_fg_then_bg 20
par_fg_then_bg 21
par_fg_then_bg 22
par_fg_then_bg 23
par_fg_then_bg 24
par_fg_then_bg 25
par_fg_then_bg 26
par_fg_then_bg 27
par_fg_then_bg 28
par_fg_then_bg 29
par_fg_then_bg 30
par_fg_then_bg 31
par_fg_then_bg 32
par_fg_then_bg 33
par_fg_then_bg 34
par_fg_then_bg 35
par_fg_then_bg 36
par_fg_then_bg 37
par_fg_then_bg 38
par_fg_then_bg 39
par_fg_then_bg 40
par_mutex ### Test mutex. This should not mix output
par_mutex 1
par_mutex 2
par_mutex 3
par_mutex 4
par_mutex 5
par_mutex 6
par_mutex 7
par_mutex 8
par_mutex 9
par_mutex 10
par_mutex 11
par_mutex 12
par_mutex 13
par_mutex 14
par_mutex 15
par_mutex 16
par_mutex 17
par_mutex 18
par_mutex 19
par_mutex 20
par_mutex done
par_semaphore-timeout ### Test --st +1/-1
par_semaphore-timeout A normal-start
par_semaphore-timeout parallel: Warning: Semaphore timed out. Stealing the semaphore.
par_semaphore-timeout B st1-start
par_semaphore-timeout C normal-end
par_semaphore-timeout parallel: Warning: Semaphore timed out. Exiting.
par_semaphore-timeout D st1-end
par_stdin ### bug #60579: Sem: Allow reading from stdin and setting -a
par_stdin 10 10 21
par_stdin 10 10 21
par_stdin 10 10 21
par_stdin 10 10 21
par_stdin parallel: Error: A semaphore cannot take input from more files
par_stdin