Fossil SCM
Disable the "settings" test module, which doesn't work for unknown reasons, and because it does not seem to accomplish very much for all the TCL complication that it adds.
Commit
4619d2efab946460060b538e146ad422b429684a7e493d97ddcc2591763a99a9
Parent
a8dbbac969e19bd…
2 files changed
-65
D
test/settings.test
-65
| --- a/test/settings.test | ||
| +++ b/test/settings.test | ||
| @@ -1,65 +0,0 @@ | ||
| 1 | -# | |
| 2 | -# Copyright (c) 2016 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 | -# Author contact information: | |
| 13 | -# [email protected] | |
| 14 | -# http://www.hwaci.com/drh/ | |
| 15 | -# | |
| 16 | -############################################################################ | |
| 17 | -# | |
| 18 | -# The "settings" and "unset" commands. | |
| 19 | -# | |
| 20 | - | |
| 21 | -set path [file dirname [info script]]; t (c) 2016 D. Richard Hipp | |
| 22 | -# | |
| 23 | -# This program is free software; you can redistribute it and/or | |
| 24 | -# modify it under the terms of the Simplified BSD License (also | |
| 25 | -# known as the "2-Clause License" or "FreeBSD License".) | |
| 26 | -# | |
| 27 | -# This program is distributed in the hope that it will be useful, | |
| 28 | -# but without any warranty; without even the implied warranty of | |
| 29 | -# merchantability or fitness for a particular purpose. | |
| 30 | -# | |
| 31 | -# s the list | |
| 32 | -# of settings to test from the "SETTING:" comments in the source files, | |
| 33 | -# so these tests compare the settings of the fossil binary with the | |
| 34 | -# settings its source defines. | |
| 35 | -# | |
| 36 | -############################################################################### | |
| 37 | -# | |
| 38 | -# NOTE: The [extract_setting_names] procedure extracts the list of setting | |
| 39 | -# names from the line-ending normalized output of the "fossil settings" | |
| 40 | -# command. It assumes that a setting name must begin with a lowercase | |
| 41 | -# letter. It also assumes that any output lines that start with a | |
| 42 | -# lowercase letter contain a setting name starting at that same point. | |
| 43 | -# | |
| 44 | -proc extract_setting_names { data } { | |
| 45 | - set names [list] | |
| 46 | - | |
| 47 | - foreach {dummy name} [regexp \ | |
| 48 | - -all -line -inline -- {^([a-z][a-z0-9\-]*) ?.*$} $data] { | |
| 49 | - lappend names $name | |
| 50 | - } | |
| 51 | - | |
| 52 | - return $names | |
| 53 | -} | |
| 54 | - | |
| 55 | -############################################################################### | |
| 56 | - | |
| 57 | -set all_settings [get_all_settings] | |
| 58 | - | |
| 59 | -fossil settings | |
| 60 | -set local_settings [extract_setting_names [normalize_result_no_trim]] | |
| 61 | - | |
| 62 | -fossil settings --global | |
| 63 | -set global_settings [extract_setting_names [normalize_result_no_trim]] | |
| 64 | - | |
| 65 | -foreach name $all_sett |
| --- a/test/settings.test | |
| +++ b/test/settings.test | |
| @@ -1,65 +0,0 @@ | |
| 1 | # |
| 2 | # Copyright (c) 2016 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 | # Author contact information: |
| 13 | # [email protected] |
| 14 | # http://www.hwaci.com/drh/ |
| 15 | # |
| 16 | ############################################################################ |
| 17 | # |
| 18 | # The "settings" and "unset" commands. |
| 19 | # |
| 20 | |
| 21 | set path [file dirname [info script]]; t (c) 2016 D. Richard Hipp |
| 22 | # |
| 23 | # This program is free software; you can redistribute it and/or |
| 24 | # modify it under the terms of the Simplified BSD License (also |
| 25 | # known as the "2-Clause License" or "FreeBSD License".) |
| 26 | # |
| 27 | # This program is distributed in the hope that it will be useful, |
| 28 | # but without any warranty; without even the implied warranty of |
| 29 | # merchantability or fitness for a particular purpose. |
| 30 | # |
| 31 | # s the list |
| 32 | # of settings to test from the "SETTING:" comments in the source files, |
| 33 | # so these tests compare the settings of the fossil binary with the |
| 34 | # settings its source defines. |
| 35 | # |
| 36 | ############################################################################### |
| 37 | # |
| 38 | # NOTE: The [extract_setting_names] procedure extracts the list of setting |
| 39 | # names from the line-ending normalized output of the "fossil settings" |
| 40 | # command. It assumes that a setting name must begin with a lowercase |
| 41 | # letter. It also assumes that any output lines that start with a |
| 42 | # lowercase letter contain a setting name starting at that same point. |
| 43 | # |
| 44 | proc extract_setting_names { data } { |
| 45 | set names [list] |
| 46 | |
| 47 | foreach {dummy name} [regexp \ |
| 48 | -all -line -inline -- {^([a-z][a-z0-9\-]*) ?.*$} $data] { |
| 49 | lappend names $name |
| 50 | } |
| 51 | |
| 52 | return $names |
| 53 | } |
| 54 | |
| 55 | ############################################################################### |
| 56 | |
| 57 | set all_settings [get_all_settings] |
| 58 | |
| 59 | fossil settings |
| 60 | set local_settings [extract_setting_names [normalize_result_no_trim]] |
| 61 | |
| 62 | fossil settings --global |
| 63 | set global_settings [extract_setting_names [normalize_result_no_trim]] |
| 64 | |
| 65 | foreach name $all_sett |
| --- a/test/settings.test | |
| +++ b/test/settings.test | |
| @@ -1,65 +0,0 @@ | |
No diff available