Skip to content

Commit d851c29

Browse files
committed
Refine when we skip running all tests
1 parent fd56665 commit d851c29

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2025-12-30 Dirk Eddelbuettel <[email protected]>
2+
3+
* tests/tinytest.R: Refine decision of when not to run all tests even
4+
when development version number is seen
5+
16
2025-12-28 Dirk Eddelbuettel <[email protected]>
27

38
* README.md: Replace installation from drat section with r-universe

tests/tinytest.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11

22
if (requireNamespace("tinytest", quietly=TRUE)) {
33

4+
## if OMP_THREAD_LIMIT is set, and its value is 2, we have a good
5+
## idea of where we are and we likely do not want to run all tests
6+
if (Sys.getenv("OMP_THREAD_LIMIT", unset="") != "" && # it is set
7+
Sys.getenv("OMP_THREAD_LIMIT") == "2") { # value is two
8+
if (Sys.getenv("RunAllRcppTests", "") != "") { # if unset
9+
Sys.setenv("RunAllRcppTests"="no")
10+
}
11+
if (Sys.getenv("RunVerboseRcppTests", "") != "") { # if unset
12+
Sys.setenv("RunVerboseRcppTests"="no")
13+
}
14+
}
15+
416
## Force tests to be executed if in dev release which we define as
517
## having a sub-release, eg 0.9.15.5 is one whereas 0.9.16 is not
618
if (length(strsplit(format(packageVersion("Rcpp")), "\\.")[[1]]) > 3) { # dev rel, and

0 commit comments

Comments
 (0)