Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
parser-elk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nomad-lab
parser-elk
Commits
53870bbf
Commit
53870bbf
authored
Aug 08, 2016
by
Mohamed, Fawzi Roberto (fawzi)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing scala wrapper, activating tests
parent
97277a1d
Pipeline
#6697
passed with stage
in 9 minutes and 49 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
.gitlab-ci.yml
.gitlab-ci.yml
+19
-0
src/main/scala/eu/nomad_lab/parsers/ElkParser.scala
src/main/scala/eu/nomad_lab/parsers/ElkParser.scala
+3
-1
src/test/scala/eu/nomad_lab/parsers/ElkParserSpec.scala
src/test/scala/eu/nomad_lab/parsers/ElkParserSpec.scala
+2
-2
No files found.
.gitlab-ci.yml
0 → 100644
View file @
53870bbf
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
src/main/scala/eu/nomad_lab/parsers/ElkParser.scala
View file @
53870bbf
...
@@ -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
(
...
...
src/test/scala/eu/nomad_lab/parsers/ElkParserSpec.scala
View file @
53870bbf
...
@@ -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
(
Wien2
kParser
,
"parsers/elk/test/examples/ok/ok.scf"
,
"json-events"
)
must_==
ParseResult
.
ParseSuccess
ParserRun
.
parse
(
El
kParser
,
"parsers/elk/test/examples/ok/ok.scf"
,
"json-events"
)
must_==
ParseResult
.
ParseSuccess
}
}
"test with json"
>>
{
"test with json"
>>
{
ParserRun
.
parse
(
Wien2
kParser
,
"parsers/elk/test/examples/ok/ok.scf"
,
"json"
)
must_==
ParseResult
.
ParseSuccess
ParserRun
.
parse
(
El
kParser
,
"parsers/elk/test/examples/ok/ok.scf"
,
"json"
)
must_==
ParseResult
.
ParseSuccess
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment