Skip to content

Commit 9ddc8ee

Browse files
TESTS: Make test scripts self-executable
1 parent d6c4a6d commit 9ddc8ee

28 files changed

+29
-0
lines changed

inst/testme/deploy.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ for (kk in seq_along(files)) {
6262

6363
## Generate R unit test script
6464
code <- c(
65+
"#! /usr/bin/env Rscript",
6566
sprintf("## This runs testme test script inst/testme/test-%s.R", name),
6667
"## Don't edit - it was autogenerated by inst/testme/deploy.R",
6768
sprintf('%s:::testme("%s")', pkgname, name)
6869
)
6970
writeLines(code, con = target_file)
71+
Sys.chmod(target_file, mode = "0755")
7072
}
7173

7274
message(sprintf("Deploying %d test scripts ... done", length(files)))

tests/test-BatchtoolsFuture,gc.R

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env Rscript
12
## This runs testme test script inst/testme/test-BatchtoolsFuture,gc.R
23
## Don't edit - it was autogenerated by inst/testme/deploy.R
34
future.batchtools:::testme("BatchtoolsFuture,gc")

tests/test-BatchtoolsFuture.R

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env Rscript
12
## This runs testme test script inst/testme/test-BatchtoolsFuture.R
23
## Don't edit - it was autogenerated by inst/testme/deploy.R
34
future.batchtools:::testme("BatchtoolsFuture")

tests/test-BatchtoolsFutureError.R

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env Rscript
12
## This runs testme test script inst/testme/test-BatchtoolsFutureError.R
23
## Don't edit - it was autogenerated by inst/testme/deploy.R
34
future.batchtools:::testme("BatchtoolsFutureError")

tests/test-batchtools_bash.R

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env Rscript
12
## This runs testme test script inst/testme/test-batchtools_bash.R
23
## Don't edit - it was autogenerated by inst/testme/deploy.R
34
future.batchtools:::testme("batchtools_bash")

tests/test-batchtools_custom.R

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env Rscript
12
## This runs testme test script inst/testme/test-batchtools_custom.R
23
## Don't edit - it was autogenerated by inst/testme/deploy.R
34
future.batchtools:::testme("batchtools_custom")

tests/test-batchtools_hpc.R

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env Rscript
12
## This runs testme test script inst/testme/test-batchtools_hpc.R
23
## Don't edit - it was autogenerated by inst/testme/deploy.R
34
future.batchtools:::testme("batchtools_hpc")

tests/test-batchtools_interactive.R

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env Rscript
12
## This runs testme test script inst/testme/test-batchtools_interactive.R
23
## Don't edit - it was autogenerated by inst/testme/deploy.R
34
future.batchtools:::testme("batchtools_interactive")

tests/test-batchtools_local.R

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env Rscript
12
## This runs testme test script inst/testme/test-batchtools_local.R
23
## Don't edit - it was autogenerated by inst/testme/deploy.R
34
future.batchtools:::testme("batchtools_local")

tests/test-batchtools_multicore.R

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! /usr/bin/env Rscript
12
## This runs testme test script inst/testme/test-batchtools_multicore.R
23
## Don't edit - it was autogenerated by inst/testme/deploy.R
34
future.batchtools:::testme("batchtools_multicore")

0 commit comments

Comments
 (0)