build/unix/test/Makefile.in

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     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