node-opencv/smoke/smoke.sh
Loren M. Lang 13488fa94b Smoke test now uses portable file path
Added a sanity check to ensure smoke.sh is run from the correct folder
and use a relative path to the mona image so it works on any system.
2013-07-17 22:26:16 -07:00

15 lines
415 B
Bash
Executable File

#!/bin/bash
if [ ! -f smoke/smoketest.js ]; then
echo "Please run smoke test from the top-level folder of the repository." >&2
exit 1
fi
node-gyp build && echo '-- Compiled OK --
' && node smoke/smoketest.js && echo '-- Smoke Done, running tests --
' && npm test # && echo '-- Tests Run, runnning examples --
#(building example data)
#' && ./examples/make-example-files.sh && node examples/motion-track.js