~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Martin Pool
  • Date: 2008-04-09 03:48:48 UTC
  • mto: (3360.2.3 prepare-1.4)
  • mto: This revision was merged to the branch mainline in revision 3385.
  • Revision ID: mbp@sourcefrog.net-20080409034848-sm47wz1fg12h57db
Add check-dist-tarball to run tests from the packaged source

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
        $(PYTHON) tools/win32/ostools.py remove bzr-*win32.exe
200
200
        $(PYTHON) tools/win32/ostools.py remove dist
201
201
 
202
 
.PHONY: dist dist-upload-escudero
 
202
.PHONY: dist dist-upload-escudero check-dist-tarball
203
203
 
204
204
# build a distribution tarball.
205
205
#
206
206
# this method of copying the pyrex generated files is a bit ugly; it would be
207
207
# nicer to generate it from distutils.
 
208
#
 
209
# these are a bit ubuntu-specific.
208
210
dist: 
209
211
        version=`./bzr version --short` && \
210
212
        echo Building distribution of bzr $$version && \
219
221
        gpg --detach-sign $$tarball && \
220
222
        echo $$tarball done.
221
223
 
 
224
# run all tests in a previously built tarball
 
225
check-dist-tarball:
 
226
        tmpdir=`mktemp -d` && \
 
227
        version=`./bzr version --short` && \
 
228
        tarball=$$PWD/../bzr-$$version.tar.gz && \
 
229
        tar Cxz $$tmpdir -f $$tarball && \
 
230
        $(MAKE) -C $$tmpdir/bzr-$$version check 
 
231
 
 
232
 
222
233
# upload previously built tarball to the download directory on bazaar-vcs.org,
223
234
# and verify that it can be downloaded ok.
224
235
dist-upload-escudero: