Changeset 71039


Ignore:
Timestamp:
Aug 30, 2010, 2:19:42 PM (10 years ago)
Author:
raimue@…
Message:

tests: Always run tests from tests/ subdir when executing 'make test'

Location:
trunk/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/Makefile.in

    r68996 r71039  
    22
    33PATH            = @PATH_CLEANED@
    4 SUBDIR          = doc src
     4SUBDIR          = doc src tests
    55DISTDIR         = dist
    66DISTVER         =
  • trunk/base/tests/Makefile

    r59679 r71039  
    55PWD=$(shell pwd)
    66
    7 .PHONY: test clean PortIndex
     7.PHONY: all clean install test PortIndex
    88
    9 all:
     9all::
    1010
    1111/tmp/macports-tests/opt/local/etc/macports/sources.conf: sources.conf
     
    2727        $(bindir)/portindex
    2828
    29 clean:
     29clean::
    3030        rm -rf /tmp/macports-tests/
    3131        rm -f PortIndex PortIndex.quick
     
    4141# Use TESTS to choose which tests to run
    4242# For example: make test TESTS="checkums-1 universal"
    43 test: clean /tmp/macports-tests/ports/PortIndex /tmp/macports-tests/opt/local/etc/macports/sources.conf
     43test:: clean /tmp/macports-tests/ports/PortIndex /tmp/macports-tests/opt/local/etc/macports/sources.conf
    4444        @for testname in $(TESTS); do\
    4545            subdir=test/$$testname; \
     
    7171        $(MAKE) TESTS="$(@:test-%=%)" test
    7272
    73 install:
     73install::
    7474
    75 distclean: clean
     75distclean:: clean
Note: See TracChangeset for help on using the changeset viewer.