feat(full): per-package r-minor flag and --sensitive-only mode in build-all.R
This commit is contained in:
parent
34173a6722
commit
a33986a8d6
1 changed files with 42 additions and 9 deletions
13
local/tests/test-build-all-args.R
Normal file
13
local/tests/test-build-all-args.R
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
source(file.path("..", "r-minor-helpers.R"))
|
||||
|
||||
test_that("parse_build_args splits flags from positionals", {
|
||||
a <- parse_build_args(c("--sensitive-only", "4", "2", "8"))
|
||||
expect_true(a$sensitive_only)
|
||||
expect_identical(a$split_into, 4L)
|
||||
expect_identical(a$split_index, 2L)
|
||||
expect_identical(a$ncpus, 8L)
|
||||
|
||||
b <- parse_build_args(c("4", "2", "8"))
|
||||
expect_false(b$sensitive_only)
|
||||
expect_identical(b$split_into, 4L)
|
||||
})
|
||||
Loading…
Reference in a new issue