#! /bin/bash # # Copyright (c) 2004, Karl Trygve Kalleberg # Copyright (c) 2004, Gentoo Foundation # # Licensed under the GNU General Public License, v2 . common-functions.sh tmpfile=$(tempfilename) test_size() { equery size gcc > ${tmpfile} x=$(grep "sys-devel/gcc" ${tmpfile} | wc -l) assert_ge ${FUNCNAME} ${x} 1 x=$(egrep "size\([0-9]+\)" ${tmpfile} | wc -l) assert_ge ${FUNCNAME} ${x} 1 } # Run tests test_size rm -f ${tmpfile}