diff options
author | Amar Tumballi <amarts@redhat.com> | 2012-02-18 10:36:44 -0800 |
---|---|---|
committer | Gerrit Code Review <root@dev.gluster.com> | 2012-02-18 10:36:44 -0800 |
commit | 6ed4ac470d7aaddd05ce179bc304ef688f5553aa (patch) | |
tree | 095187e0649d88c226563f41f19a6fba0b4a156e /perf-framework/check_install.new | |
parent | 4de9a1a4df6667a59dd36148167d7ea188c69831 (diff) | |
parent | db468693ef5faa294d9bc3cd3c5d70c0d99d488b (diff) |
Merge "Adding the performance framework to the qa repo"
Diffstat (limited to 'perf-framework/check_install.new')
-rwxr-xr-x | perf-framework/check_install.new | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/perf-framework/check_install.new b/perf-framework/check_install.new new file mode 100755 index 0000000..d571ae1 --- /dev/null +++ b/perf-framework/check_install.new @@ -0,0 +1,33 @@ +#!/bin/bash -ue + +source gf_perf_config + +gluster_build_dir=`tar tvf $RELEASE_TARBALL | head -1 | awk '{print $NF}'` +def_gfd_loc=/usr/local/sbin/glusterfsd + +echo "Checking server installation" +for brick in $BRICK_IP_ADDRS +do + build_file_cksum=`ssh -l root $brick "cksum $SERVER_BUILD_DIR/$gluster_build_dir/glusterfsd/src/.libs/glusterfsd" | cut -f1 -d' '` + current_installed_file_cksum=`ssh -l root $brick cksum $def_gfd_loc | cut -f1 -d' '` + if [ "$build_file_cksum" != "$current_installed_file_cksum" ] + then + echo "Checksum on $brick do not match. Aborting..." + exit 1 + else + echo "Checksum on $brick OK" + fi +done + +echo "" +echo "Checking client installation" +build_file_cksum=`cksum $CLIENT_BUILD_DIR/$gluster_build_dir/glusterfsd/src/.libs/glusterfsd | cut -f1 -d' '` +current_installed_file_cksum=`cksum $def_gfd_loc | cut -f1 -d' '` + +if [ "$build_file_cksum" != "$current_installed_file_cksum" ] +then + echo "Checksum on client do not match. Aborting..." + exit 1 +else + echo "Checksum on client OK" +fi |