Changeset 23549 for trunk/base/tests


Ignore:
Timestamp:
Apr 4, 2007, 8:58:32 AM (13 years ago)
Author:
pguyot@…
Message:

Moved all tests to test/, so I'll be able to portindex them.

Location:
trunk/base/tests
Files:
1 added
2 edited
5 moved

Legend:

Unmodified
Added
Removed
  • trunk/base/tests/Makefile

    r19376 r23549  
    77all:
    88
    9 /tmp/darwinports-tests/opt/local/etc/ports/sources.conf: sources.conf
     9/tmp/macports-tests/opt/local/etc/ports/sources.conf: sources.conf
    1010        @echo setting up test installation
    11         rm -rf /tmp/darwinports-tests/
    12         mkdir -p /tmp/darwinports-tests/opt/local/etc/ports/
    13         mkdir -p /tmp/darwinports-tests/opt/local/share/
    14         mkdir -p /tmp/darwinports-tests/opt/local/var/db/dports/receipts/
    15         ln -s $(datadir)/darwinports /tmp/darwinports-tests/opt/local/share/
    16         cp sources.conf /tmp/darwinports-tests/opt/local/etc/ports/
     11        rm -rf /tmp/macports-tests/
     12        mkdir -p /tmp/macports-tests/opt/local/etc/ports/
     13        mkdir -p /tmp/macports-tests/opt/local/share/
     14        mkdir -p /tmp/macports-tests/opt/local/var/db/dports/receipts/
     15        ln -s $(datadir)/darwinports /tmp/macports-tests/opt/local/share/
     16        cp sources.conf /tmp/macports-tests/opt/local/etc/ports/
    1717
    1818clean:
    19         rm -rf /tmp/darwinports-tests/
     19        rm -rf /tmp/macports-tests/
    2020
    2121$(bindir)/port:
    22         @echo "Please install DarwinPorts before running these tests"
     22        @echo "Please install macports before running these tests"
    2323        @exit 1
    2424       
    25 test: clean /tmp/darwinports-tests/opt/local/etc/ports/sources.conf
    26         @for subdir in $(TESTS); do\
     25test: clean /tmp/macports-tests/opt/local/etc/ports/sources.conf
     26        @for testname in $(TESTS); do\
     27            subdir=test/$$testname; \
    2728                echo ===\> test ${DIRPRFX}$$subdir; \
    2829                if [ -e ${DIRPRFX}$$subdir/Makefile ]; then \
     
    4344                fi || exit 1; \
    4445        done
    45         @rm -rf /tmp/darwinports-tests/
     46        @rm -rf /tmp/macports-tests/
    4647
    4748install:
  • trunk/base/tests/test-ports.conf

    r19376 r23549  
    11# Set the directory in which to install ports
    2 prefix                  /tmp/darwinports-tests/opt/local
     2prefix                  /tmp/macports-tests/opt/local
    33
    44# Where to store ports specific database files
    5 portdbpath              /tmp/darwinports-tests/opt/local/var/db/dports
     5portdbpath              /tmp/macports-tests/opt/local/var/db/dports
    66
    77# Type of storage to use for the port registry information, "flat" or "sqlite"
     
    1313
    1414# Directory containing the X11 installation.
    15 x11prefix               /tmp/darwinports-tests/usr/X11R6
     15x11prefix               /tmp/macports-tests/usr/X11R6
    1616
    1717# Where to find the sources list.
    18 sources_conf            /tmp/darwinports-tests/opt/local/etc/ports/sources.conf
     18sources_conf            /tmp/macports-tests/opt/local/etc/ports/sources.conf
    1919
    2020# Where to find global variants definition file (optional)
     
    2525
    2626# Where to store/retrieve ports binary archive files
    27 portarchivepath         /tmp/darwinports-tests/opt/local/var/db/dports/packages
     27portarchivepath         /tmp/macports-tests/opt/local/var/db/dports/packages
    2828
    2929# Type of binary archive packages to create when using archive mode
Note: See TracChangeset for help on using the changeset viewer.