| 1 | ### parsing tremolo
|
|---|
| 2 |
|
|---|
| 3 | AT_SETUP([Parser - parse potentials file])
|
|---|
| 4 | AT_KEYWORDS([parser,tremolo,potentials])
|
|---|
| 5 | AT_CHECK([/bin/cp ${abs_top_srcdir}/${AUTOTEST_PATH}/Parser/Tremolo-Potentials/pre/argon.potentials .], 0, [ignore], [ignore])
|
|---|
| 6 | AT_CHECK([../../molecuilder -v 2 --parse-tremolo-potentials argon.potentials], 0, [stdout], [ignore])
|
|---|
| 7 | AT_CHECK([grep "Added Type Argon as reference to element Ar" stdout], 0, [ignore], [ignore])
|
|---|
| 8 | AT_CLEANUP
|
|---|
| 9 |
|
|---|
| 10 | AT_SETUP([Parser - load tremolo file with potentials])
|
|---|
| 11 | AT_KEYWORDS([parser,tremolo,load,potentials])
|
|---|
| 12 | AT_CHECK([/bin/cp ${abs_top_srcdir}/${AUTOTEST_PATH}/Parser/Tremolo-Potentials/pre/argon.* .], 0, [ignore], [ignore])
|
|---|
| 13 | AT_CHECK([../../molecuilder -v 2 --parse-tremolo-potentials argon.potentials -i argon.data], 0, [stdout], [ignore])
|
|---|
| 14 | AT_CHECK([grep "Chemical formula is Ar2" stdout], 0, [ignore], [ignore])
|
|---|
| 15 | AT_CHECK([file=argon.data; diff -w -I '#.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Parser/Tremolo-Potentials/post/$file], 0, [ignore], [ignore])
|
|---|
| 16 | AT_CLEANUP
|
|---|
| 17 |
|
|---|
| 18 | AT_SETUP([Parser - saving tremolo file from loaded xyz file with potentials])
|
|---|
| 19 | AT_KEYWORDS([parser,tremolo,save,potentials])
|
|---|
| 20 | AT_CHECK([../../molecuilder -v 2 --parse-tremolo-potentials argon.potentials -i test.data -l ${abs_top_srcdir}/${AUTOTEST_PATH}/Parser/Tremolo-Potentials/pre/test.xyz], 0, [ignore], [ignore])
|
|---|
| 21 | AT_CHECK([file=test.data; diff -w -I '#.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Parser/Tremolo-Potentials/post/$file], 0, [ignore], [ignore])
|
|---|
| 22 | AT_CLEANUP
|
|---|