Commit 8605ceaf authored by ankit kariryaa's avatar ankit kariryaa

Test and corrected regular expression for Gaussian parser

parent 29b32555
...@@ -8,12 +8,13 @@ object GaussianParser extends SimpleExternalParserGenerator( ...@@ -8,12 +8,13 @@ object GaussianParser extends SimpleExternalParserGenerator(
("name" -> jn.JString("GaussianParser")) :: ("name" -> jn.JString("GaussianParser")) ::
("version" -> jn.JString("1.0")) :: Nil), ("version" -> jn.JString("1.0")) :: Nil),
mainFileTypes = Seq("text/.*"), mainFileTypes = Seq("text/.*"),
mainFileRe = """\s*Invoking Gaussian \.\.\. mainFileRe = """\s*Gaussian, Inc\. All Rights Reserved\.\s*
\s*Version """.r, \s*
\s*This is part of the Gaussian\(R\) [0-9]* program.""".r,
cmd = Seq(DefaultPythonInterpreter.python2Exe(), "${envDir}/parsers/gaussian/parser/parser-gaussian/parser_gaussian.py", cmd = Seq(DefaultPythonInterpreter.python2Exe(), "${envDir}/parsers/gaussian/parser/parser-gaussian/parser_gaussian.py",
"--uri", "${mainFileUri}", "${mainFilePath}"), "--uri", "${mainFileUri}", "${mainFilePath}"),
resList = Seq( resList = Seq(
"parser-gaussian/GaussianParser.py", "parser-gaussian/parser_gaussian.py",
"parser-gaussian/setup_paths.py", "parser-gaussian/setup_paths.py",
"nomad_meta_info/common.nomadmetainfo.json", "nomad_meta_info/common.nomadmetainfo.json",
"nomad_meta_info/meta_types.nomadmetainfo.json", "nomad_meta_info/meta_types.nomadmetainfo.json",
......
package eu.nomad_lab.parsers
import eu.nomad_lab.{parsers, DefaultPythonInterpreter}
import org.scalacheck.Properties
import org.specs2.mutable.Specification
import org.{json4s => jn}
object GaussianParserSpec extends Specification {
"GaussianParserTest" >> {
examplesBlock {
ParserRun.parse(GaussianParser,"/home/kariryaa/NoMad/nomad-lab-base/parsers/gaussian/test/examples/Al.out","") must_== ParseResult.ParseSuccess
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment