1 | ### 3. (un)select molecules by formula
|
---|
2 |
|
---|
3 |
|
---|
4 | AT_SETUP([Unselection - Molecule by formula])
|
---|
5 | AT_KEYWORDS([unselection molecule unselect-molecules-by-formula])
|
---|
6 |
|
---|
7 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByFormula"
|
---|
8 | srcfile=mix.xyz
|
---|
9 | testfile=test.xyz
|
---|
10 | targetfile=water_missing.xyz
|
---|
11 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
12 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecules-by-formula H2O -s $targetfile], 0, [stdout], [stderr])
|
---|
13 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
14 |
|
---|
15 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByFormula"
|
---|
16 | srcfile=mix.xyz
|
---|
17 | testfile=test.xyz
|
---|
18 | targetfile=ethanol_missing.xyz
|
---|
19 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
20 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecules-by-formula "C2H5(OH)" -s $targetfile], 0, [stdout], [stderr])
|
---|
21 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
22 |
|
---|
23 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByFormula"
|
---|
24 | srcfile=mix.xyz
|
---|
25 | testfile=test.xyz
|
---|
26 | targetfile=benzene_missing.xyz
|
---|
27 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
28 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecules-by-formula C6H6 -s $targetfile], 0, [stdout], [stderr])
|
---|
29 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
30 |
|
---|
31 | AT_CLEANUP
|
---|
32 |
|
---|
33 |
|
---|
34 | AT_SETUP([Unselection - Molecule by formula with Undo])
|
---|
35 | AT_KEYWORDS([unselection molecule unselect-molecules-by-formula undo])
|
---|
36 |
|
---|
37 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByFormula"
|
---|
38 | srcfile=mix.xyz
|
---|
39 | testfile=test.xyz
|
---|
40 | targetfile=mix.xyz
|
---|
41 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
42 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecules-by-formula H2O --undo -s $targetfile], 0, [stdout], [stderr])
|
---|
43 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
44 |
|
---|
45 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByFormula"
|
---|
46 | srcfile=mix.xyz
|
---|
47 | testfile=test.xyz
|
---|
48 | targetfile=mix.xyz
|
---|
49 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
50 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecules-by-formula "C2H5(OH)" --undo -s $targetfile], 0, [stdout], [stderr])
|
---|
51 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
52 |
|
---|
53 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByFormula"
|
---|
54 | srcfile=mix.xyz
|
---|
55 | testfile=test.xyz
|
---|
56 | targetfile=mix.xyz
|
---|
57 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
58 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecules-by-formula C6H6 --undo -s $targetfile], 0, [stdout], [stderr])
|
---|
59 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
60 |
|
---|
61 | AT_CLEANUP
|
---|
62 |
|
---|
63 |
|
---|
64 | AT_SETUP([Unselection - Molecule by formula with Redo])
|
---|
65 | AT_KEYWORDS([unselection molecule unselect-molecules-by-formula redo])
|
---|
66 |
|
---|
67 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByFormula"
|
---|
68 | srcfile=mix.xyz
|
---|
69 | testfile=test.xyz
|
---|
70 | targetfile=water_missing.xyz
|
---|
71 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
72 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecules-by-formula H2O --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
73 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
74 |
|
---|
75 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByFormula"
|
---|
76 | srcfile=mix.xyz
|
---|
77 | testfile=test.xyz
|
---|
78 | targetfile=ethanol_missing.xyz
|
---|
79 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
80 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecules-by-formula "C2H5(OH)" --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
81 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
82 |
|
---|
83 | regressionpath="${abs_top_srcdir}/tests/regression/Selection/Molecules/MoleculeByFormula"
|
---|
84 | srcfile=mix.xyz
|
---|
85 | testfile=test.xyz
|
---|
86 | targetfile=benzene_missing.xyz
|
---|
87 | AT_CHECK([cp -n ${regressionpath}/pre/$srcfile $testfile], 0)
|
---|
88 | AT_CHECK([../../molecuilder -i $testfile -I --select-all-molecules --unselect-molecules-by-formula C6H6 --undo --redo -s $targetfile], 0, [stdout], [stderr])
|
---|
89 | AT_CHECK([diff -I '.*Created by molecuilder.*' $targetfile ${regressionpath}/post/$targetfile], 0, [ignore], [ignore])
|
---|
90 |
|
---|
91 | AT_CLEANUP
|
---|