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)
|
---|
6 | AT_CHECK([../../molecuilder -i test.conf -v 3 -D 2.], 0, [stdout], [stderr])
|
---|
7 | AT_CHECK([fgrep -c "No rings were detected in the molecular structure." stdout], 0, [1
|
---|
8 | ], [ignore])
|
---|
9 | AT_CLEANUP
|
---|
10 |
|
---|
11 | AT_SETUP([Graph - subgraph dissection])
|
---|
12 | AT_KEYWORDS([graph])
|
---|
13 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0)
|
---|
14 | AT_CHECK([../../molecuilder -i test.conf -v 3 -I], 0, [stdout], [stderr])
|
---|
15 | AT_CHECK([fgrep "I scanned 31 molecules." stdout], 0, [ignore], [ignore])
|
---|
16 | AT_CLEANUP
|
---|
17 |
|
---|
18 | AT_SETUP([Graph - subgraph dissection with Undo/Redo])
|
---|
19 | AT_KEYWORDS([graph])
|
---|
20 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0)
|
---|
21 | AT_CHECK([../../molecuilder -i test.conf -v 3 -I], 0, [stdout], [stderr])
|
---|
22 | AT_CHECK([fgrep "I scanned 31 molecules." stdout], 0, [ignore], [ignore])
|
---|
23 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0)
|
---|
24 | AT_CHECK([../../molecuilder -i test.conf -v 3 -I --undo], 0, [stdout], [stderr])
|
---|
25 | AT_CHECK([fgrep "I scanned 31 molecules." stdout], 0, [ignore], [ignore])
|
---|
26 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0)
|
---|
27 | AT_CHECK([../../molecuilder -i test.conf -v 3 -I --undo --redo], 0, [stdout], [stderr])
|
---|
28 | AT_CHECK([grep -c "I scanned 31 molecules." stdout], 0, [2
|
---|
29 | ], [ignore])
|
---|
30 | AT_CLEANUP
|
---|
31 |
|
---|