diff options
author | fuzzyray <fuzzyray@gentoo.org> | 2009-04-30 21:52:45 +0000 |
---|---|---|
committer | fuzzyray <fuzzyray@gentoo.org> | 2009-04-30 21:52:45 +0000 |
commit | 86eaf5e03289e45a95514b4f6011157972016e9d (patch) | |
tree | c16903693f2030c7b01b346b29b265dc1a473888 /src/equery/tests/test-depgraph.sh | |
parent | Fix has_key() deprecation message. (Bug #232797) (diff) | |
download | gentoolkit-86eaf5e03289e45a95514b4f6011157972016e9d.tar.gz gentoolkit-86eaf5e03289e45a95514b4f6011157972016e9d.tar.bz2 gentoolkit-86eaf5e03289e45a95514b4f6011157972016e9d.zip |
Tagging the gentoolkit-0.2.4 releasegentoolkit-0.2.4
svn path=/tags/gentoolkit-0.2.4/; revision=564
Diffstat (limited to 'src/equery/tests/test-depgraph.sh')
-rwxr-xr-x | src/equery/tests/test-depgraph.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/equery/tests/test-depgraph.sh b/src/equery/tests/test-depgraph.sh new file mode 100755 index 0000000..016bb37 --- /dev/null +++ b/src/equery/tests/test-depgraph.sh @@ -0,0 +1,27 @@ +#! /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_depgraph() { + equery depgraph gcc > ${tmpfile} + + x=$(grep "app-shells/bash" ${tmpfile} | wc -l) + + assert_eq ${FUNCNAME} ${x} 1 + + x=$(grep "virtual/libc" ${tmpfile} | wc -l) + assert_eq ${FUNCNAME} ${x} 1 +} + +# Run tests + +test_depgraph + +rm -f ${tmpfile}
\ No newline at end of file |