diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
commit | 47e6e7c84f008a53061e661f31ae96629bc694ef (patch) | |
tree | 648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /qa/132 | |
download | pcp-47e6e7c84f008a53061e661f31ae96629bc694ef.tar.gz |
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'qa/132')
-rwxr-xr-x | qa/132 | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +#! /bin/sh +# PCP QA Test No. 132 +# exercise the new -L (linger) option to pmlogger +# +# Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved. +# + +seq=`basename $0` +echo "QA output created by $seq" + +# get standard filters +. ./common.product +. ./common.filter +. ./common.check + +trap "$sudo rm -f $tmp $tmp.*; exit" 0 1 2 3 15 + +# real QA test starts here +$sudo rm -f $tmp.* +pmlogger -c /dev/null $tmp 2>&1 \ +| _filter_pmlogger_log + +$sudo rm -f $tmp.* +_start_up_pmlogger -L -c /dev/null -l $tmp.log -s1 $tmp >$tmp.out 2>&1 +logger_pid=$pid + +# this sleep is necessary to allow pmlogger to start up properly +# before running pmlc +pmsleep 1.1 + +pmlc <<End-of-File +connect $logger_pid +log mandatory on 10 msec sample.bin +End-of-File + +_wait_pmlogger_end $logger_pid +_filter_pmlogger_log <$tmp.log |