Skip to content

Commit dabc522

Browse files
authored
Refine when we skip running all tests (#1434)
* Refine when we skip running all tests * Simplified condition expression
1 parent fd56665 commit dabc522

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-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 <edd@debian.org>
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 <edd@debian.org>
27

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

tests/tinytest.R

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
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="") == "2") { # set and 2
7+
if (Sys.getenv("RunAllRcppTests", "") != "") { # if unset
8+
Sys.setenv("RunAllRcppTests"="no")
9+
}
10+
if (Sys.getenv("RunVerboseRcppTests", "") != "") { # if unset
11+
Sys.setenv("RunVerboseRcppTests"="no")
12+
}
13+
}
14+
415
## Force tests to be executed if in dev release which we define as
516
## having a sub-release, eg 0.9.15.5 is one whereas 0.9.16 is not
617
if (length(strsplit(format(packageVersion("Rcpp")), "\\.")[[1]]) > 3) { # dev rel, and

0 commit comments

Comments
 (0)