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