1 | ### clear atom selection
|
---|
2 |
|
---|
3 | AT_SETUP([Unselection - clear atom selection])
|
---|
4 | AT_KEYWORDS([selection clear unselect-all-atoms])
|
---|
5 |
|
---|
6 | file=box.xyz
|
---|
7 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/ClearAtoms/pre/box.xyz $file], 0)
|
---|
8 | AT_CHECK([chmod u+w $file], 0)
|
---|
9 | AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id 0 --unselect-all-atoms -r], 0, [stdout], [stderr])
|
---|
10 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/ClearAtoms/pre/box.xyz], 0, [ignore], [ignore])
|
---|
11 |
|
---|
12 | AT_CLEANUP
|
---|
13 |
|
---|
14 |
|
---|
15 | AT_SETUP([Unselection - clear atom selection with Undo])
|
---|
16 | AT_KEYWORDS([selection clear unselect-all-atoms undo])
|
---|
17 |
|
---|
18 | file=id0_missing.xyz
|
---|
19 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/ClearAtoms/pre/box.xyz $file], 0)
|
---|
20 | AT_CHECK([chmod u+w $file], 0)
|
---|
21 | AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id 0 --unselect-all-atoms --undo -r], 0, [stdout], [stderr])
|
---|
22 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/ClearAtoms/post/id0_missing.xyz], 0, [ignore], [ignore])
|
---|
23 |
|
---|
24 | AT_CLEANUP
|
---|
25 |
|
---|
26 |
|
---|
27 | AT_SETUP([Unselection - clear atom selection with Redo])
|
---|
28 | AT_KEYWORDS([selection clear unselect-all-atoms redo])
|
---|
29 |
|
---|
30 | file=box.xyz
|
---|
31 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/ClearAtoms/pre/box.xyz $file], 0)
|
---|
32 | AT_CHECK([chmod u+w $file], 0)
|
---|
33 | AT_CHECK([../../molecuilder -i $file -v 3 --select-atom-by-id 0 --unselect-all-atoms --undo --redo -r], 0, [stdout], [stderr])
|
---|
34 | AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/ClearAtoms/pre/box.xyz], 0, [ignore], [ignore])
|
---|
35 |
|
---|
36 | AT_CLEANUP
|
---|