1 | AT_BANNER([MoleCuilder - Fragmentation and Re-fragmentation test])
|
---|
2 | # 1. check config
|
---|
3 | AT_SETUP([Fragmentation - Checking present config])
|
---|
4 | AT_KEYWORDS([fragmentation])
|
---|
5 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Fragmentation/1/pre/test.conf .], 0)
|
---|
6 | AT_CHECK([fgrep "Ion_Type1_4" test.conf], 0, [Ion_Type1_4 8.532785963 4.787886018 2.645886050 0 # molecule nr 6
|
---|
7 | ], [ignore])
|
---|
8 | AT_CHECK([fgrep "Ion_Type2_4" test.conf], 1, [ignore], [ignore])
|
---|
9 | AT_CLEANUP
|
---|
10 |
|
---|
11 | # 2. fragment the molecule and check the number of configs
|
---|
12 | AT_SETUP([Fragmentation - Fragmentation])
|
---|
13 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Fragmentation/2/pre/test.conf .], 0)
|
---|
14 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 1 -f ./BondFragment --molecule-by-id 0 --distance 1.55 --order 2], 0, [ignore], [ignore])
|
---|
15 | AT_CHECK([ls -l BondFragment*.conf | wc -l], 0, [5
|
---|
16 | ], [ignore])
|
---|
17 | AT_CLEANUP
|
---|
18 |
|
---|
19 | # 3. check whether parsing of BondFragment files and re-rwriting config files is working (exit code is 2 as we don't need to continue wrt to ...OrderAtSite)
|
---|
20 | # NOTE: Result code of 2 is not returned if "-v 1" is missing, then sequence of atoms is changed all the time and Adjacency files never match.
|
---|
21 | AT_SETUP([Fragmentation - BROKEN: Fragmentation is at MaxOrder])
|
---|
22 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Fragmentation/3/pre/test.conf .], 0)
|
---|
23 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 1 -f ./BondFragment --molecule-by-id 0 --distance 1.55 --order 2], 0, [ignore], [ignore])
|
---|
24 | AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 1 -f ./BondFragment --molecule-by-id 0 --distance 1.55 --order 2], [ignore], [ignore], [ignore])
|
---|
25 | AT_CLEANUP
|
---|