Changeset 2249


Ignore:
Timestamp:
May 12, 2006, 10:37:04 AM (17 years ago)
Author:
Nicklas Nordborg
Message:

Added first version of automated tests for roles. References #221 and #222.

Location:
trunk
Files:
16 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r2209 r2249  
    249249      </fileset>
    250250    </copy>
    251     <chmod file="${test.build}/run.sh" perm="a+x"/>
     251    <chmod dir="${test.build}" includes="*.sh" perm="a+x"/>
    252252    <copy todir="${test.build}">
    253253      <fileset dir="${src}">
  • trunk/doc/test/permissions/firstpage.tex

    r2236 r2249  
    5454\end{enumerate}
    5555
     56These tests can also be run in automated mode by test programs. This will of
     57course not test the web client, but are useful if one quickly needs to do the
     58parts of the test and then continue with for example the user tests on the
     59web. To run the tests you must first compile the test programs with "ant test".
     60
     61Then execute: ./test.sh roles <cmds>
     62
     63where <cmds> is a list specifying which tests to run. The following values
     64can be used:
     65
     66\begin{itemize}
     67\item all: Run all tests
     68\item root: Run the root user tests
     69\item admin: Run the administrator tests
     70\item power: Run the power user tests
     71\item user: Run the regular user tests
     72\item guest: Run the guest user tests
     73\end{itemize}
     74
     75
     76
    5677\newpage
  • trunk/src/test/run.sh

    r1974 r2249  
    33# BioArray Software Environment (BASE) - http://base.thep.lu.se/
    44# Copyright (C) 2002-2004 Lao Saal, Carl Troein,
    5 # Johan Vallon-Christersson, Jari Hkkinen, Nicklas Nordborg
     5# Johan Vallon-Christersson, Jari Häkkinen, Nicklas Nordborg
    66#
    77# This file is part of BASE.
     
    2323# ----------------------------------------
    2424
    25 # Set up the classpath
    26 CP=.
    27 
    28 # Base2 core
    29 CP=$CP:../core
    30 
    31 # Hibernate
    32 CP=$CP:../../lib/compile/hibernate3.jar
    33 CP=$CP:../../lib/dist/cglib-2.1.3.jar
    34 CP=$CP:../../lib/dist/asm.jar
    35 CP=$CP:../../lib/dist/asm-attrs.jar
    36 CP=$CP:../../lib/dist/commons-collections-2.1.1.jar
    37 CP=$CP:../../lib/dist/commons-logging-1.0.4.jar
    38 CP=$CP:../../lib/dist/dom4j-1.6.1.jar
    39 CP=$CP:../../lib/dist/ehcache-1.1.jar
    40 CP=$CP:../../lib/dist/jta.jar
    41 CP=$CP:../../lib/dist/antlr-2.7.6rc1.jar
    42 
    43 # Log4j logging system (also used by Hibernate)
    44 CP=$CP:../../lib/compile/log4j-1.2.11.jar
    45 
    46 # C3P0 Connection pool manager
    47 CP=$CP:../../lib/dist/c3p0-0.9.0.jar
    48 
    49 # MySQL JDBC driver
    50 CP=$CP:../../lib/dist/mysql-connector-java-3.1.12-bin.jar
    51 
    52 # Postgres JDBC driver
    53 CP=$CP:../../lib/dist/postgresql-8.0-313.jdbc3.jar
    54 
    55 # Oracle JDBC driver (experimental)
    56 CP=$CP:../../lib/dist/ojdbc14.jar
    57 
    58 # JDOM and Xerces XML parser
    59 CP=$CP:../../lib/compile/jdom.jar
    60 CP=$CP:../../lib/dist/jaxen-1.1-beta-7.jar
    61 CP=$CP:../../lib/dist/saxpath.jar
    62 CP=$CP:../../lib/dist/xerces-2.6.2.jar
    63 CP=$CP:../../lib/dist/xml-apis.jar
    64 
    65 # Java Advanced Imaging
    66 CP=$CP:../../lib/compile/jai_codec.jar
    67 CP=$CP:../../lib/compile/jai_core.jar
    68 CP=$CP:../../lib/compile/mlibwrapper_jai.jar
    69 
    70 # Java Math Expression Parser
    71 CP=$CP:../../lib/compile/jep-2.3.0.jar
    72 
    73 # JFreeChart
    74 CP=$CP:../../lib/compile/jfreechart-1.0.0.jar
    75 CP=$CP:../../lib/compile/jcommon-1.0.0.jar
    76 
     25# Import CLASSPATH($CP)
     26. ./set_classpath.sh
    7727
    7828# Execute test class
Note: See TracChangeset for help on using the changeset viewer.