summaryrefslogtreecommitdiff
path: root/qa/src/mktzchange
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
commit47e6e7c84f008a53061e661f31ae96629bc694ef (patch)
tree648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /qa/src/mktzchange
downloadpcp-debian.tar.gz
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'qa/src/mktzchange')
-rwxr-xr-xqa/src/mktzchange35
1 files changed, 35 insertions, 0 deletions
diff --git a/qa/src/mktzchange b/qa/src/mktzchange
new file mode 100755
index 0000000..f69217f
--- /dev/null
+++ b/qa/src/mktzchange
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# Script to recreate the tzshift series of archives
+#
+
+. ../common.rc # for $sudo, $tmp, $here and pcp.env
+
+if make qa_timezone.so
+then
+ :
+else
+ echo "make qa_timezone.so failed ... I give up!"
+ exit 1
+fi
+
+$sudo $PCP_RC_DIR/pcp stop
+
+[ -d $PCP_RUN_DIR ] && $sudo chmod 777 $PCP_RUN_DIR
+
+for hr in 10 11 12
+do
+ export PCPQA_TZ=EST-$hr
+ export LD_PRELOAD=`pwd`/qa_timezone.so
+ pmcd &
+ rm -f tzchange-$hr-*
+ for a in a b
+ do
+ echo "log mandatory on 200msec sample.drift" | pmlogger tzchange-$hr-$a -s 4
+ done
+ $sudo $PCP_RC_DIR/pcp stop
+done
+
+[ -d $PCP_RUN_DIR ] && $sudo chmod 755 $PCP_RUN_DIR
+unset LD_PRELOAD
+$sudo $PCP_RC_DIR/pcp start