build/unix/test/Makefile.in

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 # -*- makefile -*-
     2 #
     3 # This Source Code Form is subject to the terms of the Mozilla Public
     4 # License, v. 2.0. If a copy of the MPL was not distributed with this
     5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
     7 include $(topsrcdir)/config/rules.mk
     9 ##################################################
    10 ## Gather a list of tests, generate timestamp deps
    11 ##################################################
    12 TS=.ts
    13 ifneq (,$(findstring check,$(MAKECMDGOALS)))
    14           allsrc = $(wildcard $(srcdir)/*)
    15        tests2run = $(notdir $(filter %.tpl,$(allsrc)))
    16   check_targets += $(addprefix $(TS)/,$(tests2run))
    17 endif
    19 check:: $(TS) $(check_targets)
    21 #############################################
    22 # Only invoke tests when sources have changed
    23 #############################################
    24 $(TS)/%: $(srcdir)/%
    25 	$(PERL) $(srcdir)/runtest $<
    26 	@touch $@
    28 #####################################################
    29 ## Extra dep needed to synchronize parallel execution
    30 #####################################################
    31 $(TS): $(TS)/.done
    32 $(TS)/.done:
    33 	$(MKDIR) -p $(dir $@)
    34 	touch $@
    36 GARBAGE_DIRS += $(TS)
    38 # EOF

mercurial