[rkward-cvs] SF.net SVN: rkward:[3111] trunk/rkward/rkward/rbackend/rpackages/ rkwardtests

m-eik at users.sourceforge.net m-eik at users.sourceforge.net
Thu Oct 7 10:31:16 UTC 2010


Revision: 3111
          http://rkward.svn.sourceforge.net/rkward/?rev=3111&view=rev
Author:   m-eik
Date:     2010-10-07 10:31:16 +0000 (Thu, 07 Oct 2010)

Log Message:
-----------
rkwartests: updated, seems to work now.

Modified Paths:
--------------
    trunk/rkward/rkward/rbackend/rpackages/rkwardtests/DESCRIPTION
    trunk/rkward/rkward/rbackend/rpackages/rkwardtests/R/rktest.makeplugintests.R
    trunk/rkward/rkward/rbackend/rpackages/rkwardtests/R/rkwardtests-package.R
    trunk/rkward/rkward/rbackend/rpackages/rkwardtests/man/rktest.makeplugintests.Rd
    trunk/rkward/rkward/rbackend/rpackages/rkwardtests/man/rkwardtests-package.Rd

Modified: trunk/rkward/rkward/rbackend/rpackages/rkwardtests/DESCRIPTION
===================================================================
--- trunk/rkward/rkward/rbackend/rpackages/rkwardtests/DESCRIPTION	2010-10-06 17:12:07 UTC (rev 3110)
+++ trunk/rkward/rkward/rbackend/rpackages/rkwardtests/DESCRIPTION	2010-10-07 10:31:16 UTC (rev 3111)
@@ -2,10 +2,10 @@
 Type: Package
 Title: RKWard Plugin Test Suite Framework
 Version: 0.5.5
-Date: 2010-10-05
+Date: 2010-10-07
 Author: Thomas Friedrichsmeier
 Maintainer: Thomas Friedrichsmeier <thomas.friedrichsmeier at ruhr-uni-bochum.de>, m.eik michalke <meik.michalke at uni-duesseldorf.de>
-Depends: R (>= 2.9.0),methods,roxygen
+Depends: R (>= 2.9.0),methods
 Description: A set of functions, classes and methods to test plugins that were written for RKWard.
 License: GPL (>= 2)
 Encoding: UTF-8

Modified: trunk/rkward/rkward/rbackend/rpackages/rkwardtests/R/rktest.makeplugintests.R
===================================================================
--- trunk/rkward/rkward/rbackend/rpackages/rkwardtests/R/rktest.makeplugintests.R	2010-10-06 17:12:07 UTC (rev 3110)
+++ trunk/rkward/rkward/rbackend/rpackages/rkwardtests/R/rktest.makeplugintests.R	2010-10-07 10:31:16 UTC (rev 3111)
@@ -3,9 +3,10 @@
 #' The function \code{rktest.makeplugintests} will run a whole test suite that was prepared to check one or several RKWard plugins.
 #' 
 #' @title Run RKWard plugin test suite
-#' @usage rktest.makeplugintests(testsuites, outfile="make_plugintests.txt")
+#' @usage rktest.makeplugintests(testsuites, testroot, outfile="make_plugintests.txt")
 #' @aliases rktest.makeplugintests
 #' @param testsuites A character vector naming the test suites to be run.
+#' @param testroot A character vector pointing to the root directory where the test suite resides (including its folder with test standards).
 #' @param outfile A character string giving a file name for the result log.
 #' @return Results are printed to stdout and saved to the defined output file.
 #' @docType function
@@ -15,10 +16,15 @@
 #' @export
 #' @examples
 #' \dontrun{
-#' rktest.makeplugintests(testsuites=c("rkward_application_tests.R", "import_export_plugins.R"))
+#' rktest.makeplugintests(testsuites=c("rkward_application_tests.R", "import_export_plugins.R"), testroot=getwd())
 #' }
 
-rktest.makeplugintests <- function(testsuites, outfile="make_plugintests.txt"){
+rktest.makeplugintests <- function(testsuites, testroot, outfile="make_plugintests.txt"){
+  ## change to test root directory
+  oldwd <- getwd()
+  on.exit(setwd(oldwd))
+  setwd(testroot)
+
   ## initialize
   rktest.initializeEnvironment()
 

Modified: trunk/rkward/rkward/rbackend/rpackages/rkwardtests/R/rkwardtests-package.R
===================================================================
--- trunk/rkward/rkward/rbackend/rpackages/rkwardtests/R/rkwardtests-package.R	2010-10-06 17:12:07 UTC (rev 3110)
+++ trunk/rkward/rkward/rbackend/rpackages/rkwardtests/R/rkwardtests-package.R	2010-10-07 10:31:16 UTC (rev 3111)
@@ -4,8 +4,8 @@
 #' Package: \tab rkwardtests\cr
 #' Type: \tab Package\cr
 #' Version: \tab 0.5.5\cr
-#' Date: \tab 2010-10-05\cr
-#' Depends: \tab R (>= 2.9.0),methods,roxygen\cr
+#' Date: \tab 2010-10-07\cr
+#' Depends: \tab R (>= 2.9.0),methods\cr
 #' Encoding: \tab UTF-8\cr
 #' License: \tab GPL (>= 3)\cr
 #' LazyLoad: \tab yes\cr
@@ -21,4 +21,5 @@
 #' @author Thomas Friedrichsmeier \email{thomas.friedrichsmeier@@ruhr-uni-bochum.de}, Meik Michalke \email{meik.michalke@@uni-duesseldorf.de}
 #' @keywords package
 #' @seealso \code{\link[rkwardtests:rktest.makeplugintests]{rktest.makeplugintests}}
+roxygen <- function() NULL
 roxygen()

Modified: trunk/rkward/rkward/rbackend/rpackages/rkwardtests/man/rktest.makeplugintests.Rd
===================================================================
--- trunk/rkward/rkward/rbackend/rpackages/rkwardtests/man/rktest.makeplugintests.Rd	2010-10-06 17:12:07 UTC (rev 3110)
+++ trunk/rkward/rkward/rbackend/rpackages/rkwardtests/man/rktest.makeplugintests.Rd	2010-10-07 10:31:16 UTC (rev 3111)
@@ -1,7 +1,7 @@
 \name{rktest.makeplugintests}
 \alias{rktest.makeplugintests}
 \title{Run RKWard plugin test suite}
-\usage{rktest.makeplugintests(testsuites, outfile="make_plugintests.txt")}
+\usage{rktest.makeplugintests(testsuites, testroot, outfile="make_plugintests.txt")}
 \description{Run a whole RKWard plugin test suite}
 \details{The function \code{rktest.makeplugintests} will run a whole test suite that was prepared to check one or several RKWard plugins.}
 \alias{rktest.makeplugintests}
@@ -11,9 +11,10 @@
 \keyword{utilities}
 \seealso{\code{\link[rkwardtests:RKTestSuite]{RKTestSuite-class}}, \code{\link[rkwardtests:RKTestResult]{RKTestResult-class}}}
 \arguments{\item{testsuites}{A character vector naming the test suites to be run.}
+\item{testroot}{A character vector pointing to the root directory where the test suite resides (including its folder with test standards).}
 \item{outfile}{A character string giving a file name for the result log.}
 }
 \examples{\dontrun{
-rktest.makeplugintests(testsuites=c("rkward_application_tests.R", "import_export_plugins.R"))
+rktest.makeplugintests(testsuites=c("rkward_application_tests.R", "import_export_plugins.R"), testroot=getwd())
 }}
 

Modified: trunk/rkward/rkward/rbackend/rpackages/rkwardtests/man/rkwardtests-package.Rd
===================================================================
--- trunk/rkward/rkward/rbackend/rpackages/rkwardtests/man/rkwardtests-package.Rd	2010-10-06 17:12:07 UTC (rev 3110)
+++ trunk/rkward/rkward/rbackend/rpackages/rkwardtests/man/rkwardtests-package.Rd	2010-10-07 10:31:16 UTC (rev 3111)
@@ -7,8 +7,8 @@
 Package: \tab rkwardtests\cr
 Type: \tab Package\cr
 Version: \tab 0.5.5\cr
-Date: \tab 2010-10-05\cr
-Depends: \tab R (>= 2.9.0),methods,roxygen\cr
+Date: \tab 2010-10-07\cr
+Depends: \tab R (>= 2.9.0),methods\cr
 Encoding: \tab UTF-8\cr
 License: \tab GPL (>= 3)\cr
 LazyLoad: \tab yes\cr


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list