Check-in [464a46dad2]
Not logged in
Overview

SHA1 Hash:464a46dad2f5bb31500acabd33384aaea3dc3250
Date: 2007-08-26 06:45:02
User: aku
Comment:Added a make target to invoke the testsuite, and a make variable for tclsh. Danger. Testsuite modifies the repository the checkout belongs to, and not a copy. Use with caution, clone your development repository and workspace before use. Updated my work list.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified Makefile from [e5d56bbe15] to [80acf0670d].

@@ -33,9 +33,13 @@
 #    other dependencies.  We sometimes add the -static option here
 #    so that we can build a static executable that will run in a
 #    chroot jail.
 #
 LIB = -lz
+
+#### Tcl shell for use in running the fossil testsuite.
+#
+TCLSH = tclsh
 
 # You should not need to change anything below this line
 ###############################################################################
 include $(SRCDIR)/main.mk

Modified src/main.mk from [7b8ae816c0] to [11239c7604].

@@ -159,10 +159,16 @@
 makeheaders:	$(SRCDIR)/makeheaders.c
 	$(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
 
 mkindex:	$(SRCDIR)/mkindex.c
 	$(BCC) -o mkindex $(SRCDIR)/mkindex.c
+
+# WARNING. DANGER. Running the testsuite modifies the repository the
+# build is done from, i.e. the checkout belongs to. Do not sync/push
+# the repository after running the tests.
+test:	$(APPNAME)
+	$(TCLSH) test/tester.tcl $(APPNAME)
 
 VERSION.h:	$(SRCDIR)/../manifest.uuid
 	awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}'  $(SRCDIR)/../manifest.uuid >VERSION.h
 
 $(APPNAME):	headers $(OBJ) sqlite3.o

Modified todo-ak.txt from [660969788a] to [59d636749e].

@@ -1,11 +1,12 @@
 [Andreas Kupries]
 
 Things to work on:
 
-* Add a 'test' target to the makefile for easy invokation of the
-  fossil testsuite.
+* Rework the code underlying the test target to clone the repository
+  and workspace before running tests, to avoid modifying the
+  development repository by accident.
 
 * Think about exposure of functionality as libraries, i.e. Tcl
   packages. Foundations like delta, etc. first, work up to
   higher-levels.
 
@@ -12,10 +13,21 @@
 * Document delta format, delta encoder.
 
 * Document the merge algorithm.
 
 * Document the xfer protocol.
+
+Questions
+
+* In the timeline seen at http://fossil-scm.hwaci.com/fossil/timeline
+  the manifest uuids are links to pages providing additional
+  information abut the change, differences, parent/child linkage, etc.
+
+  The timeline accessible generated by 'fossil server' and accessible
+  at http://localhost:8080/timeline however does not have such links.
+
+  One wonders why ?
 
 General ideas:
 
 * Use TLS/SSL in the xfer module to enhance privacy of
   communications. Integrity too, however that is also handled in the