File: memcheck.bash

package info (click to toggle)
perceptualdiff 2.1-7.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,232 kB
  • sloc: cpp: 1,100; sh: 116; makefile: 32
file content (20 lines) | stat: -rwxr-xr-x 450 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
#
# Run Valgrind memcheck on perceptualdiff.

set -eux

VALGRIND="valgrind --error-exitcode=2 --quiet --leak-check=full \
    --track-origins=yes --gen-suppressions=all --suppressions=memcheck.supp"

for d in ./build .
do
    pdiff="$d/perceptualdiff"
    if [ -f "$pdiff" ]; then
        break
    fi
done

$VALGRIND "$pdiff" test/cam_mb.tif test/cam_mb_ref.tif

$VALGRIND "$pdiff" --verbose --downsample 9 test/fish1.png test/fish2.png