Skip to content

Commit

Permalink
tests for "cleanup_moltemplate.sh" are more strenuous now
Browse files Browse the repository at this point in the history
  • Loading branch information
jewettaij committed Feb 5, 2023
1 parent 91d0698 commit fa6dcb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_compass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ test_compass() {
cleanup_moltemplate.sh
NUM_DIHEDRALS=`grep dihedrals system.data | awk '{print $1}'`
assertTrue "cleanup_moltemplate.sh failed: system.data missing dihedrals" "[ $NUM_DIHEDRALS -gt 0 ]"
NUM_DIHEDRAL_TYPES=`grep "dihedral types" system.data | awk '{print $1}'`
assertTrue "cleanup_moltemplate.sh failed: wrong number of dihedral types after cleanup" "[ $NUM_DIHEDRAL_TYPES -eq 3 ]"
assertTrue "cleanup_moltemplate.sh failed: system.in.charges file not created" "[ -s system.in.charges ]"
cd ../
rm -rf alkane_chain_single/
Expand Down
2 changes: 2 additions & 0 deletions tests/test_oplsaa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ test_oplsaa() {
cleanup_moltemplate.sh
NUM_IMPROPERS=`grep impropers system.data | awk '{print $1}'`
assertTrue "cleanup_moltemplate.sh failed: system.data missing impropers" "[ $NUM_IMPROPERS -gt 0 ]"
NUM_IMPROPER_TYPES=`grep "improper types" system.data | awk '{print $1}'`
assertTrue "cleanup_moltemplate.sh failed: wrong number of improper types after cleanup" "[ $NUM_IMPROPER_TYPES -eq 2 ]"
assertTrue "cleanup_moltemplate.sh failed: system.in.charges file not created" "[ -s system.in.charges ]"
cd ../
rm -rf ethylene+benzene/
Expand Down

0 comments on commit fa6dcb3

Please sign in to comment.