require_optional 196 Bytes
Newer Older
1 2 3 4 5 6 7
#!/bin/sh
set -e

TEMP=${ADTTMP:-${TMPDIR:-/tmp}}
TDIR=$(mktemp -d $TEMP/smokeXXXXXX)
PDIR=`pwd`

8
cp -a requireoptional/test $TDIR
9 10 11
cd $TDIR
ln -s /usr/lib/nodejs/require_optional/index.js .
mocha