mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-22 22:17:54 +00:00
291 lines
11 KiB
Plaintext
291 lines
11 KiB
Plaintext
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_exit ### Exit values
|
|
par_exit 0 0
|
|
par_exit 1 1
|
|
par_exit 10 10
|
|
par_exit 100 100
|
|
par_exit 101 101
|
|
par_exit 102 102
|
|
par_exit 222 222
|
|
par_exit 255 255
|
|
par_exit ### Exit values - signal
|
|
par_exit 0 Bash exit value 0
|
|
par_exit 0 Sem exit value 0
|
|
par_exit 1 Bash exit value 129
|
|
par_exit 1 Sem exit value 129
|
|
par_exit 1 environment: line 1: PID Hangup bash -c 'kill -'$1' $$'
|
|
par_exit 2 Bash exit value 130
|
|
par_exit 2 Sem exit value 130
|
|
par_exit 3 Bash exit value 0
|
|
par_exit 3 Sem exit value 0
|
|
par_exit 4 Bash exit value 132
|
|
par_exit 4 Sem exit value 132
|
|
par_exit 4 environment: line 1: PID Illegal instruction (core dumped) bash -c 'kill -'$1' $$'
|
|
par_exit 5 Bash exit value 133
|
|
par_exit 5 Sem exit value 133
|
|
par_exit 5 environment: line 1: PID Trace/breakpoint trap (core dumped) bash -c 'kill -'$1' $$'
|
|
par_exit 6 Bash exit value 134
|
|
par_exit 6 Sem exit value 134
|
|
par_exit 6 environment: line 1: PID Aborted (core dumped) bash -c 'kill -'$1' $$'
|
|
par_exit 7 Bash exit value 135
|
|
par_exit 7 Sem exit value 135
|
|
par_exit 7 environment: line 1: PID Bus error (core dumped) bash -c 'kill -'$1' $$'
|
|
par_exit 8 Bash exit value 136
|
|
par_exit 8 Sem exit value 136
|
|
par_exit 8 environment: line 1: PID Floating point exception(core dumped) bash -c 'kill -'$1' $$'
|
|
par_exit 9 Bash exit value 137
|
|
par_exit 9 Sem exit value 137
|
|
par_exit 9 environment: line 1: PID Killed bash -c 'kill -'$1' $$'
|
|
par_exit 10 Bash exit value 138
|
|
par_exit 10 Sem exit value 138
|
|
par_exit 10 environment: line 1: PID User defined signal 1 bash -c 'kill -'$1' $$'
|
|
par_exit 11 Bash exit value 139
|
|
par_exit 11 Sem exit value 139
|
|
par_exit 11 environment: line 1: PID Segmentation fault (core dumped) bash -c 'kill -'$1' $$'
|
|
par_exit 12 Bash exit value 140
|
|
par_exit 12 Sem exit value 140
|
|
par_exit 12 environment: line 1: PID User defined signal 2 bash -c 'kill -'$1' $$'
|
|
par_exit 13 Bash exit value 141
|
|
par_exit 13 Sem exit value 141
|
|
par_exit 14 Bash exit value 0
|
|
par_exit 14 Sem exit value 0
|
|
par_exit 15 Bash exit value 143
|
|
par_exit 15 Sem exit value 143
|
|
par_exit 15 Terminated
|
|
par_exit 16 Bash exit value 144
|
|
par_exit 16 Sem exit value 144
|
|
par_exit 16 environment: line 1: PID Stack fault bash -c 'kill -'$1' $$'
|
|
par_exit 17 Bash exit value 0
|
|
par_exit 17 Sem exit value 0
|
|
par_exit 18 Bash exit value 0
|
|
par_exit 18 Sem exit value 0
|
|
par_exit parallel: Warning: This job was killed because it timed out:
|
|
par_exit parallel: Warning: test_signal 19
|
|
par_exit parallel: Warning: This job was killed because it timed out:
|
|
par_exit parallel: Warning: test_signal 20
|
|
par_exit parallel: Warning: This job was killed because it timed out:
|
|
par_exit parallel: Warning: test_signal 21
|
|
par_exit parallel: Warning: This job was killed because it timed out:
|
|
par_exit parallel: Warning: test_signal 22
|
|
par_exit 23 Bash exit value 0
|
|
par_exit 23 Sem exit value 0
|
|
par_exit 24 Bash exit value 152
|
|
par_exit 24 Sem exit value 152
|
|
par_exit 24 environment: line 1: PID CPU time limit exceeded (core dumped) bash -c 'kill -'$1' $$'
|
|
par_exit 25 Bash exit value 153
|
|
par_exit 25 Sem exit value 153
|
|
par_exit 25 environment: line 1: PID File size limit exceeded(core dumped) bash -c 'kill -'$1' $$'
|
|
par_exit 26 Bash exit value 154
|
|
par_exit 26 Sem exit value 154
|
|
par_exit 26 environment: line 1: PID Virtual timer expired bash -c 'kill -'$1' $$'
|
|
par_exit 27 Bash exit value 155
|
|
par_exit 27 Sem exit value 155
|
|
par_exit 27 environment: line 1: PID Profiling timer expired bash -c 'kill -'$1' $$'
|
|
par_exit 28 Bash exit value 0
|
|
par_exit 28 Sem exit value 0
|
|
par_exit 29 Bash exit value 157
|
|
par_exit 29 Sem exit value 157
|
|
par_exit 29 environment: line 1: PID I/O possible bash -c 'kill -'$1' $$'
|
|
par_exit 30 Bash exit value 158
|
|
par_exit 30 Sem exit value 158
|
|
par_exit 30 environment: line 1: PID Power failure bash -c 'kill -'$1' $$'
|
|
par_exit 31 Bash exit value 159
|
|
par_exit 31 Sem exit value 159
|
|
par_exit 31 environment: line 1: PID Bad system call (core dumped) bash -c 'kill -'$1' $$'
|
|
par_exit 32 Bash exit value 160
|
|
par_exit 32 Sem exit value 160
|
|
par_exit 32 environment: line 1: PID Unknown signal 32 bash -c 'kill -'$1' $$'
|
|
par_exit 33 Bash exit value 161
|
|
par_exit 33 Sem exit value 161
|
|
par_exit 33 environment: line 1: PID Unknown signal 33 bash -c 'kill -'$1' $$'
|
|
par_exit 34 Bash exit value 162
|
|
par_exit 34 Sem exit value 162
|
|
par_exit 34 environment: line 1: PID Real-time signal 0 bash -c 'kill -'$1' $$'
|
|
par_exit 35 Bash exit value 163
|
|
par_exit 35 Sem exit value 163
|
|
par_exit 35 environment: line 1: PID Real-time signal 1 bash -c 'kill -'$1' $$'
|
|
par_exit 36 Bash exit value 164
|
|
par_exit 36 Sem exit value 164
|
|
par_exit 36 environment: line 1: PID Real-time signal 2 bash -c 'kill -'$1' $$'
|
|
par_exit 37 Bash exit value 165
|
|
par_exit 37 Sem exit value 165
|
|
par_exit 37 environment: line 1: PID Real-time signal 3 bash -c 'kill -'$1' $$'
|
|
par_exit 38 Bash exit value 166
|
|
par_exit 38 Sem exit value 166
|
|
par_exit 38 environment: line 1: PID Real-time signal 4 bash -c 'kill -'$1' $$'
|
|
par_exit 39 Bash exit value 167
|
|
par_exit 39 Sem exit value 167
|
|
par_exit 39 environment: line 1: PID Real-time signal 5 bash -c 'kill -'$1' $$'
|
|
par_exit 40 Bash exit value 168
|
|
par_exit 40 Sem exit value 168
|
|
par_exit 40 environment: line 1: PID Real-time signal 6 bash -c 'kill -'$1' $$'
|
|
par_exit 41 Bash exit value 169
|
|
par_exit 41 Sem exit value 169
|
|
par_exit 41 environment: line 1: PID Real-time signal 7 bash -c 'kill -'$1' $$'
|
|
par_exit 42 Bash exit value 170
|
|
par_exit 42 Sem exit value 170
|
|
par_exit 42 environment: line 1: PID Real-time signal 8 bash -c 'kill -'$1' $$'
|
|
par_exit 43 Bash exit value 171
|
|
par_exit 43 Sem exit value 171
|
|
par_exit 43 environment: line 1: PID Real-time signal 9 bash -c 'kill -'$1' $$'
|
|
par_exit 44 Bash exit value 172
|
|
par_exit 44 Sem exit value 172
|
|
par_exit 44 environment: line 1: PID Real-time signal 10 bash -c 'kill -'$1' $$'
|
|
par_exit 45 Bash exit value 173
|
|
par_exit 45 Sem exit value 173
|
|
par_exit 45 environment: line 1: PID Real-time signal 11 bash -c 'kill -'$1' $$'
|
|
par_exit 46 Bash exit value 174
|
|
par_exit 46 Sem exit value 174
|
|
par_exit 46 environment: line 1: PID Real-time signal 12 bash -c 'kill -'$1' $$'
|
|
par_exit 47 Bash exit value 175
|
|
par_exit 47 Sem exit value 175
|
|
par_exit 47 environment: line 1: PID Real-time signal 13 bash -c 'kill -'$1' $$'
|
|
par_exit 48 Bash exit value 176
|
|
par_exit 48 Sem exit value 176
|
|
par_exit 48 environment: line 1: PID Real-time signal 14 bash -c 'kill -'$1' $$'
|
|
par_exit 49 Bash exit value 177
|
|
par_exit 49 Sem exit value 177
|
|
par_exit 49 environment: line 1: PID Real-time signal 15 bash -c 'kill -'$1' $$'
|
|
par_exit 50 Bash exit value 178
|
|
par_exit 50 Sem exit value 178
|
|
par_exit 50 environment: line 1: PID Real-time signal 16 bash -c 'kill -'$1' $$'
|
|
par_exit 51 Bash exit value 179
|
|
par_exit 51 Sem exit value 179
|
|
par_exit 51 environment: line 1: PID Real-time signal 17 bash -c 'kill -'$1' $$'
|
|
par_exit 52 Bash exit value 180
|
|
par_exit 52 Sem exit value 180
|
|
par_exit 52 environment: line 1: PID Real-time signal 18 bash -c 'kill -'$1' $$'
|
|
par_exit 53 Bash exit value 181
|
|
par_exit 53 Sem exit value 181
|
|
par_exit 53 environment: line 1: PID Real-time signal 19 bash -c 'kill -'$1' $$'
|
|
par_exit 54 Bash exit value 182
|
|
par_exit 54 Sem exit value 182
|
|
par_exit 54 environment: line 1: PID Real-time signal 20 bash -c 'kill -'$1' $$'
|
|
par_exit 55 Bash exit value 183
|
|
par_exit 55 Sem exit value 183
|
|
par_exit 55 environment: line 1: PID Real-time signal 21 bash -c 'kill -'$1' $$'
|
|
par_exit 56 Bash exit value 184
|
|
par_exit 56 Sem exit value 184
|
|
par_exit 56 environment: line 1: PID Real-time signal 22 bash -c 'kill -'$1' $$'
|
|
par_exit 57 Bash exit value 185
|
|
par_exit 57 Sem exit value 185
|
|
par_exit 57 environment: line 1: PID Real-time signal 23 bash -c 'kill -'$1' $$'
|
|
par_exit 58 Bash exit value 186
|
|
par_exit 58 Sem exit value 186
|
|
par_exit 58 environment: line 1: PID Real-time signal 24 bash -c 'kill -'$1' $$'
|
|
par_exit 59 Bash exit value 187
|
|
par_exit 59 Sem exit value 187
|
|
par_exit 59 environment: line 1: PID Real-time signal 25 bash -c 'kill -'$1' $$'
|
|
par_exit 60 Bash exit value 188
|
|
par_exit 60 Sem exit value 188
|
|
par_exit 60 environment: line 1: PID Real-time signal 26 bash -c 'kill -'$1' $$'
|
|
par_exit 61 Bash exit value 189
|
|
par_exit 61 Sem exit value 189
|
|
par_exit 61 environment: line 1: PID Real-time signal 27 bash -c 'kill -'$1' $$'
|
|
par_exit 62 Bash exit value 190
|
|
par_exit 62 Sem exit value 190
|
|
par_exit 62 environment: line 1: PID Real-time signal 28 bash -c 'kill -'$1' $$'
|
|
par_exit 63 Bash exit value 191
|
|
par_exit 63 Sem exit value 191
|
|
par_exit 63 environment: line 1: PID Real-time signal 29 bash -c 'kill -'$1' $$'
|
|
par_exit 64 Bash exit value 192
|
|
par_exit 64 Sem exit value 192
|
|
par_exit 64 environment: line 1: PID Real-time signal 30 bash -c 'kill -'$1' $$'
|
|
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
|