bd0eac4823c85ed2176c4afe20097c471d23e62d
[gentoolkit.git] / trunk / src / equery / tests / test-belongs.sh
1 #! /bin/bash
2 #
3 # Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
4 # Copyright (c) 2004, Gentoo Foundation
5 #
6 # Licensed under the GNU General Public License, v2
7
8 . common-functions.sh
9
10 tmpfile=$(tempfilename)
11
12 test_belongs() {
13         equery belongs $(which gcc) > ${tmpfile}
14
15         x=$(grep "gcc-config" ${tmpfile} | wc -l)
16         
17         assert_eq ${FUNCNAME} ${x} 1
18 }
19
20 # Run tests
21
22 test_belongs
23
24 rm -f ${tmpfile}