mirror of
https://github.com/xenia-project/xenia.git
synced 2026-07-11 01:24:34 +02:00
Make 'xb test' also run xenia-base-tests.
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@ configuration:
|
||||
- Checked
|
||||
|
||||
build_script:
|
||||
- cmd: xb build --config=%CONFIGURATION% --target=src\xenia-app --target=tests\xenia-cpu-ppc-tests --target=src\xenia-vfs-dump
|
||||
- cmd: xb build --config=%CONFIGURATION% --target=src\xenia-app --target=tests\xenia-base-tests --target=tests\xenia-cpu-ppc-tests --target=src\xenia-vfs-dump
|
||||
|
||||
after_build:
|
||||
- cmd: |
|
||||
|
||||
+8
-7
@@ -880,7 +880,8 @@ class TestCommand(BaseBuildCommand):
|
||||
|
||||
# The test executables that will be built and run.
|
||||
test_targets = args['target'] or [
|
||||
'xenia-cpu-ppc-tests',
|
||||
'xenia-base-tests',
|
||||
'xenia-cpu-ppc-tests'
|
||||
]
|
||||
args['target'] = test_targets
|
||||
|
||||
@@ -895,9 +896,9 @@ class TestCommand(BaseBuildCommand):
|
||||
test_executables = [
|
||||
get_bin(os.path.join(get_build_bin_path(args), test_target))
|
||||
for test_target in test_targets]
|
||||
for test_executable in test_executables:
|
||||
if not has_bin(test_executable):
|
||||
print('ERROR: Unable to find %s - build it.' % (test_executable))
|
||||
for i in range(0, len(test_targets)):
|
||||
if test_executables[i] is None:
|
||||
print('ERROR: Unable to find %s - build it.' % (test_targets[i]))
|
||||
return 1
|
||||
|
||||
# Run tests.
|
||||
@@ -1063,9 +1064,9 @@ class GpuTestCommand(BaseBuildCommand):
|
||||
test_executables = [
|
||||
get_bin(os.path.join(get_build_bin_path(args), test_target))
|
||||
for test_target in test_targets]
|
||||
for test_executable in test_executables:
|
||||
if not has_bin(test_executable):
|
||||
print('ERROR: Unable to find %s - build it.' % (test_executable))
|
||||
for i in range(0, len(test_targets)):
|
||||
if test_executables[i] is None:
|
||||
print('ERROR: Unable to find %s - build it.' % (test_targets[i]))
|
||||
return 1
|
||||
|
||||
output_path = os.path.join(self_path, 'build', 'gputest')
|
||||
|
||||
Reference in New Issue
Block a user