MCPcopy Create free account
hub / github.com/culvertsoft/mgen / tests_generate_code

Function tests_generate_code

buildimpl.py:69–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 sbt('.', 'compile publish-local assembly')
68
69def tests_generate_code():
70 def prepareNormalTestSources():
71 testModels = findFilesExt('mgen-compiler/src/test/resources', ['project.xml'], ['dependencies'])
72 for lang in tested_languages:
73 for model in testModels:
74 mgen_compile('mgen-' + lang + 'lib', '../' + model, '.', '../mgen-' + lang + 'generator/target')
75 def prepareIntegrationTestSources():
76 for proj in integ_test_projects:
77 mgen_compile("mgen-integrationtests", 'models/'+proj+'/project.xml', "generated/"+proj)
78 for lang in tested_languages:
79 copyTree(
80 'mgen-integrationtests/generated/' + proj + '/src_generated/' + lang,
81 'mgen-integrationtests/' + lang + 'check/' + proj + '/src_generated/test/' + lang
82 )
83 prepareNormalTestSources()
84 prepareIntegrationTestSources()
85
86def tests_normal():
87 # Can this be done in one batch? Doesn't seem so,

Callers

nothing calls this directly

Calls 2

prepareNormalTestSourcesFunction · 0.85

Tested by

no test coverage detected