source: tests/integration/molecuilder_poolworker.in@ 8d56a6

Candidate_v1.6.1 ChemicalSpaceEvaluator
Last change on this file since 8d56a6 was 1e58bb, checked in by Frederik Heber <frederik.heber@…>, 7 years ago

FIX: Integration tests now abort safely when one of the programs dies.

  • Property mode set to 100644
File size: 622 bytes
Line 
1#!/bin/bash
2#
3# wrapper for testing molecuilder
4
5. ../../atlocal
6
7trap 'echo "Killing process group $$"; pkill --signal 9 -P $$' SIGTERM SIGINT
8
9#PGID=$(ps -o pgid= $PID | grep -o [0-9]*)
10#trap 'kill -- -"$PGID"' SIGINT SIGTERM
11
12SCLIBDIR="@abs_top_srcdir@/ThirdParty/mpqc_open/lib"
13export SCLIBDIR
14
15if test -e ${AUTOTEST_PATH}/molecuilder_poolworker; then
16 ${AUTOTEST_PATH}/molecuilder_poolworker $@ &
17else
18 echo "Could not find molecuilder_poolworker."
19 exit 127
20fi
21
22# we need the wait here (and poolworker running in the background) as otherwise
23# the above trap will not get activated.
24wait $!
25
26status=$?
27
28exit $status
Note: See TracBrowser for help on using the repository browser.