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/changeversion | |
download | pcp-debian.tar.gz |
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'qa/changeversion')
-rwxr-xr-x | qa/changeversion | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/qa/changeversion b/qa/changeversion new file mode 100755 index 0000000..4c8c0cb --- /dev/null +++ b/qa/changeversion @@ -0,0 +1,41 @@ +#!/bin/sh +# +# Cleanup when going from PCP 3.x to 3.6 or vice versa +# + +here=`pwd` +if [ -d $HOME/src/pcp/src/libpcp_fault/src/GNUmakefile ] +then + # 3.x -> 3.6 make libpcp_fault and <pcp/fault.h> + # + cd $HOME/src/pcp + ${MAKE:-make} pcp.lsm + ./config.status + cd src/include + ${MAKE:-make} + cd ../libpcp_fault/src + ${MAKE:-make} + sudo ${MAKE:-make} install + ${MAKE:-make} clean +else + # 3.6 -> 3.x cleanup + # + sudo rm -f /usr/lib/libpcp_fault* /usr/include/pcp/fault.h +fi +cd $here + +rm -f src/descreqX2 src/torture_logmeta +rm -f src/check_fault_injection src/exercise_fault + +cd src +if [ -f GNUmakefile.install ] +then + # running QA in the tree + ${MAKE:-make} -f GNUmakefile.install +else + ${MAKE:-make} +fi +cd $here + +echo "To check ..." +echo "./check 192 479 480" |