mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Added assets + dependencies
This commit is contained in:
32
bower_components/morrisjs/spec/viz/run.sh
vendored
Executable file
32
bower_components/morrisjs/spec/viz/run.sh
vendored
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
|
||||
# visual_specs.js creates output in output/XXX.png
|
||||
phantomjs visual_specs.js
|
||||
|
||||
# clear out old diffs
|
||||
mkdir -p diff
|
||||
rm -f diff/*
|
||||
|
||||
# generate diffs
|
||||
PASS=1
|
||||
for i in exemplary/*.png
|
||||
do
|
||||
FN=`basename $i`
|
||||
perceptualdiff $i output/$FN -output diff/$FN
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo "OK: $FN"
|
||||
else
|
||||
echo "FAIL: $FN"
|
||||
PASS=0
|
||||
fi
|
||||
done
|
||||
|
||||
# pass / fail
|
||||
if [ $PASS -eq 1 ]
|
||||
then
|
||||
echo "Success."
|
||||
else
|
||||
echo "Failed."
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user