1 | ### 4. (un)select molecules by id
|
---|
2 |
|
---|
3 |
|
---|
4 | AT_SETUP([Selection - Molecule by id])
|
---|
5 | AT_KEYWORDS([selection,molecule])
|
---|
6 |
|
---|
7 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/MoleculeById"
|
---|
8 | srcfile=box.xyz
|
---|
9 | testfile=test.xyz
|
---|
10 | targetfile=water_id4.xyz
|
---|
11 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
12 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-id 4 -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 - Molecule by id with Undo])
|
---|
19 | AT_KEYWORDS([selection,molecule])
|
---|
20 |
|
---|
21 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/MoleculeById"
|
---|
22 | srcfile=box.xyz
|
---|
23 | testfile=test.xyz
|
---|
24 | targetfile=empty.xyz
|
---|
25 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
26 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-id 4 --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 - Molecule by id with Redo])
|
---|
33 | AT_KEYWORDS([selection,molecule])
|
---|
34 |
|
---|
35 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/MoleculeById"
|
---|
36 | srcfile=box.xyz
|
---|
37 | testfile=test.xyz
|
---|
38 | targetfile=water_id4.xyz
|
---|
39 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
40 | AT_CHECK([../../molecuilder -i $testfile -I --select-molecule-by-id 4 --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
|
---|
44 |
|
---|
45 |
|
---|
46 | AT_SETUP([Unselection - Molecule by id])
|
---|
47 | AT_KEYWORDS([selection,molecule])
|
---|
48 |
|
---|
49 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/MoleculeById"
|
---|
50 | srcfile=box.xyz
|
---|
51 | testfile=test.xyz
|
---|
52 | targetfile=id4_missing.xyz
|
---|
53 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
54 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecule-by-id 4 -s $targetfile], 0, [stdout], [stderr])
|
---|
55 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
56 |
|
---|
57 | AT_CLEANUP
|
---|
58 |
|
---|
59 |
|
---|
60 | AT_SETUP([Unselection - Molecule by id with Undo])
|
---|
61 | AT_KEYWORDS([selection,molecule])
|
---|
62 |
|
---|
63 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/MoleculeById"
|
---|
64 | srcfile=box.xyz
|
---|
65 | testfile=test.xyz
|
---|
66 | targetfile=box.xyz
|
---|
67 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
68 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecule-by-id 4 --undo -s $targetfile], 0, [stdout], [stderr])
|
---|
69 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
70 |
|
---|
71 | AT_CLEANUP
|
---|
72 |
|
---|
73 |
|
---|
74 | AT_SETUP([Unselection - Molecule by id with Redo])
|
---|
75 | AT_KEYWORDS([selection,molecule])
|
---|
76 |
|
---|
77 | regressionpath="${abs_top_srcdir}/${AUTOTEST_PATH}/Selection/Molecules/MoleculeById"
|
---|
78 | srcfile=box.xyz
|
---|
79 | testfile=test.xyz
|
---|
80 | targetfile=id4_missing.xyz
|
---|
81 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
82 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecule-by-id 4 --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
83 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
84 |
|
---|
85 | AT_CLEANUP
|
---|