Date: Fri, 13 Sep 2013 22:08:12 GMT From: mattbw@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r257286 - soc2013/mattbw/tests Message-ID: <201309132208.r8DM8CVD089487@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mattbw Date: Fri Sep 13 22:08:12 2013 New Revision: 257286 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=257286 Log: Add new functional test for getting package details. Added: soc2013/mattbw/tests/ftest-get-details-single.sh (contents, props changed) Added: soc2013/mattbw/tests/ftest-get-details-single.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2013/mattbw/tests/ftest-get-details-single.sh Fri Sep 13 22:08:12 2013 (r257286) @@ -0,0 +1,26 @@ +#!/bin/sh +# Functional test for GetDetails based on test repositories. + +pkcon get-details testpkg | awk -f strip_messages.awk > testmsg + +DIFF=`echo "${SUCCESS_MSG}" | diff -rupN - testmsg << EOF +Package description + package: testpkg-1.0.0.freebsd:9:x86:32 + license: BSD + group: multimedia + description: This is a test package for the PackageKit backend. + +WWW: http://wiki.freebsd.org/SummerOfCode2013/pkgPackagekit + size: 123456789 bytes + url: https//wiki.freebsd.org/SummerOfCode2013/pkgPackagekit +EOF +` + +# Expect the diff to be empty. +if [ -n "${DIFF}" ] +then + echo "Test failed; diff follows:" + echo "${DIFF}" + exit +fi +echo "Test succeeded."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309132208.r8DM8CVD089487>