runtime test for tricky enumerations and support for out of source testing via args option to R
This commit is contained in:
parent
9aa0f85cda
commit
1a6d952094
13 changed files with 44 additions and 12 deletions
11
Examples/test-suite/r/preproc_constants_runme.R
Normal file
11
Examples/test-suite/r/preproc_constants_runme.R
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
clargs <- commandArgs(trailing=TRUE)
|
||||
source(file.path(clargs[1], "unittest.R"))
|
||||
|
||||
dyn.load(paste("preproc_constants", .Platform$dynlib.ext, sep=""))
|
||||
source("preproc_constants.R")
|
||||
cacheMetaData(1)
|
||||
|
||||
v <- enumToInteger('kValue', '_MyEnum')
|
||||
print(v)
|
||||
unittest(v,4)
|
||||
q(save="no")
|
||||
Loading…
Add table
Add a link
Reference in a new issue