Skip to content

Commit

Permalink
Add support for Android unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
bbondy authored and brave-browser-releases committed Sep 23, 2019
1 parent 12ea125 commit d342686
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ const test = (suite, buildConfig = config.defaultBuildConfig, options) => {
'--v=' + options.v,
]

// Android doesn't support --v
if (config.targetOS !== 'android') {
braveArgs.push('--v=' + options.v)
}

const run_brave_installer_unitests = suite === 'brave_unit_tests' && config.targetOS !== 'android'

if (options.filter) {
braveArgs.push('--gtest_filter=' + options.filter)
}
Expand All @@ -35,7 +42,7 @@ const test = (suite, buildConfig = config.defaultBuildConfig, options) => {
// Build the tests
util.run('ninja', ['-C', config.outputDir, suite], config.defaultOptions)

const run_brave_installer_unitests = suite === 'brave_unit_tests'
const run_brave_installer_unitests = suite === 'brave_unit_tests' && config.targetOS !== 'android'
if (run_brave_installer_unitests) {
util.run('ninja', ['-C', config.outputDir, 'brave_installer_unittests'], config.defaultOptions)
}
Expand Down

0 comments on commit d342686

Please sign in to comment.