Changeset 23701 for trunk/base/tests


Ignore:
Timestamp:
Apr 7, 2007, 2:44:53 AM (13 years ago)
Author:
pguyot@…
Message:

New logic to portindex the test tree before tests.
New test for a complex dependency example. This test currently fails and it corresponds to a bug we have with MPlayer. If you install MPlayer +dvdread, it will try to install libdvdread+libdvdcss, but this will not try to install libdvdcss.

Location:
trunk/base/tests
Files:
7 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/tests/Makefile

    r23553 r23701  
    11include ../Mk/dports.autoconf.mk
    22
    3 TESTS?=checksums-1 cvs-and-patchsites envvariables site-tags trace xcodeversion
     3TESTS?=checksums-1 cvs-and-patchsites envvariables site-tags trace xcodeversion dependencies-c
    44
    5 .PHONY: test clean
     5.PHONY: test clean PortIndex
    66
    77all:
     
    1414        mkdir -p /tmp/macports-tests/opt/local/share/
    1515        mkdir -p /tmp/macports-tests/opt/local/var/db/dports/receipts/
     16        mkdir -p /tmp/macports-tests/opt/local/var/db/dports/build/
    1617        ln -s $(datadir)/darwinports /tmp/macports-tests/opt/local/share/
    17         ln -s test /tmp/macports-tests/dports/
     18        ln -s $(PWD)/test /tmp/macports-tests/dports/
    1819        cp sources.conf /tmp/macports-tests/opt/local/etc/ports/
     20
     21/tmp/macports-tests/dports/PortIndex: /tmp/macports-tests/opt/local/etc/ports/sources.conf PortIndex
     22        cp PortIndex /tmp/macports-tests/dports/PortIndex
     23
     24PortIndex:
     25        portindex
    1926
    2027clean:
    2128        rm -rf /tmp/macports-tests/
     29        rm -f PortIndex
    2230
    2331$(bindir)/port:
     
    2533        @exit 1
    2634       
    27 test: clean /tmp/macports-tests/opt/local/etc/ports/sources.conf
     35test: clean /tmp/macports-tests/dports/PortIndex /tmp/macports-tests/opt/local/etc/ports/sources.conf
    2836        @for testname in $(TESTS); do\
    2937            subdir=test/$$testname; \
     
    4755        done
    4856        @rm -rf /tmp/macports-tests/
     57        @rm -f PortIndex
    4958
    5059install:
Note: See TracChangeset for help on using the changeset viewer.