Skip to content

Commit

Permalink
Ensure TestOpenSimThirdPartyPlugins is built+ran in windows build (+CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Jul 29, 2024
1 parent 980b413 commit 4070ac7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/build_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def build_osc(conf: BuildConfiguration):

with Section("build osc"):
test_osc_path = os.path.join(conf.get_osc_build_dir(), 'tests', 'TestOpenSimCreator', conf.get_osc_build_type(), 'TestOpenSimCreator')
test_osc_plugins_path = os.path.join(conf.get_osc_build_dir(), 'tests', 'TestOpenSimThirdPartyPlugins', conf.get_osc_build_type(), 'TestOpenSimThirdPartyPlugins')
test_oscar_path = os.path.join(conf.get_osc_build_dir(), 'tests', 'testoscar', conf.get_osc_build_type(), 'testoscar')
other_build_args = f'--config {conf.get_osc_build_type()} -j{conf.concurrency}'

Expand All @@ -120,10 +121,14 @@ def build_osc(conf: BuildConfiguration):
_run(f'cmake --build {conf.get_osc_build_dir()} --target testoscar {other_build_args}')
_run(f'{test_oscar_path} --gtest_filter="-Renderer*')

# build+run third party plugin test suite
_run(f'cmake --build {conf.get_osc_build_dir()} --target TestOpenSimThirdPartyPlugins {other_build_args}')
_run(f'{test_osc_plugins_path}')

# build+run OpenSimCreator test suite
#
# (--gtest_filter the tests that won't work in CI because of rendering issues)
_run(f'cmake --build {conf.get_osc_build_dir()} --target TestOpenSimCreator {other_build_args}')

# (--gtest_filter tests that won't work in CI because of rendering issues)
_run(f'{test_osc_path} --gtest_filter="-AddComponentPopup*:RegisteredOpenSimCreatorTabs*"')

# build final output target (usually, the installer)
Expand Down

0 comments on commit 4070ac7

Please sign in to comment.