ctest cluster int for csa output
[unres.git] / ctest / cluster_check.sh
1 #!/bin/bash
2
3 if [ "$1" == "1l2y_clust_int" ]; then
4  file=1l2y_csa_GB000_clust.int
5 else
6  exit 1
7 fi
8
9 # Check if file exist
10 if [ ! -f $file ]; then
11     echo "CRITICAL: out $file does not exist"
12     exit 2
13 fi
14
15 fam=`grep THERE 1l2y_csa_GB000_clust.out|head -1|awk '{print $3}'`
16 grep THERE 1l2y_csa_GB000_clust.out
17 grep REMARK 1l2y_csa*[0-9][0-9][1-9].pdb
18
19  if [ "$fam" != "6" ]; then
20   echo 'ERROR: number of families not equal 6'
21   exit 1
22  fi
23