~canonical-dx-team/unity/unity.fix-701546

« back to all changes in this revision

Viewing changes to tests/Makefile.am

  • Committer: Neil Jagdish Patel
  • Date: 2009-10-15 10:40:35 UTC
  • Revision ID: neil.patel@canonical.com-20091015104035-ijthyaoq3rwqu8r7
[build] Initial commit

added:
  .bzrignore
  AUTHORS
  COPYING
  ChangeLog
  Makefile.am
  NEWS
  README
  autogen.sh
  configure.ac
  src/
  src/Makefile.am
  src/main.vala
  src/quicklauncher/
  src/quicklauncher/Makefile.am
  src/quicklauncher/quicklauncher.vala
  src/unity.vala
  tests/
  tests/Makefile.am
  tests/test-unity.vala

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
bin_PROGRAMS = test-unity
 
2
 
 
3
test_unity_CPPFLAGS = \
 
4
  -I$(top_builddir)/src \
 
5
  $(BASE_CFLAGS) \
 
6
  $(MAINTAINER_CFLAGS)
 
7
 
 
8
test_unity_LDADD = \
 
9
  $(top_builddir)/src/libunity-static.la \
 
10
  $(BASE_LIBS) \
 
11
  $(MAINTAINER_LIBS)
 
12
 
 
13
test_unity_VALAFLAGS = \
 
14
  --vapidir=$(top_builddir)/src \
 
15
  --pkg gtk+-2.0 \
 
16
  --pkg gee-1.0 \
 
17
  --pkg unity-static \
 
18
  $(MAINTAINER_VALAFLAGS)
 
19
 
 
20
test_unity_SOURCES = \
 
21
  test-unity.vala
 
22
 
 
23
# GTester stuff
 
24
XML_REPORT = unity-check-results.xml
 
25
HTML_REPORT = unity-check-results.html
 
26
 
 
27
unity-tester: test-unity
 
28
        @gtester -o=$(XML_REPORT) ./test-unity
 
29
 
 
30
check-report:
 
31
        @gtester -o=$(XML_REPORT) -k ./test-unity \
 
32
        && (gtester-report $(XML_REPORT) \
 
33
                        | sed 's/GTester Unit Test Report</>GTester Unit Test Report (normal)</' \
 
34
                        > $(HTML_REPORT)) \
 
35
        && gnome-open $(HTML_REPORT)
 
36
 
 
37
check-local: unity-tester
 
38
 
 
39
CLEANFILES = *.stamp $(XML_REPORT) $(HTML_REPORT)