Skip to content

Commit

Permalink
Merge pull request #6137 from brave/android_unittests
Browse files Browse the repository at this point in the history
Add support for Android unittests
  • Loading branch information
bbondy authored Oct 9, 2019
2 parents c4d92ce + 3d83499 commit 1b87817
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ const test = (suite, buildConfig = config.defaultBuildConfig, options) => {
config.update(options)

const braveArgs = [
'--enable-logging',
'--v=' + options.v,
'--enable-logging'
]

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

if (options.filter) {
braveArgs.push('--gtest_filter=' + options.filter)
}
Expand All @@ -35,7 +39,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 1b87817

Please sign in to comment.