aboutsummaryrefslogtreecommitdiff
blob: bd0eac4823c85ed2176c4afe20097c471d23e62d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/bash
#
# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
# Copyright (c) 2004, Gentoo Foundation
#
# Licensed under the GNU General Public License, v2

. common-functions.sh

tmpfile=$(tempfilename)

test_belongs() {
	equery belongs $(which gcc) > ${tmpfile}

	x=$(grep "gcc-config" ${tmpfile} | wc -l)
	
	assert_eq ${FUNCNAME} ${x} 1
}

# Run tests

test_belongs

rm -f ${tmpfile}