[c77ac8] | 1 | ### 2. clear molecule selection
|
---|
| 2 |
|
---|
[7c958e] | 3 |
|
---|
| 4 | AT_SETUP([Selection - Clear molecule selection])
|
---|
[c77ac8] | 5 | AT_KEYWORDS([selection,molecule])
|
---|
[7c958e] | 6 |
|
---|
| 7 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/ClearMolecules"
|
---|
| 8 | srcfile=box.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-all-molecules --clear-molecule-selection -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([Selection - Clear molecule selection with Undo])
|
---|
| 19 | AT_KEYWORDS([selection,molecule])
|
---|
| 20 |
|
---|
| 21 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/ClearMolecules"
|
---|
[c77ac8] | 22 | srcfile=box.xyz
|
---|
[7c958e] | 23 | testfile=test.xyz
|
---|
| 24 | targetfile=box.xyz
|
---|
| 25 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
| 26 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --clear-molecule-selection --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([Selection - Clear molecule selection with Redo])
|
---|
| 33 | AT_KEYWORDS([selection,molecule])
|
---|
| 34 |
|
---|
| 35 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/ClearMolecules"
|
---|
| 36 | srcfile=box.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-all-molecules --clear-molecule-selection --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
| 41 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
| 42 |
|
---|
[c77ac8] | 43 | AT_CLEANUP
|
---|