[96402] trunk/base/tests/test/statefile-version2

cal at macports.org cal at macports.org
Wed Aug 8 14:27:30 PDT 2012


Revision: 96402
          https://trac.macports.org/changeset/96402
Author:   cal at macports.org
Date:     2012-08-08 14:27:29 -0700 (Wed, 08 Aug 2012)
Log Message:
-----------
base: tests for statefiles: don't store Portfile checksum, but calculate it at runtime, since svn modifies the file

Modified Paths:
--------------
    trunk/base/tests/test/statefile-version2/Makefile
    trunk/base/tests/test/statefile-version2/statefile

Modified: trunk/base/tests/test/statefile-version2/Makefile
===================================================================
--- trunk/base/tests/test/statefile-version2/Makefile	2012-08-08 21:19:51 UTC (rev 96401)
+++ trunk/base/tests/test/statefile-version2/Makefile	2012-08-08 21:27:29 UTC (rev 96402)
@@ -9,6 +9,7 @@
 test:
 	@PORTSRC=$(PORTSRC) $(bindir)/port configure >/dev/null 2>&1
 	@cp statefile work/.macports.statefile-version2.state
+	@sed -i'' -E "s/@CHECKSUM@/`openssl dgst -sha256 Portfile | awk '{print $$2}'`/" work/.macports.statefile-version2.state
 	@PORTSRC=$(PORTSRC) $(bindir)/port destroot >output 2>&1 || (cat output; exit 1)
 	@diff -u master output || (echo "statefile version 2 wasn't outdated, but still triggered a rebuild"; exit 1)
 	@PORTSRC=$(PORTSRC) $(bindir)/port clean >/dev/null 2>&1

Modified: trunk/base/tests/test/statefile-version2/statefile
===================================================================
--- trunk/base/tests/test/statefile-version2/statefile	2012-08-08 21:19:51 UTC (rev 96401)
+++ trunk/base/tests/test/statefile-version2/statefile	2012-08-08 21:27:29 UTC (rev 96402)
@@ -1,5 +1,5 @@
 version: 2
-checksum: 9aca70a1bf19759dc9121a091c3661f265a2c72402591ac26019baaba2ac30e0
+checksum: @CHECKSUM@
 target: org.macports.fetch
 target: org.macports.checksum
 target: org.macports.extract
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120808/c333b282/attachment.html>


More information about the macports-changes mailing list