diff options
-rw-r--r-- | .travis.yml | 6 | ||||
-rwxr-xr-x | check_missing_headers.sh | 33 |
2 files changed, 38 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index e12e5331..6ceba3fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,4 +19,8 @@ script: -Dtest=true \ -Dvideotestsrc=true \ -Dvolume=true \ - && make && make test' + && make \ + && make test \ + && env DESTDIR=i make install \ + && env PREFIX=build/i/usr/local ./check_missing_headers.sh \ + ' diff --git a/check_missing_headers.sh b/check_missing_headers.sh new file mode 100755 index 00000000..b8f9ba9f --- /dev/null +++ b/check_missing_headers.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +# This script will tell you if there are headers in the source tree +# that have not been installed in $PREFIX + +LIST="" + +for i in `find spa/include -name '*.h' | sed s#spa/include/##`; +do + [ -f $PREFIX/include/$i ] || LIST="$i $LIST" +done + +for i in `find src/extensions -name '*.h' | sed s#src/#pipewire/#`; +do + [ -f $PREFIX/include/$i ] || LIST="$i $LIST" +done + +for i in `find src/pipewire -name '*.h' -a -not -name '*private.h' | sed s#src/##`; +do + [ -f $PREFIX/include/$i ] || LIST="$i $LIST" +done + +for i in $LIST; +do + echo "$i not installed" +done + +if [ "$LIST" != "" ]; +then + exit 1 +fi + +exit 0 |