~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Gary Poster
  • Date: 2009-05-01 00:25:52 UTC
  • mto: (8329.1.1 buildout2)
  • mto: This revision was merged to the branch mainline in revision 8489.
  • Revision ID: gary.poster@canonical.com-20090501002552-3hdbl9k771juuy1z
test works, nominally; and bin/py is a bit more functional.  problems with import warnings are more serious because they cause tests to fail.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        $(MAKE) -C sourcecode check PYTHON=${PYTHON} \
81
81
                PYTHON_VERSION=${PYTHON_VERSION} PYTHONPATH=$(PYTHONPATH)
82
82
 
83
 
# XXX ${PY} -t
84
83
check: build
85
84
        # Run all tests. test_on_merge.py takes care of setting up the
86
85
        # database..
87
86
        env PYTHONPATH=$(PYTHONPATH) \
88
 
        ${PY} ./test_on_merge.py $(VERBOSITY)
 
87
        ${PY} -t ./test_on_merge.py $(VERBOSITY)
89
88
 
90
89
lint:
91
90
        @bash ./utilities/lint.sh
93
92
lint-verbose:
94
93
        @bash ./utilities/lint.sh -v
95
94
 
96
 
# XXX ${PY} -t
97
95
xxxreport:
98
 
        ${PY} ./utilities/xxxreport.py -f csv -o xxx-report.csv ./
 
96
        ${PY} -t ./utilities/xxxreport.py -f csv -o xxx-report.csv ./
99
97
 
100
98
check-configs:
101
99
        ${PY} utilities/check-configs.py
102
100
 
103
101
pagetests: build
104
 
        env PYTHONPATH=$(PYTHONPATH) ${PY} test.py test_pages
 
102
        env PYTHONPATH=$(PYTHONPATH) bin/test test_pages
105
103
 
106
104
inplace: build
107
105
 
117
115
                -n launchpad -s lib/canonical/launchpad/javascript \
118
116
                -b lib/canonical/launchpad/icing/build $(EXTRA_JS_FILES)
119
117
 
120
 
runners:
121
 
        echo "#!/bin/sh" > bin/runzope;
122
 
        echo "exec $(PY) $(STARTSCRIPT) -C $(CONFFILE)" >> bin/runzope;
123
 
        chmod +x bin/runzope
124
 
        echo "#!/bin/sh" > bin/zopectl;
125
 
        echo "$(PY) $(PWD)/src/zdaemon/zdctl.py \
126
 
              -S schema.xml \
127
 
              -C zdaemon.conf -d \$$*" >> bin/zopectl
128
 
        chmod +x bin/zopectl
129
 
 
130
118
test_build: build
131
 
        $(PY) test.py $(TESTFLAGS) $(TESTOPTS)
 
119
        bin/test $(TESTFLAGS) $(TESTOPTS)
132
120
 
133
121
test_inplace: inplace
134
 
        $(PY) test.py $(TESTFLAGS) $(TESTOPTS)
 
122
        bin/test $(TESTFLAGS) $(TESTOPTS)
135
123
 
136
124
ftest_build: build
137
 
        env PYTHONPATH=$(PYTHONPATH) \
138
 
            $(PY) test.py -f $(TESTFLAGS) $(TESTOPTS)
 
125
        bin/test -f $(TESTFLAGS) $(TESTOPTS)
139
126
 
140
127
ftest_inplace: inplace
141
 
        env PYTHONPATH=$(PYTHONPATH) \
142
 
            $(PY) test.py -f $(TESTFLAGS) $(TESTOPTS)
 
128
        bin/test -f $(TESTFLAGS) $(TESTOPTS)
143
129
 
144
 
# XXX $(PY) -t
145
130
run: inplace stop
146
131
        $(RM) thread*.request
147
132
        bin/run -r librarian,google-webservice -C $(CONFFILE)
148
133
 
149
 
# XXX $(PY) -t
150
134
start-gdb: inplace stop support_files
151
135
        $(RM) thread*.request
152
136
        nohup gdb -x run.gdb --args bin/run \
153
137
                -r librarian,google-webservice -C $(CONFFILE) \
154
138
                > ${LPCONFIG}-nohup.out 2>&1 &
155
139
 
156
 
# XXX $(PY) -t
157
140
run_all: inplace stop hosted_branches
158
141
        $(RM) thread*.request
159
142
        bin/run -r librarian,buildsequencer,sftp,mailman,codebrowse,google-webservice \
226
209
        @echo Rebuilding FTI indexes on launchpad_dev database
227
210
        $(PY) database/schema/fti.py -d launchpad_dev --force
228
211
 
229
 
debug:
230
 
        $(APPSERVER_ENV) \
231
 
                 $(PY) -i -c \ "from zope.app import Application;\
232
 
                    app = Application('Data.fs', 'site.zcml')()"
233
 
 
234
212
clean:
235
213
        $(MAKE) -C sourcecode/pygettextpo clean
236
214
        find . -type f \( \
255
233
        mkdir -p $(CODEHOSTING_ROOT)/config
256
234
        touch $(CODEHOSTING_ROOT)/config/launchpad-lookup.txt
257
235
 
258
 
# XXX buildout script
259
236
zcmldocs:
260
237
        mkdir -p doc/zcml/namespaces.zope.org
261
 
        PYTHONPATH=$(shell pwd)/src:$(PYTHONPATH) $(PY) \
262
 
            ./sourcecode/zope/src/zope/configuration/stxdocs.py \
 
238
        bin/stxdocs \
263
239
            -f sourcecode/zope/src/zope/app/zcmlfiles/meta.zcml \
264
240
            -o doc/zcml/namespaces.zope.org
265
241
 
266
242
potemplates: launchpad.pot
267
243
 
268
 
# XXX buildout script
269
244
# Generate launchpad.pot by extracting message ids from the source
270
245
launchpad.pot:
271
 
        $(PY) sourcecode/zope/utilities/i18nextract.py \
272
 
            -d launchpad -p lib/canonical/launchpad \
273
 
            -o locales
 
246
        bin/i18nextract.py
274
247
 
275
248
install: reload-apache
276
249