Fossil SCM

Fix the makefile so that "make test" works from a sibling build directory.

drh 2011-10-20 01:04 UTC maketest_fixes
Commit 16d7e4a5c06678cc6b080df61b2bb7976bf23166
2 files changed +1 -1 +1 -1
+1 -1
--- src/main.mk
+++ src/main.mk
@@ -288,11 +288,11 @@
288288
289289
# WARNING. DANGER. Running the testsuite modifies the repository the
290290
# build is done from, i.e. the checkout belongs to. Do not sync/push
291291
# the repository after running the tests.
292292
test: $(APPNAME)
293
- $(TCLSH) test/tester.tcl $(APPNAME)
293
+ $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
294294
295295
$(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION $(OBJDIR)/mkversion
296296
$(OBJDIR)/mkversion $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
297297
298298
# The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set
299299
--- src/main.mk
+++ src/main.mk
@@ -288,11 +288,11 @@
288
289 # WARNING. DANGER. Running the testsuite modifies the repository the
290 # build is done from, i.e. the checkout belongs to. Do not sync/push
291 # the repository after running the tests.
292 test: $(APPNAME)
293 $(TCLSH) test/tester.tcl $(APPNAME)
294
295 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION $(OBJDIR)/mkversion
296 $(OBJDIR)/mkversion $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
297
298 # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set
299
--- src/main.mk
+++ src/main.mk
@@ -288,11 +288,11 @@
288
289 # WARNING. DANGER. Running the testsuite modifies the repository the
290 # build is done from, i.e. the checkout belongs to. Do not sync/push
291 # the repository after running the tests.
292 test: $(APPNAME)
293 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
294
295 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION $(OBJDIR)/mkversion
296 $(OBJDIR)/mkversion $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
297
298 # The USE_SYSTEM_SQLITE variable may be undefined, set to 0, or set
299
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -183,11 +183,11 @@
183183
184184
# WARNING. DANGER. Running the testsuite modifies the repository the
185185
# build is done from, i.e. the checkout belongs to. Do not sync/push
186186
# the repository after running the tests.
187187
test: $(APPNAME)
188
- $(TCLSH) test/tester.tcl $(APPNAME)
188
+ $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
189189
190190
$(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION $(OBJDIR)/mkversion
191191
$(OBJDIR)/mkversion $(SRCDIR)/../manifest.uuid \
192192
$(SRCDIR)/../manifest \
193193
$(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
194194
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -183,11 +183,11 @@
183
184 # WARNING. DANGER. Running the testsuite modifies the repository the
185 # build is done from, i.e. the checkout belongs to. Do not sync/push
186 # the repository after running the tests.
187 test: $(APPNAME)
188 $(TCLSH) test/tester.tcl $(APPNAME)
189
190 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION $(OBJDIR)/mkversion
191 $(OBJDIR)/mkversion $(SRCDIR)/../manifest.uuid \
192 $(SRCDIR)/../manifest \
193 $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
194
--- src/makemake.tcl
+++ src/makemake.tcl
@@ -183,11 +183,11 @@
183
184 # WARNING. DANGER. Running the testsuite modifies the repository the
185 # build is done from, i.e. the checkout belongs to. Do not sync/push
186 # the repository after running the tests.
187 test: $(APPNAME)
188 $(TCLSH) $(SRCDIR)/../test/tester.tcl $(APPNAME)
189
190 $(OBJDIR)/VERSION.h: $(SRCDIR)/../manifest.uuid $(SRCDIR)/../manifest $(SRCDIR)/../VERSION $(OBJDIR)/mkversion
191 $(OBJDIR)/mkversion $(SRCDIR)/../manifest.uuid \
192 $(SRCDIR)/../manifest \
193 $(SRCDIR)/../VERSION >$(OBJDIR)/VERSION.h
194

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button