From 39b0b93b5d15a3a0e9126f29c753e2fef75dc701 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 15 Jul 2020 14:11:25 +0200 Subject: Improve tests - Reduce significant digits for the objective function output in mkinfit(..., quiet = FALSE) as R and R-devel gave different output on my system - Add makefile target 'devtest' for testing with R-devel, in order to fix problems showing up with R-devel on Travis --- GNUmakefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 8108704a..1adac4e0 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -10,7 +10,7 @@ WINBIN := $(PKGSRC)_$(PKGVERS).zip # If no alternate bin folder is specified, the default is to use the folder # containing the first instance of R on the PATH. RBIN ?= $(shell dirname "`which R`") -#RBIN=/home/jranke/svn/R/r-devel/build/bin +RDEVBIN=/home/jranke/svn/R/r-devel/build/bin # Specify package and static documentation directories for subversion on r-forge RFSVN ?= $(HOME)/svn/r-forge/kinfit @@ -78,12 +78,16 @@ test: install "$(RBIN)/Rscript" -e 'devtools::test()' 2>&1 | tee test.log sed -i -e "s/\r.*\r//" test.log +devtest: install + "$(RDEVBIN)/Rscript" -e 'devtools::test()' 2>&1 | tee test_dev.log + sed -i -e "s/\r.*\r//" test.log + slowtests: install NOT_CRAN=true "$(RBIN)/Rscript" -e 'library(mkin); testthat::test_dir("tests/testthat/slow")' 2>&1 | tee tests_slow.log sed -i -e "s/\r.*\r//" tests_slow.log vdiffr: - /home/jranke/svn/R/r-devel/build/bin/Rscript -e 'vdiffr::manage_cases(filter = "plot|nafta")' + "$(RDEVBIN)/Rscript" -e 'vdiffr::manage_cases(filter = "plot|nafta")' testcheck: test check -- cgit v1.2.1