QGIS/tests/code_layout/test_sipify.sh

16 lines
399 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# This runs sipify on the demo header and checks output
DIR=$(git rev-parse --show-toplevel)
2018-06-21 11:51:22 +10:00
pushd ${DIR} > /dev/null || exit
outdiff=$(./scripts/sipify.pl tests/code_layout/sipifyheader.h | diff tests/code_layout/sipifyheader.expected.sip -)
2018-06-21 11:51:22 +10:00
popd > /dev/null || exit
if [[ $outdiff ]]; then
echo " *** sipify.pl did not output expected file"
echo "$outdiff"
exit 1
fi