~ubuntu-branches/ubuntu/oneiric/enigmail/oneiric-updates

« back to all changes in this revision

Viewing changes to build/pymake/tests/functions.mk

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2010-04-10 01:42:24 UTC
  • Revision ID: james.westby@ubuntu.com-20100410014224-fbq9ui5x3b0h2t36
Tags: 2:1.0.1-0ubuntu1
* First releaase of enigmail 1.0.1 for tbird/icedove 3
  (LP: #527138)
* redo packaging from scratch 
  + add debian/make-orig target that uses xulrunner provided
    buildsystem + enigmail tarball to produce a proper orig.tar.gz
  + use debhelper 7 with mozilla-devscripts
  + use debian source format 3.0 (quilt)
  + patch enigmail to use frozen API only
    - add debian/patches/frozen_api.diff
  + patch build system to not link against -lxul - which isnt
    available for sdks produced by all-static apps like tbird
    - add debian/patches/build_system_dont_link_libxul.diff
  + add minimal build-depends to control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
all:
 
2
        test "$(subst e,EE,hello)" = "hEEllo"
 
3
        test "$(strip $(NULL)  test data  )" = "test data"
 
4
        test "$(findstring hell,hello)" = "hell"
 
5
        test "$(findstring heaven,hello)" = ""
 
6
        test "$(filter foo/%.c b%,foo/a.c b.c foo/a.o)" = "foo/a.c b.c"
 
7
        test "$(filter foo,foo bar)" = "foo"
 
8
        test "$(filter-out foo/%.c b%,foo/a.c b.c foo/a.o)" = "foo/a.o"
 
9
        test "$(filter-out %.c,foo,bar.c foo,bar.o)" = "foo,bar.o"
 
10
        test "$(sort .go a b aa A c cc)" = ".go A a aa b c cc"
 
11
        test "$(word 1, hello )" = "hello"
 
12
        test "$(word 2, hello )" = ""
 
13
        test "$(wordlist 1, 2, foo bar baz )" = "foo bar"
 
14
        test "$(words 1 2 3)" = "3"
 
15
        test "$(words )" = "0"
 
16
        test "$(firstword $(NULL) foo bar baz)" = "foo"
 
17
        test "$(firstword )" = ""
 
18
        test "$(dir foo.c path/foo.o dir/dir2/)" = "./ path/ dir/dir2/"
 
19
        test "$(notdir foo.c path/foo.o dir/dir2/)" = "foo.c foo.o "
 
20
        test "$(suffix src/foo.c dir/my.dir/foo foo.o)" = ".c .o"
 
21
        test "$(basename src/foo.c dir/my.dir/foo foo.c .c)" = "src/foo dir/my.dir/foo foo "
 
22
        test "$(addprefix src/,foo bar.c dir/foo)" = "src/foo src/bar.c src/dir/foo"
 
23
        test "$(addsuffix .c,foo dir/bar)" = "foo.c dir/bar.c"
 
24
        test "$(join a b c, 1 2 3)" = "a1 b2 c3"
 
25
        test "$(join a b, 1 2 3)" = "a1 b2 3"
 
26
        test "$(join a b c, 1 2)" = "a1 b2 c"
 
27
        test "$(if $(NULL) ,yes)" = ""
 
28
        test "$(if 1,yes,no)" = "yes"
 
29
        test "$(if ,yes,no )" = "no "
 
30
        test "$(if ,$(error Short-circuit problem))" = ""
 
31
        test "$(or $(NULL),1)" = "1"
 
32
        test "$(or $(NULL),2,$(warning TEST-FAIL bad or short-circuit))" = "2"
 
33
        test "$(and ,$(warning TEST-FAIL bad and short-circuit))" = ""
 
34
        test "$(and 1,2)" = "2"
 
35
        test "$(foreach i,foo bar,found:$(i))" = "found:foo found:bar"
 
36
        @echo TEST-PASS