Commit 815ac839 authored by Ask Hjorth Larsen's avatar Ask Hjorth Larsen
Browse files

add script to easily invoke the tests

parent a073c234
......@@ -13,7 +13,6 @@ from nomadcore.unit_conversion.unit_conversion \
from util import floating, integer
arg = sys.argv[1]
metaInfoPath = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)),"../../../../nomad-meta-info/meta_info/nomad_meta_info/siesta.nomadmetainfo.json"))
metaInfoEnv, warnings = loadJsonFile(filePath=metaInfoPath,
dependencyLoader=None,
......@@ -338,9 +337,14 @@ infoFileDescription = SM(
])
])
def main(**kwargs):
mainFunction(mainFileDescription=infoFileDescription,
metaInfoEnv=metaInfoEnv,
parserInfo=parser_info,
cachingLevelForMetaName={},
superContext=context,
**kwargs)
if __name__ == '__main__':
main()
mainFunction(mainFileDescription=infoFileDescription,
metaInfoEnv=metaInfoEnv,
parserInfo=parser_info,
cachingLevelForMetaName={},
superContext=context)
from __future__ import print_function
import os
from main import main
testdir = '../../test/examples'
dirnames = ['H2O',
'h2o_relax',
'Al_slab',
'Al_uc',
'Fe',
'MgO']
for dirname in dirnames:
fname = os.path.join(testdir, dirname, 'out')
with open('out.pycheck.%s.txt' % dirname, 'w') as outfd:
main(mainFile=fname, outF=outfd)
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