[2700983] | 1 | ### element database
|
---|
| 2 |
|
---|
| 3 | AT_SETUP([Standard Options - element database])
|
---|
[e611dc] | 4 | AT_KEYWORDS([options element-db])
|
---|
[e69c87] | 5 |
|
---|
[220cf64] | 6 | file=test.conf
|
---|
[2700983] | 7 | AT_DATA([elements.db], [[# Covalent radius of each element in Angstroem from CSD (binding is: [Rcov(A)+Rcov(B)-t,Rcov(A)+Rcov(B)+t] with t = 0.4A
|
---|
| 8 | #Element Name Symbol Period Group Block Atomic Number AtomicWeight Covalent Radius vdW Radius
|
---|
[220cf64] | 9 | Hydrogen H 1 1 s 1 1. 0.23 1.09
|
---|
| 10 | Helium He 1 18 p 2 4. 1.5 1.4
|
---|
[2700983] | 11 | ]])
|
---|
[220cf64] | 12 | AT_CHECK([cp -f ${abs_top_srcdir}/tests/regression/Options/ElementsDb/pre/test.conf $file], 0, [ignore], [ignore])
|
---|
| 13 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[2700983] | 14 | AT_CHECK([../../molecuilder -i test.conf -e ./], 0, [stdout], [stderr])
|
---|
| 15 | AT_CHECK([grep -E "Using.*as elements database." stdout], 0, [ignore], [ignore])
|
---|
| 16 | AT_CHECK([fgrep "Element list loaded successfully." stdout], 0, [ignore], [ignore])
|
---|
| 17 | AT_CHECK([fgrep "Something went wrong while parsing the other databases!" stderr], 0, [ignore], [ignore])
|
---|
[220cf64] | 18 | AT_CHECK([grep "Ion_Type1.*1.000" test.conf], 0, [ignore], [ignore])
|
---|
| 19 | AT_CHECK([grep "Ion_Type1.*1.008" test.conf], 1, [ignore], [ignore])
|
---|
[e69c87] | 20 |
|
---|
| 21 | AT_CLEANUP
|
---|
| 22 |
|
---|
| 23 |
|
---|
| 24 | AT_SETUP([Standard Options - element database with Undo])
|
---|
[e611dc] | 25 | AT_KEYWORDS([options element-db undo])
|
---|
[e69c87] | 26 |
|
---|
[220cf64] | 27 | file=test.conf
|
---|
[e69c87] | 28 | AT_DATA([elements.db], [[# Covalent radius of each element in Angstroem from CSD (binding is: [Rcov(A)+Rcov(B)-t,Rcov(A)+Rcov(B)+t] with t = 0.4A
|
---|
| 29 | #Element Name Symbol Period Group Block Atomic Number AtomicWeight Covalent Radius vdW Radius
|
---|
| 30 | Hydrogen H 1 1 s 1 1.008 0.23 1.09
|
---|
| 31 | Helium He 1 18 p 2 4.003 1.5 1.4
|
---|
| 32 | ]])
|
---|
[220cf64] | 33 | AT_CHECK([cp -f ${abs_top_srcdir}/tests/regression/Options/ElementsDb/pre/test.conf $file], 0, [ignore], [ignore])
|
---|
| 34 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e69c87] | 35 | AT_CHECK([../../molecuilder -i test.conf -e ./ --undo], 0, [stdout], [stderr])
|
---|
| 36 | AT_CHECK([grep -E "Using.*as elements database." stdout], 0, [ignore], [ignore])
|
---|
| 37 | AT_CHECK([fgrep "Element list loaded successfully." stdout], 0, [ignore], [ignore])
|
---|
| 38 | AT_CHECK([fgrep "Something went wrong while parsing the other databases!" stderr], 0, [ignore], [ignore])
|
---|
[220cf64] | 39 | AT_CHECK([grep "Ion_Type1.*1.000" test.conf], 1, [ignore], [ignore])
|
---|
| 40 | AT_CHECK([grep "Ion_Type1.*1.008" test.conf], 0, [ignore], [ignore])
|
---|
[e69c87] | 41 |
|
---|
| 42 | AT_CLEANUP
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 | AT_SETUP([Standard Options - element database with Redo])
|
---|
[e611dc] | 46 | AT_KEYWORDS([options element-db redo])
|
---|
[e69c87] | 47 |
|
---|
[220cf64] | 48 | file=test.conf
|
---|
[e69c87] | 49 | AT_DATA([elements.db], [[# Covalent radius of each element in Angstroem from CSD (binding is: [Rcov(A)+Rcov(B)-t,Rcov(A)+Rcov(B)+t] with t = 0.4A
|
---|
| 50 | #Element Name Symbol Period Group Block Atomic Number AtomicWeight Covalent Radius vdW Radius
|
---|
[220cf64] | 51 | Hydrogen H 1 1 s 1 1.000 0.23 1.09
|
---|
[e69c87] | 52 | Helium He 1 18 p 2 4.003 1.5 1.4
|
---|
| 53 | ]])
|
---|
[220cf64] | 54 | AT_CHECK([cp -f ${abs_top_srcdir}/tests/regression/Options/ElementsDb/pre/test.conf $file], 0, [ignore], [ignore])
|
---|
| 55 | AT_CHECK([chmod u+w $file], 0, [ignore], [ignore])
|
---|
[e69c87] | 56 | AT_CHECK([../../molecuilder -i test.conf -e ./ --undo --redo], 0, [stdout], [stderr])
|
---|
| 57 | AT_CHECK([grep -E "Using.*as elements database." stdout], 0, [ignore], [ignore])
|
---|
| 58 | AT_CHECK([fgrep "Element list loaded successfully." stdout], 0, [ignore], [ignore])
|
---|
| 59 | AT_CHECK([fgrep "Something went wrong while parsing the other databases!" stderr], 0, [ignore], [ignore])
|
---|
[220cf64] | 60 | AT_CHECK([grep "Ion_Type1.*1.000" test.conf], 0, [ignore], [ignore])
|
---|
| 61 | AT_CHECK([grep "Ion_Type1.*1.008" test.conf], 1, [ignore], [ignore])
|
---|
[e69c87] | 62 |
|
---|
[2700983] | 63 | AT_CLEANUP
|
---|