1 | #!/bin/bash
|
2 |
|
3 | NF="node ../nf.js"
|
4 | SED=`which gsed || which sed`
|
5 |
|
6 | rm -rf sandbox
|
7 | mkdir -p sandbox
|
8 |
|
9 | PATH=$(dirname $(which node)) $NF export \
|
10 | --app upstart-test --user test-user \
|
11 | --out sandbox --type upstart \
|
12 | --template fixtures/upstart-custom-templates \
|
13 | --env fixtures/env.env --procfile fixtures/Procfile
|
14 |
|
15 | $SED -i -e "s%$(pwd)%TEST_DIR%g" \
|
16 | -e "s%$(dirname $(which node))%TEST_PATH%g" sandbox/*
|
17 |
|
18 |
|
19 | test -n "$npm_config_update_fixtures" && cp sandbox/* fixtures/upstart-custom/
|
20 |
|
21 | diff -r -u fixtures/upstart-custom sandbox 1>&2 || exit $?
|