socsvn commit: r257286 - soc2013/mattbw/tests

mattbw at FreeBSD.org mattbw at FreeBSD.org
Fri Sep 13 22:08:13 UTC 2013


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."


More information about the svn-soc-all mailing list