Fossil

Check-in [46228ffb]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add another test to check the value of each versionable setting after it is written.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | settingsTest
Files: files | file ages | folders
SHA1:46228ffb1f2cdb8f161d95ec2fa6b70ce6cf5a0e
User & Date: mistachkin 2016-08-23 02:19:25
Context
2016-08-23
17:21
Add a comment. Closed-Leaf check-in: ca6c8f9b user: mistachkin tags: settingsTest
02:19
Add another test to check the value of each versionable setting after it is written. check-in: 46228ffb user: mistachkin tags: settingsTest
02:13
Add extensive tests for the 'settings' and 'unset' commands. Also, add --exact option to the 'settings' / 'unset' commands. check-in: b9414210 user: mistachkin tags: settingsTest
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/settings-repo.test.

213
214
215
216
217
218
219

220
221
222
223
224
225
226
227
228







229
230
231
232
233
234
235
  fossil settings $name --exact
  set data [normalize_result]

  test settings-before-versionable-$name {
    [regexp -- [string map [list %name% $name] $pattern(1)] $data]
  }


  set fileName [file join .fossil-settings $name]
  write_file $fileName versionable_for_$name

  fossil settings $name --exact
  set data [normalize_result]

  test settings-set-check1-versionable-$name {
    [regexp -- [string map [list %name% $name] $pattern(5)] $data]
  }








  file delete $fileName

  fossil settings $name --exact
  set data [normalize_result]

  test settings-after-versionable-$name {







>

|







>
>
>
>
>
>
>







213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
  fossil settings $name --exact
  set data [normalize_result]

  test settings-before-versionable-$name {
    [regexp -- [string map [list %name% $name] $pattern(1)] $data]
  }

  set value #versionable_for_$name
  set fileName [file join .fossil-settings $name]
  write_file $fileName $value

  fossil settings $name --exact
  set data [normalize_result]

  test settings-set-check1-versionable-$name {
    [regexp -- [string map [list %name% $name] $pattern(5)] $data]
  }

  fossil test-th-eval --open-config "setting $name"
  set data [normalize_result]

  test settings-set-check2-versionable-$name {
    $data eq $value
  }

  file delete $fileName

  fossil settings $name --exact
  set data [normalize_result]

  test settings-after-versionable-$name {