mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
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.
15 lines
415 B
Bash
Executable File
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
|