#!/bin/bash . "${0%/*}"/../lib.sh # # make sure list output matches # for sfx in py sh ; do lddtree.${sfx} -l /bin/bash > "${builddir}"/lddtree.${sfx}.list & done wait if diff -u "${builddir}"/lddtree.*.list ; then pass "lddtree -l /bin/bash" else fail "lddtree -l /bin/bash" fi rm -f "${builddir}"/lddtree.*.list # # Same as above but with the -a flag # for sfx in py sh ; do lddtree.${sfx} -l -a /bin/bash > "${builddir}"/lddtree.${sfx}.list-all & done wait if diff -u "${builddir}"/lddtree.*.list-all ; then pass "lddtree -l -a /bin/bash" else fail "lddtree -l -a /bin/bash" fi rm -f "${builddir}"/lddtree.*.list-all exit ${ret}