[107704] branches/gsoc13-tests/tests/test/site-tags
marius at macports.org
marius at macports.org
Thu Jul 4 07:37:20 PDT 2013
Revision: 107704
https://trac.macports.org/changeset/107704
Author: marius at macports.org
Date: 2013-07-04 07:37:20 -0700 (Thu, 04 Jul 2013)
Log Message:
-----------
site-tags removed constraints, added description, verbose output, description, cleanup.
Modified Paths:
--------------
branches/gsoc13-tests/tests/test/site-tags/test.tcl
Added Paths:
-----------
branches/gsoc13-tests/tests/test/site-tags/DESCRIPTION
Removed Paths:
-------------
branches/gsoc13-tests/tests/test/site-tags/master
Added: branches/gsoc13-tests/tests/test/site-tags/DESCRIPTION
===================================================================
--- branches/gsoc13-tests/tests/test/site-tags/DESCRIPTION (rev 0)
+++ branches/gsoc13-tests/tests/test/site-tags/DESCRIPTION 2013-07-04 14:37:20 UTC (rev 107704)
@@ -0,0 +1,4 @@
+This test checks if MacPorts can fetch files from different URLs for the
+specified tags.
+
+There is 1 test case that looks for errors in the output file.
Deleted: branches/gsoc13-tests/tests/test/site-tags/master
===================================================================
--- branches/gsoc13-tests/tests/test/site-tags/master 2013-07-04 14:14:24 UTC (rev 107703)
+++ branches/gsoc13-tests/tests/test/site-tags/master 2013-07-04 14:37:20 UTC (rev 107704)
@@ -1,8 +0,0 @@
----> Fetching distfiles for site-tags
----> Attempting to fetch app-bm.tar.gz from http://www.douglas.stebila.ca/files/code/vim/app/
----> Attempting to fetch doc.tar.gz from http://www.douglas.stebila.ca/files/code/vim/doc/
----> Verifying checksums for site-tags
----> Extracting site-tags
----> Configuring site-tags
----> Building site-tags
----> Testing site-tags
Modified: branches/gsoc13-tests/tests/test/site-tags/test.tcl
===================================================================
--- branches/gsoc13-tests/tests/test/site-tags/test.tcl 2013-07-04 14:14:24 UTC (rev 107703)
+++ branches/gsoc13-tests/tests/test/site-tags/test.tcl 2013-07-04 14:37:20 UTC (rev 107704)
@@ -3,12 +3,12 @@
source [file dirname $argv0]/../library.tcl
-set file "output"
-set dir "work"
+makeFile "" $output_file
+makeDirectory $work_dir
set path [file dirname [file normalize $argv0]]
proc sitetag {} {
- global file
+ global output_file
global path
load_variables $path
@@ -18,20 +18,20 @@
port_run $path
set err "error*"
- set line [get_line $file $err]
- return $line
+ set line [get_line $output_file $err]
+ if {$line == -1} {
+ return "No errors found."
+ } else {
+ return "Errors found in the output file."
+ }
}
test site-tags {
Regression test for site-tags.
-} -constraints {
- root
} -body {
sitetag
-} -result -1
+} -result "No errors found."
-removeFile $file
-removeDirectory $dir
cleanup
cleanupTests
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130704/61297ca2/attachment.html>
More information about the macports-changes
mailing list