2017-03-29 16:15:07 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# This runs sipify on the demo header and checks output
|
|
|
|
|
2019-11-11 13:14:50 +01:00
|
|
|
srcdir=$(dirname $0)/../../
|
2019-11-11 12:24:42 +01:00
|
|
|
|
|
|
|
DIR=$(git -C ${srcdir} rev-parse --show-toplevel)
|
2017-03-29 16:15:07 +02:00
|
|
|
|
2018-06-21 11:51:22 +10:00
|
|
|
pushd ${DIR} > /dev/null || exit
|
2022-03-01 11:29:33 +01:00
|
|
|
outdiff=$(./scripts/sipify.pl tests/code_layout/sipify/sipifyheader.h | diff tests/code_layout/sipify/sipifyheader.expected.sip -)
|
2018-06-21 11:51:22 +10:00
|
|
|
popd > /dev/null || exit
|
2017-03-29 16:15:07 +02:00
|
|
|
|
|
|
|
if [[ $outdiff ]]; then
|
|
|
|
echo " *** sipify.pl did not output expected file"
|
|
|
|
echo "$outdiff"
|
|
|
|
exit 1
|
|
|
|
fi
|