X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?p=unres.git;a=blobdiff_plain;f=ctest%2Fcluster_check.sh;fp=ctest%2Fcluster_check.sh;h=11d27928b542522c296aa25ff291e98ca40dcf90;hp=0000000000000000000000000000000000000000;hb=9453fc761eb545fcb727824c94d012dbf3931951;hpb=6f521277aa2a382d409f5189957283b0998b0d07 diff --git a/ctest/cluster_check.sh b/ctest/cluster_check.sh new file mode 100755 index 0000000..11d2792 --- /dev/null +++ b/ctest/cluster_check.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +if [ "$1" == "1l2y_clust_int" ]; then + file=1l2y_csa_GB000_clust.int +else + exit 1 +fi + +# Check if file exist +if [ ! -f $file ]; then + echo "CRITICAL: out $file does not exist" + exit 2 +fi + +fam=`grep THERE 1l2y_csa_GB000_clust.out|head -1|awk '{print $3}'` +grep THERE 1l2y_csa_GB000_clust.out +grep REMARK 1l2y_csa*[0-9][0-9][1-9].pdb + + if [ "$fam" != "6" ]; then + echo 'ERROR: number of families not equal 6' + exit 1 + fi +