[c77ac8] | 1 | ### 5. (un)select molecule by name
|
---|
| 2 |
|
---|
| 3 | AT_SETUP([Selection - Molecules by name])
|
---|
[718542] | 4 | AT_KEYWORDS([selection,molecule,select-molecules-by-name])
|
---|
[7c958e] | 5 |
|
---|
[7db9bd] | 6 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByName"
|
---|
[c77ac8] | 7 | srcfile=test.xyz
|
---|
[7c958e] | 8 | testfile=test.xyz
|
---|
| 9 | targetfile=water.xyz
|
---|
| 10 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
| 11 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-id 0 --change-molname \"water\" --unselect-molecule-by-id 0 --select-molecules-by-name \"water\" -s $targetfile], 0, [stdout], [stderr])
|
---|
| 12 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 13 |
|
---|
| 14 | AT_CLEANUP
|
---|
| 15 |
|
---|
| 16 |
|
---|
| 17 | AT_SETUP([Selection - Molecules by name with Undo])
|
---|
[718542] | 18 | AT_KEYWORDS([selection,molecule,select-molecules-by-name,undo])
|
---|
[7c958e] | 19 |
|
---|
[7db9bd] | 20 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByName"
|
---|
[7c958e] | 21 | srcfile=test.xyz
|
---|
| 22 | testfile=test.xyz
|
---|
| 23 | targetfile=empty.xyz
|
---|
| 24 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
| 25 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-id 0 --change-molname \"water\" --unselect-molecule-by-id 0 --select-molecules-by-name \"water\" --undo -s $targetfile], 0, [stdout], [stderr])
|
---|
| 26 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 27 |
|
---|
[c77ac8] | 28 | AT_CLEANUP
|
---|
| 29 |
|
---|
[7c958e] | 30 |
|
---|
| 31 | AT_SETUP([Selection - Molecules by name with Redo])
|
---|
[718542] | 32 | AT_KEYWORDS([selection,molecule,select-molecules-by-name,redo])
|
---|
[7c958e] | 33 |
|
---|
[7db9bd] | 34 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByName"
|
---|
[7c958e] | 35 | srcfile=test.xyz
|
---|
| 36 | testfile=test.xyz
|
---|
| 37 | targetfile=water.xyz
|
---|
| 38 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
| 39 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-id 0 --change-molname \"water\" --unselect-molecule-by-id 0 --select-molecules-by-name \"water\" --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
| 40 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 41 |
|
---|
| 42 | AT_CLEANUP
|
---|
| 43 |
|
---|