]> git.saurik.com Git - wxWidgets.git/blame - src/png/test-pngtest.sh
simplify code to return from the end of the function
[wxWidgets.git] / src / png / test-pngtest.sh
CommitLineData
72281370
DS
1#!/bin/sh
2
3echo "Running tests. For details see pngtest-log.txt"
4
5echo "============ pngtest pngtest.png ==============" > pngtest-log.txt
6
7echo "Running test-pngtest.sh"
8if ./pngtest --strict ${srcdir}/pngtest.png >> pngtest-log.txt 2>&1
9then
10 echo " PASS: pngtest --strict pngtest.png"
11 err=0
12else
13 echo " FAIL: pngtest --strict pngtest.png"
14 err=1
15fi
16exit $err