0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.189.157.91


Current Path : /var/www/misc/public_html/studentportal_old/plugins/morrisjs/spec/viz/
Upload File :
Current File : /var/www/misc/public_html/studentportal_old/plugins/morrisjs/spec/viz/run.sh

#!/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