fixing scala wrapper, activating tests

parent 97277a1d
Pipeline #6697 passed with stage
in 9 minutes and 49 seconds
stages:
- test
testing:
stage: test
script:
- cd .. && rm -rf nomad-lab-base
- git clone --recursive git@gitlab.mpcdf.mpg.de:nomad-lab/nomad-lab-base.git
- cd nomad-lab-base
- git submodule foreach git checkout master
- git submodule foreach git pull
- sbt wien2k/test
- export PYTHONEXE=/labEnv/bin/python
- sbt wien2k/test
only:
- master
tags:
- test
- spec2
\ No newline at end of file
...@@ -22,7 +22,9 @@ object ElkParser extends SimpleExternalParserGenerator( ...@@ -22,7 +22,9 @@ object ElkParser extends SimpleExternalParserGenerator(
)) :: Nil )) :: Nil
), ),
mainFileTypes = Seq("text/.*"), mainFileTypes = Seq("text/.*"),
mainFileRe = """:LABEL[0-9]+: using WIEN2k_(?<version>[0-9.]+) \(Release (?<release>[0-9/.]+)\) in """.r, mainFileRe = """\+-----------+\+
\| Elk version (?<version>[0-9.a-zA-Z]+) started \|
\+----------+\+""".r,
cmd = Seq(DefaultPythonInterpreter.pythonExe(), "${envDir}/parsers/elk/parser/parser-elk/parser_elk.py", cmd = Seq(DefaultPythonInterpreter.pythonExe(), "${envDir}/parsers/elk/parser/parser-elk/parser_elk.py",
"--uri", "${mainFileUri}", "${mainFilePath}"), "--uri", "${mainFileUri}", "${mainFilePath}"),
resList = Seq( resList = Seq(
......
...@@ -5,10 +5,10 @@ import org.specs2.mutable.Specification ...@@ -5,10 +5,10 @@ import org.specs2.mutable.Specification
object ElkTests extends Specification { object ElkTests extends Specification {
"ElkParserTest" >> { "ElkParserTest" >> {
"test with json-events" >> { "test with json-events" >> {
ParserRun.parse(Wien2kParser, "parsers/elk/test/examples/ok/ok.scf", "json-events") must_== ParseResult.ParseSuccess ParserRun.parse(ElkParser, "parsers/elk/test/examples/ok/ok.scf", "json-events") must_== ParseResult.ParseSuccess
} }
"test with json" >> { "test with json" >> {
ParserRun.parse(Wien2kParser, "parsers/elk/test/examples/ok/ok.scf", "json") must_== ParseResult.ParseSuccess ParserRun.parse(ElkParser, "parsers/elk/test/examples/ok/ok.scf", "json") 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