From e0e123768ead98b28160463f9499b7ab5c49be9d Mon Sep 17 00:00:00 2001 From: Ralf Stubner Date: Fri, 2 Feb 2018 11:47:55 +0100 Subject: [PATCH] Reeanble tests on Travis Mac --- tests/testthat/test-fastLm.R | 3 --- tests/testthat/test-general.R | 5 ----- tests/testthat/test-inline-dims.R | 4 ---- tests/testthat/test-rng.R | 3 --- 4 files changed, 15 deletions(-) diff --git a/tests/testthat/test-fastLm.R b/tests/testthat/test-fastLm.R index f782471..1a907cf 100644 --- a/tests/testthat/test-fastLm.R +++ b/tests/testthat/test-fastLm.R @@ -8,7 +8,6 @@ X <- matrix(rnorm(n*p), ncol=p) y <- X %*% c(rep(0.5, p)) + rnorm(n) test_that("models from R and AF are similar", { - skip_if(identical(Sys.getenv("TRAVIS_OS_NAME"), "osx"), message = "On Travis Mac") # fit model with R and AF modelR <- lm.fit(X, y) modelAF <- fastLmPure(X, y) @@ -20,7 +19,6 @@ test_that("models from R and AF are similar", { }) test_that("including intercept works", { - skip_if(identical(Sys.getenv("TRAVIS_OS_NAME"), "osx"), message = "On Travis Mac") X <- cbind(1, X) modelAF <- fastLmPure(X, y) expect_true(modelAF$intercept) @@ -28,7 +26,6 @@ test_that("including intercept works", { }) test_that("models from R and AF on CPU are very similar", { - skip_if(identical(Sys.getenv("TRAVIS_OS_NAME"), "osx"), message = "On Travis Mac") skip_on_os("mac") arrayfire_set_backend("CPU") # fit model with R and AF diff --git a/tests/testthat/test-general.R b/tests/testthat/test-general.R index 0836f3b..d65d1ef 100644 --- a/tests/testthat/test-general.R +++ b/tests/testthat/test-general.R @@ -1,12 +1,10 @@ context("general") test_that("info message is produced", { - skip_if(identical(Sys.getenv("TRAVIS_OS_NAME"), "osx"), message = "On Travis Mac") expect_output(arrayfire_info(), regex = "^ArrayFire v.*") }) test_that("getting and setting the device works", { - skip_if(identical(Sys.getenv("TRAVIS_OS_NAME"), "osx"), message = "On Travis Mac") device_count <- arrayfire_count_device() for (i in 1:device_count) { arrayfire_set_device(i) @@ -15,7 +13,6 @@ test_that("getting and setting the device works", { }) test_that("getting device info works", { - skip_if(identical(Sys.getenv("TRAVIS_OS_NAME"), "osx"), message = "On Travis Mac") device_info <- arrayfire_device_info() expect_type(device_info, "list") expect_type(device_info$name, "character") @@ -26,7 +23,6 @@ test_that("getting device info works", { test_that("getting and setting the backend works", { - skip_if(identical(Sys.getenv("TRAVIS_OS_NAME"), "osx"), message = "On Travis Mac") backends <- arrayfire_get_available_backends() for (backend in backends) { arrayfire_set_backend(backend) @@ -35,7 +31,6 @@ test_that("getting and setting the backend works", { }) test_that("set_backend w/o argument uses DEFAULT", { - skip_if(identical(Sys.getenv("TRAVIS_OS_NAME"), "osx"), message = "On Travis Mac") skip_on_os("mac") arrayfire_set_backend("DEFAULT") default_backend <- arrayfire_get_active_backend() diff --git a/tests/testthat/test-inline-dims.R b/tests/testthat/test-inline-dims.R index a085062..6019784 100644 --- a/tests/testthat/test-inline-dims.R +++ b/tests/testthat/test-inline-dims.R @@ -7,25 +7,21 @@ doubleArray <- inline::cxxfunction(signature(xs = "RcppArrayFire::typed_array