File: Makefile

package info (click to toggle)
dgit 3.11~deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,860 kB
  • ctags: 522
  • sloc: perl: 7,502; sh: 2,793; makefile: 113
file content (14 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# usage: tests/using-intree make -f tests/Makefile
# (optionally setting TESTSCRIPTS='tests/tests/foo tests/tests/bar')

TESTSCRIPTS ?= $(shell tests/enumerate-tests)
TESTNAMES := $(notdir $(TESTSCRIPTS))

all: $(foreach t,$(TESTNAMES),tests/tmp/$t.ok)
	@echo "ALL PASSED"

tests/tmp:
	mkdir -p $@

tests/tmp/%.ok: tests/tmp
	tests/tests/$* >tests/tmp/$*.log 2>&1