source: tests/regression/Parser/Mpqc/testsuite-parser-mpqc-load.at

Candidate_v1.6.1
Last change on this file was 7e1a88, checked in by Frederik Heber <heber@…>, 10 years ago

MEMFIX: Thrown ParserException causes mem leak in LoadAction

  • Property mode set to 100644
File size: 5.6 KB
RevLine 
[6253ed]1#
2# MoleCuilder - creates and alters molecular systems
3# Copyright (C) 2008-2012 University of Bonn
[5aaa43]4# Copyright (C) 2013 Frederik Heber
[6253ed]5#
6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation, either version 3 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program. If not, see <http://www.gnu.org/licenses/>.
18#
[f2230e]19### parsing mpqc
20
21AT_SETUP([Parser - loading mpqc file])
[e611dc]22AT_KEYWORDS([parser load mpqc])
[23b0c2]23
24file=testCLHF.in
[7db9bd]25AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testCLHF.in], 0, [ignore], [ignore])
26AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/testCLHF.in], 0, [ignore], [ignore])
[23b0c2]27
[30f2815]28file=testCLHF_n.in
29AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testCLHF_n.in], 0, [ignore], [ignore])
30AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/testCLHF.in], 0, [ignore], [ignore])
31
[7e1a88]32AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testCLHF_n_mixed_ids.in], 5, [ignore], [ignore])
[30f2815]33
34AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testCLHF_n_ascend_ids.in], 0, [ignore], [stderr])
35AT_CHECK([grep "n index is not simply" stderr], 0, [ignore], [ignore])
36
[23b0c2]37file=testCLKS.in
[7db9bd]38AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testCLKS.in], 0, [ignore], [ignore])
39AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/testCLKS.in], 0, [ignore], [ignore])
[23b0c2]40
41file=testMBPT2.in
[7db9bd]42AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testMBPT2.in], 0, [ignore], [ignore])
43AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/testMBPT2.in], 0, [ignore], [ignore])
[23b0c2]44
45file=testMBPT2_R12.in
[7db9bd]46AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testMBPT2_R12.in], 0, [ignore], [ignore])
47AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/testMBPT2_R12.in], 0, [ignore], [ignore])
[e69c87]48
49AT_CLEANUP
50
51
52AT_SETUP([Parser - loading mpqc file with Undo])
[e611dc]53AT_KEYWORDS([parser load mpqc undo])
[e69c87]54
55file=emptyCLHF.in
[7db9bd]56AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testCLHF.in --undo], 0, [ignore], [ignore])
[aa8cc2]57AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/empty.in], 0, [ignore], [ignore])
[e69c87]58
[30f2815]59AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testCLHF_n.in --undo], 0, [ignore], [ignore])
60AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/empty.in], 0, [ignore], [ignore])
61
[e69c87]62file=emptyCLKS.in
[7db9bd]63AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testCLKS.in --undo], 0, [ignore], [ignore])
[aa8cc2]64AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/empty.in], 0, [ignore], [ignore])
[e69c87]65
66file=emptyMBPT2.in
[7db9bd]67AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testMBPT2.in --undo], 0, [ignore], [ignore])
[aa8cc2]68AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/empty.in], 0, [ignore], [ignore])
[e69c87]69
70file=emptyMBPT2_R12.in
[7db9bd]71AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testMBPT2_R12.in --undo], 0, [ignore], [ignore])
[aa8cc2]72AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/empty.in], 0, [ignore], [ignore])
[e69c87]73
74AT_CLEANUP
75
76
77AT_SETUP([Parser - loading mpqc file with Redo])
[e611dc]78AT_KEYWORDS([parser load mpqc redo])
[e69c87]79
80file=testCLHF.in
[7db9bd]81AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testCLHF.in --undo --redo], 0, [ignore], [ignore])
[30f2815]82AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/testCLHF.in], 0, [ignore], [ignore])
83
84file=testCLHF_n.in
85AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testCLHF_n.in --undo --redo], 0, [ignore], [ignore])
[7db9bd]86AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/testCLHF.in], 0, [ignore], [ignore])
[e69c87]87
88file=testCLKS.in
[7db9bd]89AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testCLKS.in --undo --redo], 0, [ignore], [ignore])
90AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/testCLKS.in], 0, [ignore], [ignore])
[e69c87]91
92file=testMBPT2.in
[7db9bd]93AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testMBPT2.in --undo --redo], 0, [ignore], [ignore])
94AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/testMBPT2.in], 0, [ignore], [ignore])
[e69c87]95
96file=testMBPT2_R12.in
[7db9bd]97AT_CHECK([../../molecuilder -i $file -o mpqc -l ${abs_top_srcdir}/tests/regression/Parser/Mpqc/pre/testMBPT2_R12.in --undo --redo], 0, [ignore], [ignore])
98AT_CHECK([diff -I '%.*' $file ${abs_top_srcdir}/tests/regression/Parser/Mpqc/post/testMBPT2_R12.in], 0, [ignore], [ignore])
[23b0c2]99
[f2230e]100AT_CLEANUP
Note: See TracBrowser for help on using the repository browser.