[8c574b] | 1 | AT_BANNER([MoleCuilder - Graph routines test])
|
---|
| 2 | # 1. DFS analysis
|
---|
| 3 | AT_SETUP([Graph - DFS analysis])
|
---|
| 4 | AT_KEYWORDS([graph])
|
---|
| 5 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/1/pre/test.conf .], 0)
|
---|
[e6f9c5] | 6 | AT_CHECK([../../molecuilder -i test.conf -v 3 -D 2.], 0, [stdout], [stderr])
|
---|
[8c574b] | 7 | AT_CHECK([fgrep -c "No rings were detected in the molecular structure." stdout], 0, [1
|
---|
| 8 | ], [ignore])
|
---|
| 9 | AT_CLEANUP
|
---|
| 10 |
|
---|
[4e855e] | 11 | AT_SETUP([Graph - DFS analysis with bond length table])
|
---|
| 12 | AT_KEYWORDS([graph])
|
---|
| 13 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/1/pre/test2.conf .], 0)
|
---|
| 14 | AT_DATA([table1.dat],[. H
|
---|
| 15 | H 1.
|
---|
| 16 | ])
|
---|
| 17 | AT_DATA([table2.dat],[. H
|
---|
| 18 | H 1.5
|
---|
| 19 | ])
|
---|
| 20 | AT_CHECK([../../molecuilder -i test2.conf -v 4 -g table1.dat -D 2.], 0, [stdout], [stderr])
|
---|
| 21 | AT_CHECK([fgrep -c "Ion_Type1_1" stdout], 0, [2
|
---|
| 22 | ], [ignore])
|
---|
| 23 | AT_CHECK([../../molecuilder -i test2.conf -v 4 -g table2.dat -D 3.], 0, [stdout], [stderr])
|
---|
| 24 | AT_CHECK([fgrep -c "Ion_Type1_1" stdout], 0, [1
|
---|
| 25 | ], [ignore])
|
---|
| 26 | AT_CHECK([fgrep -c "Ion_Type1_2" stdout], 0, [1
|
---|
| 27 | ], [ignore])
|
---|
| 28 | AT_CLEANUP
|
---|
| 29 |
|
---|
[8c574b] | 30 | AT_SETUP([Graph - subgraph dissection])
|
---|
| 31 | AT_KEYWORDS([graph])
|
---|
| 32 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0)
|
---|
[e6f9c5] | 33 | AT_CHECK([../../molecuilder -i test.conf -v 3 -I], 0, [stdout], [stderr])
|
---|
[8c574b] | 34 | AT_CHECK([fgrep "I scanned 31 molecules." stdout], 0, [ignore], [ignore])
|
---|
| 35 | AT_CLEANUP
|
---|
| 36 |
|
---|
[faa1c9] | 37 | AT_SETUP([Graph - subgraph dissection with Undo/Redo])
|
---|
| 38 | AT_KEYWORDS([graph])
|
---|
| 39 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0)
|
---|
[e6f9c5] | 40 | AT_CHECK([../../molecuilder -i test.conf -v 3 -I], 0, [stdout], [stderr])
|
---|
[faa1c9] | 41 | AT_CHECK([fgrep "I scanned 31 molecules." stdout], 0, [ignore], [ignore])
|
---|
| 42 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0)
|
---|
[e6f9c5] | 43 | AT_CHECK([../../molecuilder -i test.conf -v 3 -I --undo], 0, [stdout], [stderr])
|
---|
[faa1c9] | 44 | AT_CHECK([fgrep "I scanned 31 molecules." stdout], 0, [ignore], [ignore])
|
---|
| 45 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0)
|
---|
[e6f9c5] | 46 | AT_CHECK([../../molecuilder -i test.conf -v 3 -I --undo --redo], 0, [stdout], [stderr])
|
---|
[faa1c9] | 47 | AT_CHECK([grep -c "I scanned 31 molecules." stdout], 0, [2
|
---|
| 48 | ], [ignore])
|
---|
| 49 | AT_CLEANUP
|
---|
| 50 |
|
---|