File: regression_run_two.sh

package info (click to toggle)
o2 1.0~repack-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,156 kB
  • sloc: ansic: 9,132; python: 137; sh: 111; makefile: 10
file content (15 lines) | stat: -rwxr-xr-x 408 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# regression_run_two program1 program2
# runs the two programs in parallel, saves output of each,
# and waits for them to terminate. We use this script so
# that the shell output generated when a process finishes
# can be captured as output and redirected so as not to
# mess up the formatted output of regression_tests.sh

$1 > output.txt &
PID1=$!
$2 > output2.txt
PID2=$!
wait $PID1
wait $PID2