Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Commit

Permalink
Initial commit of FuncUnit, a single unit test, and a null app
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Mosedale committed Aug 24, 2011
1 parent 685cc65 commit ed62705
Show file tree
Hide file tree
Showing 15 changed files with 24,304 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
.project
28 changes: 28 additions & 0 deletions externals/funcunit/envjs
@@ -0,0 +1,28 @@
#!/bin/sh
# This file is a batch script that invokes loader
# ex: documentjs/doc cookbook/cookbook.html

# Absolute path to this script. /home/user/bin/foo.sh

TARGET_FILE=$0

cd `dirname $TARGET_FILE`
TARGET_FILE=`basename $TARGET_FILE`

PHYS_DIR=`pwd -P`
SCRIPT=$PHYS_DIR/$TARGET_FILE

# Absolute path this script is in. /home/user/bin
BASE=`dirname $SCRIPT`/

# Keeps the executing directory as the JMVC root.
cd $BASE..

# classpath
CP=$BASE../funcunit/java/selenium-java-client-driver.jar:$BASE../steal/rhino/js.jar

# load the run.js file
LOADPATH=${BASE}scripts/run.js

# call js.bat
. $BASE../steal/rhino/loader $1 $2 $3 $4 $5 $6
19 changes: 19 additions & 0 deletions externals/funcunit/envjs.bat
@@ -0,0 +1,19 @@
@echo off
:: this file is a batch script that invokes loader.bat
:: ex: funcunit/envjs cookbook/qunit.html

:: relative path to this script
set BASE=%~dps0
set CMD=%0

:: classpath
SET CP=%BASE%java/selenium-java-client-driver.jar;%BASE%../steal/rhino/js.jar

:: load the run.js file
SET LOADPATH=%BASE%scripts/run.js

:: call js.bat
CALL %BASE%../steal/rhino/loader.bat %1 %2 %3 %4 %5 %6

:: report errors to CI/build wrapper(s)
if errorlevel 1 exit 1

0 comments on commit ed62705

Please sign in to comment.