Fossil SCM

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.

aku 2007-08-26 06:45 trunk
Commit 464a46dad2f5bb31500acabd33384aaea3dc3250
+4
--- Makefile
+++ Makefile
@@ -33,9 +33,13 @@
3333
# other dependencies. We sometimes add the -static option here
3434
# so that we can build a static executable that will run in a
3535
# chroot jail.
3636
#
3737
LIB = -lz
38
+
39
+#### Tcl shell for use in running the fossil testsuite.
40
+#
41
+TCLSH = tclsh
3842
3943
# You should not need to change anything below this line
4044
###############################################################################
4145
include $(SRCDIR)/main.mk
4246
--- Makefile
+++ Makefile
@@ -33,9 +33,13 @@
33 # other dependencies. We sometimes add the -static option here
34 # so that we can build a static executable that will run in a
35 # chroot jail.
36 #
37 LIB = -lz
 
 
 
 
38
39 # You should not need to change anything below this line
40 ###############################################################################
41 include $(SRCDIR)/main.mk
42
--- Makefile
+++ Makefile
@@ -33,9 +33,13 @@
33 # other dependencies. We sometimes add the -static option here
34 # so that we can build a static executable that will run in a
35 # chroot jail.
36 #
37 LIB = -lz
38
39 #### Tcl shell for use in running the fossil testsuite.
40 #
41 TCLSH = tclsh
42
43 # You should not need to change anything below this line
44 ###############################################################################
45 include $(SRCDIR)/main.mk
46
--- src/main.mk
+++ src/main.mk
@@ -159,10 +159,16 @@
159159
makeheaders: $(SRCDIR)/makeheaders.c
160160
$(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
161161
162162
mkindex: $(SRCDIR)/mkindex.c
163163
$(BCC) -o mkindex $(SRCDIR)/mkindex.c
164
+
165
+# WARNING. DANGER. Running the testsuite modifies the repository the
166
+# build is done from, i.e. the checkout belongs to. Do not sync/push
167
+# the repository after running the tests.
168
+test: $(APPNAME)
169
+ $(TCLSH) test/tester.tcl $(APPNAME)
164170
165171
VERSION.h: $(SRCDIR)/../manifest.uuid
166172
awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' $(SRCDIR)/../manifest.uuid >VERSION.h
167173
168174
$(APPNAME): headers $(OBJ) sqlite3.o
169175
--- src/main.mk
+++ src/main.mk
@@ -159,10 +159,16 @@
159 makeheaders: $(SRCDIR)/makeheaders.c
160 $(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
161
162 mkindex: $(SRCDIR)/mkindex.c
163 $(BCC) -o mkindex $(SRCDIR)/mkindex.c
 
 
 
 
 
 
164
165 VERSION.h: $(SRCDIR)/../manifest.uuid
166 awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' $(SRCDIR)/../manifest.uuid >VERSION.h
167
168 $(APPNAME): headers $(OBJ) sqlite3.o
169
--- src/main.mk
+++ src/main.mk
@@ -159,10 +159,16 @@
159 makeheaders: $(SRCDIR)/makeheaders.c
160 $(BCC) -o makeheaders $(SRCDIR)/makeheaders.c
161
162 mkindex: $(SRCDIR)/mkindex.c
163 $(BCC) -o mkindex $(SRCDIR)/mkindex.c
164
165 # WARNING. DANGER. Running the testsuite modifies the repository the
166 # build is done from, i.e. the checkout belongs to. Do not sync/push
167 # the repository after running the tests.
168 test: $(APPNAME)
169 $(TCLSH) test/tester.tcl $(APPNAME)
170
171 VERSION.h: $(SRCDIR)/../manifest.uuid
172 awk '{ printf "#define MANIFEST_UUID \"%s\"\n", $$1}' $(SRCDIR)/../manifest.uuid >VERSION.h
173
174 $(APPNAME): headers $(OBJ) sqlite3.o
175
+14 -2
--- todo-ak.txt
+++ todo-ak.txt
@@ -1,11 +1,12 @@
11
[Andreas Kupries]
22
33
Things to work on:
44
5
-* Add a 'test' target to the makefile for easy invokation of the
6
- fossil testsuite.
5
+* Rework the code underlying the test target to clone the repository
6
+ and workspace before running tests, to avoid modifying the
7
+ development repository by accident.
78
89
* Think about exposure of functionality as libraries, i.e. Tcl
910
packages. Foundations like delta, etc. first, work up to
1011
higher-levels.
1112
@@ -13,10 +14,21 @@
1314
1415
* Document the merge algorithm.
1516
1617
* Document the xfer protocol.
1718
19
+Questions
20
+
21
+* In the timeline seen at http://fossil-scm.hwaci.com/fossil/timeline
22
+ the manifest uuids are links to pages providing additional
23
+ information abut the change, differences, parent/child linkage, etc.
24
+
25
+ The timeline accessible generated by 'fossil server' and accessible
26
+ at http://localhost:8080/timeline however does not have such links.
27
+
28
+ One wonders why ?
29
+
1830
General ideas:
1931
2032
* Use TLS/SSL in the xfer module to enhance privacy of
2133
communications. Integrity too, however that is also handled in the
2234
fossil protocol itself.
2335
--- todo-ak.txt
+++ todo-ak.txt
@@ -1,11 +1,12 @@
1 [Andreas Kupries]
2
3 Things to work on:
4
5 * Add a 'test' target to the makefile for easy invokation of the
6 fossil testsuite.
 
7
8 * Think about exposure of functionality as libraries, i.e. Tcl
9 packages. Foundations like delta, etc. first, work up to
10 higher-levels.
11
@@ -13,10 +14,21 @@
13
14 * Document the merge algorithm.
15
16 * Document the xfer protocol.
17
 
 
 
 
 
 
 
 
 
 
 
18 General ideas:
19
20 * Use TLS/SSL in the xfer module to enhance privacy of
21 communications. Integrity too, however that is also handled in the
22 fossil protocol itself.
23
--- todo-ak.txt
+++ todo-ak.txt
@@ -1,11 +1,12 @@
1 [Andreas Kupries]
2
3 Things to work on:
4
5 * Rework the code underlying the test target to clone the repository
6 and workspace before running tests, to avoid modifying the
7 development repository by accident.
8
9 * Think about exposure of functionality as libraries, i.e. Tcl
10 packages. Foundations like delta, etc. first, work up to
11 higher-levels.
12
@@ -13,10 +14,21 @@
14
15 * Document the merge algorithm.
16
17 * Document the xfer protocol.
18
19 Questions
20
21 * In the timeline seen at http://fossil-scm.hwaci.com/fossil/timeline
22 the manifest uuids are links to pages providing additional
23 information abut the change, differences, parent/child linkage, etc.
24
25 The timeline accessible generated by 'fossil server' and accessible
26 at http://localhost:8080/timeline however does not have such links.
27
28 One wonders why ?
29
30 General ideas:
31
32 * Use TLS/SSL in the xfer module to enhance privacy of
33 communications. Integrity too, however that is also handled in the
34 fossil protocol itself.
35

Keyboard Shortcuts

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