AT_BANNER([MoleCuilder - Graph routines test]) # 1. DFS analysis AT_SETUP([Graph - DFS analysis]) AT_KEYWORDS([graph]) AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/1/pre/test.conf .], 0) AT_CHECK([../../molecuilder -i test.conf -v 3 -D 2.], 0, [stdout], [stderr]) AT_CHECK([fgrep -c "No rings were detected in the molecular structure." stdout], 0, [1 ], [ignore]) AT_CLEANUP AT_SETUP([Graph - subgraph dissection]) AT_KEYWORDS([graph]) AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0) AT_CHECK([../../molecuilder -i test.conf -v 3 -I], 0, [stdout], [stderr]) AT_CHECK([fgrep "I scanned 31 molecules." stdout], 0, [ignore], [ignore]) AT_CLEANUP AT_SETUP([Graph - subgraph dissection with Undo/Redo]) AT_KEYWORDS([graph]) AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0) AT_CHECK([../../molecuilder -i test.conf -v 3 -I], 0, [stdout], [stderr]) AT_CHECK([fgrep "I scanned 31 molecules." stdout], 0, [ignore], [ignore]) AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0) AT_CHECK([../../molecuilder -i test.conf -v 3 -I --undo], 0, [stdout], [stderr]) AT_CHECK([fgrep "I scanned 31 molecules." stdout], 0, [ignore], [ignore]) AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/2/pre/test.conf .], 0) AT_CHECK([../../molecuilder -i test.conf -v 3 -I --undo --redo], 0, [stdout], [stderr]) AT_CHECK([grep -c "I scanned 31 molecules." stdout], 0, [2 ], [ignore]) AT_CLEANUP