Changeset 96402 for trunk/base/tests


Ignore:
Timestamp:
Aug 8, 2012, 9:27:29 PM (8 years ago)
Author:
cal@…
Message:

base: tests for statefiles: don't store Portfile checksum, but calculate it at runtime, since svn modifies the file

Location:
trunk/base/tests/test/statefile-version2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/tests/test/statefile-version2/Makefile

    r96400 r96402  
    1010        @PORTSRC=$(PORTSRC) $(bindir)/port configure >/dev/null 2>&1
    1111        @cp statefile work/.macports.statefile-version2.state
     12        @sed -i'' -E "s/@CHECKSUM@/`openssl dgst -sha256 Portfile | awk '{print $$2}'`/" work/.macports.statefile-version2.state
    1213        @PORTSRC=$(PORTSRC) $(bindir)/port destroot >output 2>&1 || (cat output; exit 1)
    1314        @diff -u master output || (echo "statefile version 2 wasn't outdated, but still triggered a rebuild"; exit 1)
  • trunk/base/tests/test/statefile-version2/statefile

    r96400 r96402  
    11version: 2
    2 checksum: 9aca70a1bf19759dc9121a091c3661f265a2c72402591ac26019baaba2ac30e0
     2checksum: @CHECKSUM@
    33target: org.macports.fetch
    44target: org.macports.checksum
Note: See TracChangeset for help on using the changeset viewer.