UNPKG

417 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 systemd-test --user test-user \
11 --out sandbox --type systemd \
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
17diff -r -u fixtures/systemd sandbox 1>&2 || exit $?