#!/bin/bash . ./testlib.sh . ./pbuilder-satisfydepends-funcs # testsuite to test pbuilder-satisfydepends-funcs. DEBIAN_CONTROL="" BD_REGEXP="build-(depends|depends-indep)" cleanup() { if [ -n "$DEBIAN_CONTROL" ]; then rm -f "$DEBIAN_CONTROL" fi } test_get_build_deps() { cat <"$DEBIAN_CONTROL" Source: amule XXXX: Build-Depends: autotools-dev, debhelper, quilt, ## libwxgtk2.8-dev Build-Depends-Indep: test, test1, test2, test3 | test4, test5 Misc: test Build-Depends: wrong build depends, line Description: test other things wow EOF get_build_deps } trap cleanup sigpipe sighup exit # TODO move to build dir DEBIAN_CONTROL="$(tempfile)" expect_output " autotools-dev, debhelper, quilt, libwxgtk2.8-dev test, test1, test2, test3 | test4, test5" test_get_build_deps testlib_summary