ctest correction to previous commit
[unres.git] / ctest / cluster_wham_check.sh
1 #!/bin/bash
2
3 if [ "$1" == "1L2Y_clust" ]; then
4  file=1L2Y_wham_T280K_ave.pdb
5 else
6  exit 1
7 fi
8
9 # Check if file exist
10 if [ ! -f $file ]; then
11     echo "CRITICAL: out $file do not exist"
12     exit 2
13 fi
14
15 fam=`grep THERE 1L2Y_clust_clust.out_000|awk '{print $3}'`
16 grep THERE 1L2Y_clust_clust.out_000
17 grep REMARK 1L2Y_wham*[1-9].pdb
18
19  if [ "$fam" != "5" ]; then
20   echo 'ERROR: number of families not equal 5'
21   exit 1
22  fi
23