| 1 | ### 5. (un)select molecule by name
|
|---|
| 2 |
|
|---|
| 3 | AT_SETUP([Selection - Molecules by name])
|
|---|
| 4 | AT_KEYWORDS([selection,molecule])
|
|---|
| 5 |
|
|---|
| 6 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/MoleculeByName"
|
|---|
| 7 | srcfile=test.xyz
|
|---|
| 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])
|
|---|
| 18 | AT_KEYWORDS([selection,molecule])
|
|---|
| 19 |
|
|---|
| 20 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/MoleculeByName"
|
|---|
| 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 |
|
|---|
| 28 | AT_CLEANUP
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | AT_SETUP([Selection - Molecules by name with Redo])
|
|---|
| 32 | AT_KEYWORDS([selection,molecule])
|
|---|
| 33 |
|
|---|
| 34 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/MoleculeByName"
|
|---|
| 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 |
|
|---|
| 44 |
|
|---|
| 45 | AT_SETUP([Unselection - Molecules by name])
|
|---|
| 46 | AT_KEYWORDS([selection,molecule])
|
|---|
| 47 |
|
|---|
| 48 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/MoleculeByName"
|
|---|
| 49 | srcfile=test.xyz
|
|---|
| 50 | testfile=test.xyz
|
|---|
| 51 | targetfile=empty.xyz
|
|---|
| 52 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
|---|
| 53 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-id 0 --change-molname \"water\" --unselect-molecules-by-name \"water\" -s $targetfile], 0, [stdout], [stderr])
|
|---|
| 54 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
|---|
| 55 |
|
|---|
| 56 | AT_CLEANUP
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 | AT_SETUP([Unselection - Molecules by name with Undo])
|
|---|
| 60 | AT_KEYWORDS([selection,molecule])
|
|---|
| 61 |
|
|---|
| 62 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/MoleculeByName"
|
|---|
| 63 | srcfile=test.xyz
|
|---|
| 64 | testfile=test.xyz
|
|---|
| 65 | targetfile=water.xyz
|
|---|
| 66 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
|---|
| 67 | 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])
|
|---|
| 68 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
|---|
| 69 |
|
|---|
| 70 | AT_CLEANUP
|
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 | AT_SETUP([Unselection - Molecules by name with Redo])
|
|---|
| 74 | AT_KEYWORDS([selection,molecule])
|
|---|
| 75 |
|
|---|
| 76 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/MoleculeByName"
|
|---|
| 77 | srcfile=test.xyz
|
|---|
| 78 | testfile=test.xyz
|
|---|
| 79 | targetfile=empty.xyz
|
|---|
| 80 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
|---|
| 81 | 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])
|
|---|
| 82 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
|---|
| 83 |
|
|---|
| 84 | AT_CLEANUP
|
|---|