[107654] branches/gsoc13-tests/tests/test/case-insensitive-deactivate

marius at macports.org marius at macports.org
Wed Jul 3 15:52:00 PDT 2013


Revision: 107654
          https://trac.macports.org/changeset/107654
Author:   marius at macports.org
Date:     2013-07-03 15:51:59 -0700 (Wed, 03 Jul 2013)
Log Message:
-----------
case-insensitive removed constraints, added description, cleanup.

Modified Paths:
--------------
    branches/gsoc13-tests/tests/test/case-insensitive-deactivate/test.tcl

Removed Paths:
-------------
    branches/gsoc13-tests/tests/test/case-insensitive-deactivate/Makefile

Deleted: branches/gsoc13-tests/tests/test/case-insensitive-deactivate/Makefile
===================================================================
--- branches/gsoc13-tests/tests/test/case-insensitive-deactivate/Makefile	2013-07-03 22:36:39 UTC (rev 107653)
+++ branches/gsoc13-tests/tests/test/case-insensitive-deactivate/Makefile	2013-07-03 22:51:59 UTC (rev 107654)
@@ -1,31 +0,0 @@
-include ../../../Mk/macports.autoconf.mk
-
-# see test-macports.conf for the value of prefix
-TESTFILE=/tmp/macports-tests/opt/local/var/test/case
-TESTPORT1=casesensitive
-TESTPORT2=CaseSensitivE
-
-.PHONY: test
-
-$(bindir)/port:
-	@echo "Please install MacPorts before running this test"
-	@exit 1
-
-test:
-	@echo port install $(TESTPORT1)
-	@sed 's/@name@/$(TESTPORT1)/' Portfile.in > Portfile
-	@PORTSRC=$(PORTSRC) $(bindir)/port install > output 2>&1 || (cat output; exit 1)
-	@if [ ! -f $(TESTFILE) ]; then \
-		echo "FAILED: File should exist after install: $(TESTFILE)" && exit 1; \
-	fi
-	@echo port uninstall $(TESTPORT2)
-	@sed 's/@name@/$(TESTPORT2)/' Portfile.in > Portfile
-	@PORTSRC=$(PORTSRC) $(bindir)/port uninstall > output 2>&1 || (cat output; exit 1)
-	@if [ -f $(TESTFILE) ]; then \
-		rm $(TESTFILE); \
-		echo "FAILED: File should NOT exist after uninstall: $(TESTFILE)" && exit 1; \
-	else \
-		echo "SUCCESS!"; \
-	fi
-	rm Portfile
-	rm output

Modified: branches/gsoc13-tests/tests/test/case-insensitive-deactivate/test.tcl
===================================================================
--- branches/gsoc13-tests/tests/test/case-insensitive-deactivate/test.tcl	2013-07-03 22:36:39 UTC (rev 107653)
+++ branches/gsoc13-tests/tests/test/case-insensitive-deactivate/test.tcl	2013-07-03 22:51:59 UTC (rev 107654)
@@ -3,8 +3,9 @@
 
 source [file dirname $argv0]/../library.tcl
 
-set file "output"
-set dir "work"
+makeFile "" "Portfile"
+makeFile "" $output_file
+makeDirectory $work_dir
 set path [file dirname [file normalize $argv0]]
 
 set testfile "/tmp/macports-tests/opt/local/var/test/case"
@@ -45,27 +46,20 @@
     }
 }
 
+
 # Test cases.
 test file_installed {
     Regression test for file installed correctly.
-} -constraints {
-    root
 } -body {
     test_exists
 } -result "Port installed."
 
 test file_uninstalled {
     Regression test for file uninstalled correctly.
-} -constraints {
-    root
 } -body {
     test_not_exists
 } -result "Port uninstalled."
 
-# remove output file and print results
-removeFile Portfile
-removeFile $file
-removeDirectory $dir
 
 cleanup
-cleanupTests
+cleanupTests
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130703/ce1790de/attachment.html>


More information about the macports-changes mailing list