runtime test for tricky enumerations and support for out of source testing via args option to R

This commit is contained in:
Richard Beare 2015-08-11 09:23:27 +10:00 • committed by William S Fulton
commit 1a6d952094
13 changed files with 44 additions and 12 deletions

View 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")