UNPKG

600 Bapplication/x-shView Raw
1#!/bin/bash
2
3NF="node ../nf.js"
4SED=`which gsed || which sed`
5
6rm -rf sandbox
7mkdir -p sandbox
8
9PATH=$(dirname $(which node)) $NF export \
10 --app upstart-single-test --user test-user \
11 --out sandbox --type upstart-single \
12 --env fixtures/env.env --procfile fixtures/Procfile
13
14$SED -i -e "s%$(pwd)%TEST_DIR%g" \
15 -e "s%$(dirname $(which node))%TEST_PATH%g" sandbox/*
16
17# Fixtures can be updated to match output by running `npm test --update-fixtures`
18test -n "$npm_config_update_fixtures" && cp sandbox/* fixtures/upstart-single/
19
20diff -r -u fixtures/upstart-single sandbox 1>&2 || exit $?