mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
18 lines
329 B
Bash
Executable File
18 lines
329 B
Bash
Executable File
#!/bin/sh -xe
|
|
|
|
WORK_DIR=$1
|
|
|
|
cd $WORK_DIR
|
|
|
|
./fft
|
|
|
|
uprightdiff --format json output.pgm /expected.pgm diff.pgm > diff.json
|
|
|
|
MODIFIED_AREA=`cat diff.json | jq '.modifiedArea'`
|
|
|
|
if [ $MODIFIED_AREA -gt 10 ]; then
|
|
echo "The image difference with expected result is too big: ${MODIFIED_AREA} pixels"
|
|
exit 255
|
|
fi
|
|
echo "Success"
|