diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /security/nss/tests/core_watch | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'security/nss/tests/core_watch')
-rwxr-xr-x | security/nss/tests/core_watch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/security/nss/tests/core_watch b/security/nss/tests/core_watch new file mode 100755 index 000000000..a627983a3 --- /dev/null +++ b/security/nss/tests/core_watch @@ -0,0 +1,45 @@ +############################################################# +# script to watch for cores during QA runs, so they won't overwrite one +# another +# Not activated for efficiency reasons, and problems on MKS, us +# only when needed and remember to remove afterwards +############################################################# + +############################################################# +# to activate put the following into all.sh (after the HOSTDIR +# has been exported +############################################################# +# sh `dirname $0`/core_watch $HOSTDIR ${HOSTDIR} & +# CORE_WATCH_PID=$! +# if [ -n "${KILLPIDS}" ] +# then +# echo $CORE_WATCH_PID >>"${KILLPIDS}" +# fi +############################################################# + +############################################################# +# or put the following into nssqa to watch the whole RESULTDIR +# start it shortly before run_all +# +# NOTE: the more efficient way is above, this is potentially going +# thru 1000ds of files every 30 seconds +############################################################# +# sh `dirname $0`/core_watch $RESULTDIR & +# echo $! >>"${KILLPIDS}" #so Exit() can hopefully kill the core_watch +############################################################# + +# in both cases remember to kill the process when done, since +# the PIDs that end up in ${KILLPIDS} might not work for all OS +# something like "kill_by_name core_watch + +echo $$ >>"${KILLPIDS}" #so Exit() can hopefully kill this shell +while [ 1 ] +do + for w in `find $1 -name "core" -print` + do + echo "Found core $w" + mv $w $w.`date +%H%M%S` + done + sleep 30 +done + |