Fossil SCM
Add missing copyright headers to 26 .test files
Commit
c7137e0f928ffdec4ec265350146b379be027383a05dd71964d8c10867722896
Parent
9ffbfea17b83e76…
26 files changed
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
+12
~
test/blob.test
~
test/cgi.test
~
test/config.test
~
test/content.test
~
test/crosslink.test
~
test/fuzz.test
~
test/git-export.test
~
test/http.test
~
test/import.test
~
test/integrity.test
~
test/login.test
~
test/manifest.test
~
test/merge_renames.test
~
test/merge_renames_2.test
~
test/name.test
~
test/powerloss.test
~
test/purge.test
~
test/rebuild.test
~
test/regress.test
~
test/scenario.test
~
test/ssh.test
~
test/sync.test
~
test/th1main.test
~
test/url.test
~
test/xfer-client.test
~
test/xfer-server.test
+12
| --- test/blob.test | ||
| +++ test/blob.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # The buffer type that all of Fossil's text handling is built on: |
| 3 | 15 | # src/blob.c. The test commands that run its routines directly |
| 4 | 16 | # (test-isspace, test-atoi, test-strip-comment-lines, test-compress, |
| 5 | 17 | # test-compress-2, test-uncompress, test-cycle-compress, test-escaped-arg), |
| 6 | 18 | # reading and writing files, and the routines that are reached only |
| 7 | 19 |
| --- test/blob.test | |
| +++ test/blob.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # The buffer type that all of Fossil's text handling is built on: |
| 3 | # src/blob.c. The test commands that run its routines directly |
| 4 | # (test-isspace, test-atoi, test-strip-comment-lines, test-compress, |
| 5 | # test-compress-2, test-uncompress, test-cycle-compress, test-escaped-arg), |
| 6 | # reading and writing files, and the routines that are reached only |
| 7 |
| --- test/blob.test | |
| +++ test/blob.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # The buffer type that all of Fossil's text handling is built on: |
| 15 | # src/blob.c. The test commands that run its routines directly |
| 16 | # (test-isspace, test-atoi, test-strip-comment-lines, test-compress, |
| 17 | # test-compress-2, test-uncompress, test-cycle-compress, test-escaped-arg), |
| 18 | # reading and writing files, and the routines that are reached only |
| 19 |
+12
| --- test/cgi.test | ||
| +++ test/cgi.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # How a server reads a request: src/cgi.c. Requests are written to a |
| 3 | 15 | # file and given to "fossil http --in", which handles one request as a |
| 4 | 16 | # server does and writes the reply to a file. The page /test-env shows |
| 5 | 17 | # the parameters the server read from the request. |
| 6 | 18 | # |
| 7 | 19 |
| --- test/cgi.test | |
| +++ test/cgi.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # How a server reads a request: src/cgi.c. Requests are written to a |
| 3 | # file and given to "fossil http --in", which handles one request as a |
| 4 | # server does and writes the reply to a file. The page /test-env shows |
| 5 | # the parameters the server read from the request. |
| 6 | # |
| 7 |
| --- test/cgi.test | |
| +++ test/cgi.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # How a server reads a request: src/cgi.c. Requests are written to a |
| 15 | # file and given to "fossil http --in", which handles one request as a |
| 16 | # server does and writes the reply to a file. The page /test-env shows |
| 17 | # the parameters the server read from the request. |
| 18 | # |
| 19 |
+12
| --- test/config.test | ||
| +++ test/config.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Tests of "fossil configuration": the methods export, import, merge and |
| 3 | 15 | # reset on every configuration area, the files they write and read, the |
| 4 | 16 | # files they refuse, and the configuration that push, pull and sync carry |
| 5 | 17 | # between repositories, with and without the capabilities the other side |
| 6 | 18 | # asks for. After each command the configuration of the area must be what |
| 7 | 19 |
| --- test/config.test | |
| +++ test/config.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Tests of "fossil configuration": the methods export, import, merge and |
| 3 | # reset on every configuration area, the files they write and read, the |
| 4 | # files they refuse, and the configuration that push, pull and sync carry |
| 5 | # between repositories, with and without the capabilities the other side |
| 6 | # asks for. After each command the configuration of the area must be what |
| 7 |
| --- test/config.test | |
| +++ test/config.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Tests of "fossil configuration": the methods export, import, merge and |
| 15 | # reset on every configuration area, the files they write and read, the |
| 16 | # files they refuse, and the configuration that push, pull and sync carry |
| 17 | # between repositories, with and without the capabilities the other side |
| 18 | # asks for. After each command the configuration of the area must be what |
| 19 |
+12
| --- test/content.test | ||
| +++ test/content.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # The content store: src/content.c. Reading an artifact through a long |
| 3 | 15 | # chain of deltas, turning stored content into a delta and back, content |
| 4 | 16 | # that arrives after it was asked for, and the commands that look for |
| 5 | 17 | # damage: test-integrity, test-missing, test-orphans. |
| 6 | 18 | # |
| 7 | 19 |
| --- test/content.test | |
| +++ test/content.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # The content store: src/content.c. Reading an artifact through a long |
| 3 | # chain of deltas, turning stored content into a delta and back, content |
| 4 | # that arrives after it was asked for, and the commands that look for |
| 5 | # damage: test-integrity, test-missing, test-orphans. |
| 6 | # |
| 7 |
| --- test/content.test | |
| +++ test/content.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # The content store: src/content.c. Reading an artifact through a long |
| 15 | # chain of deltas, turning stored content into a delta and back, content |
| 16 | # that arrives after it was asked for, and the commands that look for |
| 17 | # damage: test-integrity, test-missing, test-orphans. |
| 18 | # |
| 19 |
+12
| --- test/crosslink.test | ||
| +++ test/crosslink.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # What the repository database shows after an artifact of each kind has |
| 3 | 15 | # been stored and crosslinked: manifest_crosslink() and the routines |
| 4 | 16 | # around it in src/manifest.c. |
| 5 | 17 | # |
| 6 | 18 | # Each artifact is written out here card by card, given its Z card, and |
| 7 | 19 |
| --- test/crosslink.test | |
| +++ test/crosslink.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # What the repository database shows after an artifact of each kind has |
| 3 | # been stored and crosslinked: manifest_crosslink() and the routines |
| 4 | # around it in src/manifest.c. |
| 5 | # |
| 6 | # Each artifact is written out here card by card, given its Z card, and |
| 7 |
| --- test/crosslink.test | |
| +++ test/crosslink.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # What the repository database shows after an artifact of each kind has |
| 15 | # been stored and crosslinked: manifest_crosslink() and the routines |
| 16 | # around it in src/manifest.c. |
| 17 | # |
| 18 | # Each artifact is written out here card by card, given its Z card, and |
| 19 |
+12
| --- test/fuzz.test | ||
| +++ test/fuzz.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Run every input in corpus/corpus.pack, and the sample wiki and markdown pages |
| 3 | 15 | # in this directory, through "fossil test-fuzz". The pack is unpacked |
| 4 | 16 | # into a directory for each fuzz type. See corpus.tcl. |
| 5 | 17 | # |
| 6 | 18 | # The scenario inputs are not inputs to "test-fuzz". They are read by |
| 7 | 19 |
| --- test/fuzz.test | |
| +++ test/fuzz.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Run every input in corpus/corpus.pack, and the sample wiki and markdown pages |
| 3 | # in this directory, through "fossil test-fuzz". The pack is unpacked |
| 4 | # into a directory for each fuzz type. See corpus.tcl. |
| 5 | # |
| 6 | # The scenario inputs are not inputs to "test-fuzz". They are read by |
| 7 |
| --- test/fuzz.test | |
| +++ test/fuzz.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Run every input in corpus/corpus.pack, and the sample wiki and markdown pages |
| 15 | # in this directory, through "fossil test-fuzz". The pack is unpacked |
| 16 | # into a directory for each fuzz type. See corpus.tcl. |
| 17 | # |
| 18 | # The scenario inputs are not inputs to "test-fuzz". They are read by |
| 19 |
+12
| --- test/git-export.test | ||
| +++ test/git-export.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Shearer | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # "fossil git export" of a check-in that holds a shunned file. The |
| 3 | 15 | # file is to be exported as an empty file. An earlier fossil left the |
| 4 | 16 | # check-in out of the export and exited with status 0. |
| 5 | 17 | # |
| 6 | 18 | |
| 7 | 19 |
| --- test/git-export.test | |
| +++ test/git-export.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # "fossil git export" of a check-in that holds a shunned file. The |
| 3 | # file is to be exported as an empty file. An earlier fossil left the |
| 4 | # check-in out of the export and exited with status 0. |
| 5 | # |
| 6 | |
| 7 |
| --- test/git-export.test | |
| +++ test/git-export.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Shearer |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # "fossil git export" of a check-in that holds a shunned file. The |
| 15 | # file is to be exported as an empty file. An earlier fossil left the |
| 16 | # check-in out of the export and exited with status 0. |
| 17 | # |
| 18 | |
| 19 |
+12
| --- test/http.test | ||
| +++ test/http.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Shearer | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Tests of fossil's HTTP and HTTPS client. A clone must work when the |
| 3 | 15 | # reply is framed in any way HTTP/1.1 allows. It must fail with a |
| 4 | 16 | # message, and leave no repository, when the reply is malformed or the |
| 5 | 17 | # connection is closed or reset. Other tests check the request line |
| 6 | 18 | # fossil sends and which certificates it trusts. |
| 7 | 19 |
| --- test/http.test | |
| +++ test/http.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Tests of fossil's HTTP and HTTPS client. A clone must work when the |
| 3 | # reply is framed in any way HTTP/1.1 allows. It must fail with a |
| 4 | # message, and leave no repository, when the reply is malformed or the |
| 5 | # connection is closed or reset. Other tests check the request line |
| 6 | # fossil sends and which certificates it trusts. |
| 7 |
| --- test/http.test | |
| +++ test/http.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Shearer |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Tests of fossil's HTTP and HTTPS client. A clone must work when the |
| 15 | # reply is framed in any way HTTP/1.1 allows. It must fail with a |
| 16 | # message, and leave no repository, when the reply is malformed or the |
| 17 | # connection is closed or reset. Other tests check the request line |
| 18 | # fossil sends and which certificates it trusts. |
| 19 |
+12
| --- test/import.test | ||
| +++ test/import.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # "fossil import --svn" and "fossil import --git". The dumps and the |
| 3 | 15 | # streams are written here, byte by byte: first dumps whose file contents |
| 4 | 16 | # are svndiff0 deltas (Text-delta: true), as "svnadmin dump --deltas" |
| 5 | 17 | # writes them, then git streams, then dumps of whole histories. Where |
| 6 | 18 | # Subversion or git is installed, a history that it wrote is imported too. |
| 7 | 19 |
| --- test/import.test | |
| +++ test/import.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # "fossil import --svn" and "fossil import --git". The dumps and the |
| 3 | # streams are written here, byte by byte: first dumps whose file contents |
| 4 | # are svndiff0 deltas (Text-delta: true), as "svnadmin dump --deltas" |
| 5 | # writes them, then git streams, then dumps of whole histories. Where |
| 6 | # Subversion or git is installed, a history that it wrote is imported too. |
| 7 |
| --- test/import.test | |
| +++ test/import.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # "fossil import --svn" and "fossil import --git". The dumps and the |
| 15 | # streams are written here, byte by byte: first dumps whose file contents |
| 16 | # are svndiff0 deltas (Text-delta: true), as "svnadmin dump --deltas" |
| 17 | # writes them, then git streams, then dumps of whole histories. Where |
| 18 | # Subversion or git is installed, a history that it wrote is imported too. |
| 19 |
+12
| --- test/integrity.test | ||
| +++ test/integrity.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Shearer | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Integrity of a repository. Two kinds of test: |
| 3 | 15 | # |
| 4 | 16 | # * A "fossil rebuild", and a "fossil deconstruct" and "fossil |
| 5 | 17 | # reconstruct" round trip, keep every artifact; "fossil |
| 6 | 18 | # test-integrity" reports an artifact whose content is damaged. |
| 7 | 19 |
| --- test/integrity.test | |
| +++ test/integrity.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Integrity of a repository. Two kinds of test: |
| 3 | # |
| 4 | # * A "fossil rebuild", and a "fossil deconstruct" and "fossil |
| 5 | # reconstruct" round trip, keep every artifact; "fossil |
| 6 | # test-integrity" reports an artifact whose content is damaged. |
| 7 |
| --- test/integrity.test | |
| +++ test/integrity.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Shearer |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Integrity of a repository. Two kinds of test: |
| 15 | # |
| 16 | # * A "fossil rebuild", and a "fossil deconstruct" and "fossil |
| 17 | # reconstruct" round trip, keep every artifact; "fossil |
| 18 | # test-integrity" reports an artifact whose content is damaged. |
| 19 |
+12
| --- test/login.test | ||
| +++ test/login.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Authentication: how the server in src/login.c reads a request and decides |
| 3 | 15 | # who the user is. Requests are written to a file and handed to "fossil http |
| 4 | 16 | # REPO --in", which serves one request and writes the reply to a file, the way |
| 5 | 17 | # test/cgi.test does. The /test-env page reports g.zLogin, g.isRobot and the |
| 6 | 18 | # capabilities the server granted. Several command-line test entry points in |
| 7 | 19 |
| --- test/login.test | |
| +++ test/login.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Authentication: how the server in src/login.c reads a request and decides |
| 3 | # who the user is. Requests are written to a file and handed to "fossil http |
| 4 | # REPO --in", which serves one request and writes the reply to a file, the way |
| 5 | # test/cgi.test does. The /test-env page reports g.zLogin, g.isRobot and the |
| 6 | # capabilities the server granted. Several command-line test entry points in |
| 7 |
| --- test/login.test | |
| +++ test/login.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Authentication: how the server in src/login.c reads a request and decides |
| 15 | # who the user is. Requests are written to a file and handed to "fossil http |
| 16 | # REPO --in", which serves one request and writes the reply to a file, the way |
| 17 | # test/cgi.test does. The /test-env page reports g.zLogin, g.isRobot and the |
| 18 | # capabilities the server granted. Several command-line test entry points in |
| 19 |
+12
| --- test/manifest.test | ||
| +++ test/manifest.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Reading check-ins and their files in src/manifest.c: two check-ins |
| 3 | 15 | # compared with "fossil diff --from --to", the /dir and /tree pages, |
| 4 | 16 | # delta manifests read through their baseline, a file named in another |
| 5 | 17 | # letter case, and artifact_to_json() for every kind of artifact. |
| 6 | 18 | # |
| 7 | 19 |
| --- test/manifest.test | |
| +++ test/manifest.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Reading check-ins and their files in src/manifest.c: two check-ins |
| 3 | # compared with "fossil diff --from --to", the /dir and /tree pages, |
| 4 | # delta manifests read through their baseline, a file named in another |
| 5 | # letter case, and artifact_to_json() for every kind of artifact. |
| 6 | # |
| 7 |
| --- test/manifest.test | |
| +++ test/manifest.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Reading check-ins and their files in src/manifest.c: two check-ins |
| 15 | # compared with "fossil diff --from --to", the /dir and /tree pages, |
| 16 | # delta manifests read through their baseline, a file named in another |
| 17 | # letter case, and artifact_to_json() for every kind of artifact. |
| 18 | # |
| 19 |
+12
| --- test/merge_renames.test | ||
| +++ test/merge_renames.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2011 viriketo | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Tests for merging with renames |
| 3 | 15 | # |
| 4 | 16 | # |
| 5 | 17 | |
| 6 | 18 | proc commit_id {version} { |
| 7 | 19 |
| --- test/merge_renames.test | |
| +++ test/merge_renames.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Tests for merging with renames |
| 3 | # |
| 4 | # |
| 5 | |
| 6 | proc commit_id {version} { |
| 7 |
| --- test/merge_renames.test | |
| +++ test/merge_renames.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2011 viriketo |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Tests for merging with renames |
| 15 | # |
| 16 | # |
| 17 | |
| 18 | proc commit_id {version} { |
| 19 |
| --- test/merge_renames_2.test | ||
| +++ test/merge_renames_2.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2021 D. Richard Hipp | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Tests for merging with renames |
| 3 | 15 | # |
| 4 | 16 | # |
| 5 | 17 | |
| 6 | 18 | require_no_open_checkout |
| 7 | 19 |
| --- test/merge_renames_2.test | |
| +++ test/merge_renames_2.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Tests for merging with renames |
| 3 | # |
| 4 | # |
| 5 | |
| 6 | require_no_open_checkout |
| 7 |
| --- test/merge_renames_2.test | |
| +++ test/merge_renames_2.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2021 D. Richard Hipp |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Tests for merging with renames |
| 15 | # |
| 16 | # |
| 17 | |
| 18 | require_no_open_checkout |
| 19 |
+12
| --- test/name.test | ||
| +++ test/name.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # How a name typed by a user or taken from a URL becomes an artifact: |
| 3 | 15 | # src/name.c. One small repository holds check-ins on two branches with |
| 4 | 16 | # a merge between them, tags, a wiki page, a ticket, a technote, a forum |
| 5 | 17 | # post, an attachment, a cluster, phantoms and pairs of artifacts whose |
| 6 | 18 | # hashes begin alike. Every kind of name is then given to |
| 7 | 19 |
| --- test/name.test | |
| +++ test/name.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # How a name typed by a user or taken from a URL becomes an artifact: |
| 3 | # src/name.c. One small repository holds check-ins on two branches with |
| 4 | # a merge between them, tags, a wiki page, a ticket, a technote, a forum |
| 5 | # post, an attachment, a cluster, phantoms and pairs of artifacts whose |
| 6 | # hashes begin alike. Every kind of name is then given to |
| 7 |
| --- test/name.test | |
| +++ test/name.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # How a name typed by a user or taken from a URL becomes an artifact: |
| 15 | # src/name.c. One small repository holds check-ins on two branches with |
| 16 | # a merge between them, tags, a wiki page, a ticket, a technote, a forum |
| 17 | # post, an attachment, a cluster, phantoms and pairs of artifacts whose |
| 18 | # hashes begin alike. Every kind of name is then given to |
| 19 |
+12
| --- test/powerloss.test | ||
| +++ test/powerloss.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Shearer | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Tests that a fossil command interrupted by a power loss or a killed |
| 3 | 15 | # process leaves repositories and check-outs that fossil can use, and |
| 4 | 16 | # does not lose the user's work. |
| 5 | 17 | # |
| 6 | 18 | # tools/powerloss/powerloss.c is a library that fossil loads with |
| 7 | 19 |
| --- test/powerloss.test | |
| +++ test/powerloss.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Tests that a fossil command interrupted by a power loss or a killed |
| 3 | # process leaves repositories and check-outs that fossil can use, and |
| 4 | # does not lose the user's work. |
| 5 | # |
| 6 | # tools/powerloss/powerloss.c is a library that fossil loads with |
| 7 |
| --- test/powerloss.test | |
| +++ test/powerloss.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Shearer |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Tests that a fossil command interrupted by a power loss or a killed |
| 15 | # process leaves repositories and check-outs that fossil can use, and |
| 16 | # does not lose the user's work. |
| 17 | # |
| 18 | # tools/powerloss/powerloss.c is a library that fossil loads with |
| 19 |
+12
| --- test/purge.test | ||
| +++ test/purge.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Commands that remove content from a repository: "fossil purge", with |
| 3 | 15 | # its graveyard, undo and obliterate, and "fossil scrub". After each the |
| 4 | 16 | # repository must still be sound, and an undo must give back exactly what |
| 5 | 17 | # was removed. |
| 6 | 18 | # |
| 7 | 19 |
| --- test/purge.test | |
| +++ test/purge.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Commands that remove content from a repository: "fossil purge", with |
| 3 | # its graveyard, undo and obliterate, and "fossil scrub". After each the |
| 4 | # repository must still be sound, and an undo must give back exactly what |
| 5 | # was removed. |
| 6 | # |
| 7 |
| --- test/purge.test | |
| +++ test/purge.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Commands that remove content from a repository: "fossil purge", with |
| 15 | # its graveyard, undo and obliterate, and "fossil scrub". After each the |
| 16 | # repository must still be sound, and an undo must give back exactly what |
| 17 | # was removed. |
| 18 | # |
| 19 |
+12
| --- test/rebuild.test | ||
| +++ test/rebuild.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # "fossil rebuild" with each of its options, "fossil repack", "fossil |
| 3 | 15 | # deconstruct" and "fossil reconstruct", "fossil detach", the prompt of |
| 4 | 16 | # "fossil scrub", and the cluster test commands. None of them may change |
| 5 | 17 | # what a repository holds: after each, the artifacts, the timeline and the |
| 6 | 18 | # links between check-ins and files are compared with what was there |
| 7 | 19 |
| --- test/rebuild.test | |
| +++ test/rebuild.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # "fossil rebuild" with each of its options, "fossil repack", "fossil |
| 3 | # deconstruct" and "fossil reconstruct", "fossil detach", the prompt of |
| 4 | # "fossil scrub", and the cluster test commands. None of them may change |
| 5 | # what a repository holds: after each, the artifacts, the timeline and the |
| 6 | # links between check-ins and files are compared with what was there |
| 7 |
| --- test/rebuild.test | |
| +++ test/rebuild.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # "fossil rebuild" with each of its options, "fossil repack", "fossil |
| 15 | # deconstruct" and "fossil reconstruct", "fossil detach", the prompt of |
| 16 | # "fossil scrub", and the cluster test commands. None of them may change |
| 17 | # what a repository holds: after each, the artifacts, the timeline and the |
| 18 | # links between check-ins and files are compared with what was there |
| 19 |
+12
| --- test/regress.test | ||
| +++ test/regress.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Tests of single faults that have no better home. |
| 3 | 15 | # |
| 4 | 16 | |
| 5 | 17 | require_no_open_checkout |
| 6 | 18 | |
| 7 | 19 |
| --- test/regress.test | |
| +++ test/regress.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Tests of single faults that have no better home. |
| 3 | # |
| 4 | |
| 5 | require_no_open_checkout |
| 6 | |
| 7 |
| --- test/regress.test | |
| +++ test/regress.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Tests of single faults that have no better home. |
| 15 | # |
| 16 | |
| 17 | require_no_open_checkout |
| 18 | |
| 19 |
+12
| --- test/scenario.test | ||
| +++ test/scenario.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Random integration tests of sync. Each scenario input in corpus/corpus.pack |
| 3 | 15 | # is a list of operations to perform on three clones of a new repository: |
| 4 | 16 | # commits, branches, merges, syncs and so on. A sync can be made to lose |
| 5 | 17 | # its request, lose its reply, or deliver half a reply. |
| 6 | 18 | # |
| 7 | 19 |
| --- test/scenario.test | |
| +++ test/scenario.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Random integration tests of sync. Each scenario input in corpus/corpus.pack |
| 3 | # is a list of operations to perform on three clones of a new repository: |
| 4 | # commits, branches, merges, syncs and so on. A sync can be made to lose |
| 5 | # its request, lose its reply, or deliver half a reply. |
| 6 | # |
| 7 |
| --- test/scenario.test | |
| +++ test/scenario.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Random integration tests of sync. Each scenario input in corpus/corpus.pack |
| 15 | # is a list of operations to perform on three clones of a new repository: |
| 16 | # commits, branches, merges, syncs and so on. A sync can be made to lose |
| 17 | # its request, lose its reply, or deliver half a reply. |
| 18 | # |
| 19 |
+12
| --- test/ssh.test | ||
| +++ test/ssh.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # What fossil puts on an ssh command line. Nothing here connects to |
| 3 | 15 | # another machine: "ssh" is a copy of standin/log-args.sh, which writes |
| 4 | 16 | # down its arguments and exits. A command that has the --ssh-command |
| 5 | 17 | # option is given the script with it. The other commands find the |
| 6 | 18 | # script first on the PATH. |
| 7 | 19 |
| --- test/ssh.test | |
| +++ test/ssh.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # What fossil puts on an ssh command line. Nothing here connects to |
| 3 | # another machine: "ssh" is a copy of standin/log-args.sh, which writes |
| 4 | # down its arguments and exits. A command that has the --ssh-command |
| 5 | # option is given the script with it. The other commands find the |
| 6 | # script first on the PATH. |
| 7 |
| --- test/ssh.test | |
| +++ test/ssh.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # What fossil puts on an ssh command line. Nothing here connects to |
| 15 | # another machine: "ssh" is a copy of standin/log-args.sh, which writes |
| 16 | # down its arguments and exits. A command that has the --ssh-command |
| 17 | # option is given the script with it. The other commands find the |
| 18 | # script first on the PATH. |
| 19 |
+12
| --- test/sync.test | ||
| +++ test/sync.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Shearer | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Tests of clone, push, pull and sync, over file: URLs and over HTTP to |
| 3 | 15 | # "fossil server". After each operation, the repositories must hold the |
| 4 | 16 | # same artifacts, except for private ones, and pass "fossil |
| 5 | 17 | # test-integrity". |
| 6 | 18 | # |
| 7 | 19 |
| --- test/sync.test | |
| +++ test/sync.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Tests of clone, push, pull and sync, over file: URLs and over HTTP to |
| 3 | # "fossil server". After each operation, the repositories must hold the |
| 4 | # same artifacts, except for private ones, and pass "fossil |
| 5 | # test-integrity". |
| 6 | # |
| 7 |
| --- test/sync.test | |
| +++ test/sync.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Shearer |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Tests of clone, push, pull and sync, over file: URLs and over HTTP to |
| 15 | # "fossil server". After each operation, the repositories must hold the |
| 16 | # same artifacts, except for private ones, and pass "fossil |
| 17 | # test-integrity". |
| 18 | # |
| 19 |
+12
| --- test/th1main.test | ||
| +++ test/th1main.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Fossil's own TH1 commands and the template renderer: src/th_main.c. |
| 3 | 15 | # Scripts are run with "fossil test-th-eval", templates with |
| 4 | 16 | # "fossil test-th-render" and "fossil test-th-source", and a ticket page |
| 5 | 17 | # that holds TH1 is asked for through "fossil http --in". |
| 6 | 18 | # |
| 7 | 19 |
| --- test/th1main.test | |
| +++ test/th1main.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Fossil's own TH1 commands and the template renderer: src/th_main.c. |
| 3 | # Scripts are run with "fossil test-th-eval", templates with |
| 4 | # "fossil test-th-render" and "fossil test-th-source", and a ticket page |
| 5 | # that holds TH1 is asked for through "fossil http --in". |
| 6 | # |
| 7 |
| --- test/th1main.test | |
| +++ test/th1main.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Fossil's own TH1 commands and the template renderer: src/th_main.c. |
| 15 | # Scripts are run with "fossil test-th-eval", templates with |
| 16 | # "fossil test-th-render" and "fossil test-th-source", and a ticket page |
| 17 | # that holds TH1 is asked for through "fossil http --in". |
| 18 | # |
| 19 |
+12
| --- test/url.test | ||
| +++ test/url.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # URLs of remote repositories, and the HTTP exchange of the sync client. |
| 3 | 15 | # |
| 4 | 16 | # The first part gives URLs to "fossil test-urlparser" and |
| 5 | 17 | # "fossil test-url-basename" and checks each part of the result, and |
| 6 | 18 | # checks how a saved remote, the parent project and a proxy are read. |
| 7 | 19 |
| --- test/url.test | |
| +++ test/url.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # URLs of remote repositories, and the HTTP exchange of the sync client. |
| 3 | # |
| 4 | # The first part gives URLs to "fossil test-urlparser" and |
| 5 | # "fossil test-url-basename" and checks each part of the result, and |
| 6 | # checks how a saved remote, the parent project and a proxy are read. |
| 7 |
| --- test/url.test | |
| +++ test/url.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # URLs of remote repositories, and the HTTP exchange of the sync client. |
| 15 | # |
| 16 | # The first part gives URLs to "fossil test-urlparser" and |
| 17 | # "fossil test-url-basename" and checks each part of the result, and |
| 18 | # checks how a saved remote, the parent project and a proxy are read. |
| 19 |
+12
| --- test/xfer-client.test | ||
| +++ test/xfer-client.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Replies that a server would not normally give, sent to the client side |
| 3 | 15 | # of the sync protocol. The client must handle each as documented and |
| 4 | 16 | # must not crash. There is no server: "fossil pull" and "fossil push" |
| 5 | 17 | # get standin/transport.sh as their --transport-command. It saves each |
| 6 | 18 | # request and answers with a reply that the test wrote, or with a bare |
| 7 | 19 |
| --- test/xfer-client.test | |
| +++ test/xfer-client.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Replies that a server would not normally give, sent to the client side |
| 3 | # of the sync protocol. The client must handle each as documented and |
| 4 | # must not crash. There is no server: "fossil pull" and "fossil push" |
| 5 | # get standin/transport.sh as their --transport-command. It saves each |
| 6 | # request and answers with a reply that the test wrote, or with a bare |
| 7 |
| --- test/xfer-client.test | |
| +++ test/xfer-client.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Replies that a server would not normally give, sent to the client side |
| 15 | # of the sync protocol. The client must handle each as documented and |
| 16 | # must not crash. There is no server: "fossil pull" and "fossil push" |
| 17 | # get standin/transport.sh as their --transport-command. It saves each |
| 18 | # request and answers with a reply that the test wrote, or with a bare |
| 19 |
+12
| --- test/xfer-server.test | ||
| +++ test/xfer-server.test | ||
| @@ -1,6 +1,18 @@ | ||
| 1 | 1 | # |
| 2 | +# Copyright (c) 2026 Dan Mestas | |
| 3 | +# | |
| 4 | +# This program is free software; you can redistribute it and/or | |
| 5 | +# modify it under the terms of the Simplified BSD License (also | |
| 6 | +# known as the "2-Clause License" or "FreeBSD License".) | |
| 7 | +# | |
| 8 | +# This program is distributed in the hope that it will be useful, | |
| 9 | +# but without any warranty; without even the implied warranty of | |
| 10 | +# merchantability or fitness for a particular purpose. | |
| 11 | +# | |
| 12 | +############################################################################ | |
| 13 | +# | |
| 2 | 14 | # Each kind of card and pragma of the sync protocol, sent to the server |
| 3 | 15 | # side through "fossil test-xfer", with and without valid card |
| 4 | 16 | # permissions. The server must give the documented answer and must not |
| 5 | 17 | # crash. The cards with content are in the sections at the end. |
| 6 | 18 | # |
| 7 | 19 |
| --- test/xfer-server.test | |
| +++ test/xfer-server.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Each kind of card and pragma of the sync protocol, sent to the server |
| 3 | # side through "fossil test-xfer", with and without valid card |
| 4 | # permissions. The server must give the documented answer and must not |
| 5 | # crash. The cards with content are in the sections at the end. |
| 6 | # |
| 7 |
| --- test/xfer-server.test | |
| +++ test/xfer-server.test | |
| @@ -1,6 +1,18 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2026 Dan Mestas |
| 3 | # |
| 4 | # This program is free software; you can redistribute it and/or |
| 5 | # modify it under the terms of the Simplified BSD License (also |
| 6 | # known as the "2-Clause License" or "FreeBSD License".) |
| 7 | # |
| 8 | # This program is distributed in the hope that it will be useful, |
| 9 | # but without any warranty; without even the implied warranty of |
| 10 | # merchantability or fitness for a particular purpose. |
| 11 | # |
| 12 | ############################################################################ |
| 13 | # |
| 14 | # Each kind of card and pragma of the sync protocol, sent to the server |
| 15 | # side through "fossil test-xfer", with and without valid card |
| 16 | # permissions. The server must give the documented answer and must not |
| 17 | # crash. The cards with content are in the sections at the end. |
| 18 | # |
| 19 |