1 | AT_BANNER([MoleCuilder - molecular config creation from xyz file and atom adding])
|
---|
2 | # 1. create some simplest molecular geometry
|
---|
3 | AT_SETUP([Simple configuration - xyz file generation])
|
---|
4 | AT_KEYWORDS([configuration])
|
---|
5 | AT_DATA([test.xyz], [[1
|
---|
6 | # test configuration, created by molecuilder test suite
|
---|
7 | H 10. 10. 10.
|
---|
8 | ]])
|
---|
9 | AT_CHECK([file=test.xyz; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/1/post/$file], 0, [ignore], [ignore])
|
---|
10 | AT_CLEANUP
|
---|
11 |
|
---|
12 | # 6. test some more configuration that all desire parameters and count how many complain
|
---|
13 | AT_SETUP([Simple configuration - invalid commands on empty configs])
|
---|
14 | AT_KEYWORDS([configuration])
|
---|
15 | AT_CHECK([../../molecuilder -i empty.conf -t -s -b -E -c -b -a -U -T -u], 134, [ignore], [stderr])
|
---|
16 | AT_CLEANUP
|
---|
17 |
|
---|
18 | # 7. test some more configuration that all need parameters and count how many complain
|
---|
19 | AT_SETUP([Simple configuration - invalid commands on present configs])
|
---|
20 | AT_KEYWORDS([configuration])
|
---|
21 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/7/pre/test.conf .], 0)
|
---|
22 | AT_CHECK([../../molecuilder -i test.conf -t], 134, [ignore], [stderr])
|
---|
23 | AT_CHECK([../../molecuilder -i test.conf -s -b -E -c -b -a -U -T -u], 134, [ignore], [stderr])
|
---|
24 | AT_CHECK([../../molecuilder -i test.conf -b -E -c -b -a -U -T -u], 134, [ignore], [stderr])
|
---|
25 | AT_CHECK([../../molecuilder -i test.conf -E -c -b -a -U -T -u], 134, [ignore], [stderr])
|
---|
26 | AT_CHECK([../../molecuilder -i test.conf -c -b -a -U -T -u], 134, [ignore], [stderr])
|
---|
27 | AT_CHECK([../../molecuilder -i test.conf -b -a -U -T -u], 134, [ignore], [stderr])
|
---|
28 | AT_CHECK([../../molecuilder -i test.conf -a -U -T -u], 134, [ignore], [stderr])
|
---|
29 | AT_CHECK([../../molecuilder -i test.conf -U -T -u], 134, [ignore], [stderr])
|
---|
30 | AT_CHECK([../../molecuilder -i test.conf -T -u], 134, [ignore], [stderr])
|
---|
31 | AT_CHECK([../../molecuilder -i test.conf -u], 134, [ignore], [stderr])
|
---|
32 | AT_CLEANUP
|
---|