kracht-91203348-ad81

job succeeded

starting new job...


→ running command: cd "/etc/byggsteg/job-clone//kracht/trunk" && git reset --hard && git pull

HEAD is now at f40b83c chore: Pin the Arch source checksum for v0.3.2
From https://codeberg.org/jjba23/kracht
   f40b83c..de2315c  trunk      -> origin/trunk
Updating f40b83c..de2315c
Fast-forward
 README.org | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 126 insertions(+)

→ running command: cd /etc/byggsteg/job-clone/kracht/trunk && uname -a

Linux wolk-jjba 7.1.5-gnu #1 SMP PREEMPT_DYNAMIC 1 x86_64 GNU/Linux

→ running command: cd /etc/byggsteg/job-clone/kracht/trunk && git log --name-status HEAD^..HEAD

commit de2315c53ee150ff267e31d71d95afe0b5c4d913
Author: Josep Bigorra <jjbigorra@gmail.com>
Date:   Sat Oct 24 13:14:43 2026 +0200

    docs: Anchor README headings and explain the install routes

M       README.org

→ running command: cd /etc/byggsteg/job-clone/kracht/trunk && maak test


scanning directories for unit tests...
scanning present working directory for unit tests...

shuffled the files with seed 747478201 (replay with VERITAS_SEED=747478201)

found unit tests: (modules-spec.scm entities-spec.scm prelude-spec.scm)


running unit tests from file: modules-spec.scm, entrypoint: spec


[info] shuffled with seed 747478201 (replay with VERITAS_SEED=747478201)
------------------------------------------
[suite] Kracht sub-modules
  [test] the split is clean: modules do not leak each other's names
    [assert] (kracht html-entities) is tables only, not the escapers
    [pass] got: #f
    [assert] (kracht sql) exports quote-sql-identifier
    [pass] got: #t
    [assert] (kracht strings) does not export html-escape
    [pass] got: #f
    [assert] (kracht sql) exports sql-parameterize
    [pass] got: #t
    [assert] (kracht sql) exports sql-select
    [pass] got: #t
    [assert] (kracht sql) does not export flatten-list
    [pass] got: #f
    [assert] (kracht html-entities) exports html-char-ref
    [pass] got: #t
    [assert] (kracht web) exports html-escape-context
    [pass] got: #t
    [assert] (kracht prelude) re-exports html-entity-ref
    [pass] got: #t
    [assert] (kracht strings) exports base64-encode
    [pass] got: #t
    [assert] (kracht io) does not export base64-encode
    [pass] got: #f
    [assert] (kracht prelude) re-exports sql-insert-many
    [pass] got: #t
    [assert] (kracht sql) exports sql-upsert-many
    [pass] got: #t
    [assert] (kracht sql) exports value->sql-literal
    [pass] got: #t
    [assert] (kracht prelude) re-exports sql-insert
    [pass] got: #t
    [assert] (kracht sql) does not export the web encoders
    [pass] got: #f
  [test] (kracht sql) works standalone
    [assert] sql-select binds its value
    [pass] got: (SELECT * FROM "t" WHERE "id" = ? (1))
    [assert] sql-upsert renders ON CONFLICT
    [pass] got: INSERT INTO "t" ("id", "a") VALUES (?, ?) ON CONFLICT ("id") DO UPDATE SET "a" = EXCLUDED."a"
    [assert] value->sql-literal escapes quotes
    [pass] got: 'O''Brien'
    [assert] sql-column->symbol
    [pass] got: first-name
    [assert] sql-insert-many groups one VALUES per row
    [pass] got: INSERT INTO "t" ("a") VALUES (?), (?)
    [assert] quote-sql-identifier
    [pass] got: "select"
    [assert] symbol->sql-column
    [pass] got: first_name
  [test] (kracht strings) works standalone
    [assert] non-empty-string?
    [pass] got: #t
    [assert] base64-encode
    [pass] got: aGVsbG8=
    [assert] string-drop-first-last
    [pass] got: ell
    [assert] base64-decode
    [pass] got: hello
  [test] (kracht lists) works standalone
    [assert] flatten-list
    [pass] got: (1 2 3)
    [assert] assoc-ref-or
    [pass] got: 1
    [assert] alist?
    [pass] got: #t
  [test] (kracht html-entities) works standalone
    [assert] and the decode table is the HTML5 one
    [pass] got: 2125
    [assert] an unknown reference is #f
    [pass] got: #f
    [assert] including one the HTML4 set has no name for
    [pass] got: …
    [assert] the escape table is the HTML4 set
    [pass] got: 253
    [assert] html-char-ref writes a reference
    [pass] got: <
    [assert] html-entity-ref reads a reference
    [pass] got: &
  [test] (kracht io) works standalone
    [assert] get-short-commit-sha returns a string
    [pass] got: #t
    [assert] syscall returns a string
    [pass] got: #t
  [test] (kracht web) works standalone
    [assert] html-unescape
    [pass] got: <
    [assert] html-escape-context javascript
    [pass] got: a\x22b
    [assert] html-escape
    [pass] got: '
    [assert] alist-from-url-encoded-body
    [pass] got: ((a . 1))
    [assert] html-unescape numeric reference
    [pass] got: '
    [assert] html-escape-css-value
    [pass] got: 100\000025 
    [assert] html-escape ampersand
    [pass] got: a & b
[info] ran 1 tasks in: 0 seconds, 8209 microseconds

running unit tests from file: entities-spec.scm, entrypoint: spec


[info] shuffled with seed 747478201 (replay with VERITAS_SEED=747478201)
------------------------------------------
[suite] HTML entity tables
  [test] the tables are the standard's, not a hand-written sample
    [assert] every HTML5 reference ending in a semicolon
    [pass] got: 2125
    [assert] the escape set is the HTML4 one
    [pass] got: 253
  [test] html-entity-ref refuses what is not a reference
    [assert] an empty reference
    [pass] got: #f
    [assert] an unknown name
    [pass] got: #f
    [assert] the empty string
    [pass] got: #f
    [assert] a reference with no semicolon
    [pass] got: #f
    [assert] a name with no ampersand
    [pass] got: #f
  [test] the two tables agree with each other
    [assert] and reading it back gives the same character
    [pass] got: ()
    [assert] nothing is emitted that cannot be read back
    [pass] got: ()
    [assert] the encoder's own lookup is consistent
    [pass] got: ()
  [test] every entry is shaped the way a lookup expects
    [assert] decode names run from & to ;
    [pass] got: #t
    [assert] escape values are named references
    [pass] got: #t
    [assert] escape keys are single characters
    [pass] got: #t
  [test] a reference stands for the character the standard gives it
    [assert] while the references still decode as HTML5 reads them
    [pass] got: (⟨ ⟩)
    [assert] and they survive a round trip
    [pass] got: ⟨⟩
    [assert] the mathematical brackets are what is written
    [pass] got: (⟨ ⟩)
    [assert] the CJK brackets have no reference to write
    [pass] got: (#f #f)
    [assert] so those characters pass through unchanged
    [pass] got: 〈〉
  [test] html-escape uses the wider table
    [assert] a non-breaking space is written as one
    [pass] got: a b
    [assert] a character with no entity passes through
    [pass] got: a😀
    [assert] symbols and accents all become entities
    [pass] got: Price… €5 — © α→ café
    [assert] and the five significant ones are unaffected
    [pass] got: <>&"'
    [assert] the HTML5-only names are still not emitted
    [pass] got: a/b*c$%
  [test] escaping and unescaping are inverses over the whole table
    [assert] and so does a sentence mixing them
    [pass] got: cafá € ≤ 3 — ™
    [assert] every escapable character survives a round trip
    [pass] got: ()
  [test] html-entity-ref reads a reference
    [assert] case matters: this is the capital
    [pass] got: Α
    [assert] punctuation the old table did not have
    [pass] got: …
    [assert] an entity standing for two code points
    [pass] got: ≂̸
    [assert] a non-breaking space
    [pass] got:  
    [assert] the legacy upper-case spelling too
    [pass] got: &
    [assert] and another
    [pass] got: —
    [assert] an arrow
    [pass] got: →
    [assert] a Greek letter
    [pass] got: α
    [assert] a currency sign
    [pass] got: €
    [assert] a currency sign's HTML5-only spelling
    [pass] got: $
    [assert] a mathematical symbol
    [pass] got: ≤
    [assert] the ampersand entity
    [pass] got: &
  [test] html-unescape uses the wider table
    [assert] a string of symbols comes back
    [pass] got: Price… €5 — © α→
    [assert] a two-code-point reference decodes to two
    [pass] got: (2 ≂̸)
    [assert] the legacy upper-case spellings still work
    [pass] got: &<>"
    [assert] a reference at the very end of the string
    [pass] got: 5 ≤
    [assert] an unknown name is still left alone
    [pass] got: &nope;
    [assert] the HTML5-only names decode too
    [pass] got: a/b*c$%
    [assert] two references with nothing between them
    [pass] got: αΑ
    [assert] numeric references still work alongside them
    [pass] got: α'
  [test] html-char-ref writes a reference
    [assert] another
    [pass] got: &
    [assert] a significant character
    [pass] got: <
    [assert] nor does a slash
    [pass] got: #f
    [assert] a non-breaking space
    [pass] got:  
    [assert] a symbol
    [pass] got: ©
    [assert] nor an astral-plane character
    [pass] got: #f
    [assert] another
    [pass] got: "
    [assert] a digit has none either
    [pass] got: #f
    [assert] and the apostrophe HTML5 gave us
    [pass] got: '
    [assert] an accent, as before
    [pass] got: á
    [assert] and another
    [pass] got: ã
    [assert] a character with no entity
    [pass] got: #f
    [assert] another
    [pass] got: >
[info] ran 1 tasks in: 0 seconds, 21956 microseconds

running unit tests from file: prelude-spec.scm, entrypoint: spec


[info] shuffled with seed 747478201 (replay with VERITAS_SEED=747478201)
------------------------------------------
[suite] SRFI re-exports
  [test] match and pretty-print re-exports
    [assert] match
    [pass] got: 3
    [assert] pretty-print writes to a string
    [pass] got: #t
  [test] native Guile hash tables are left untouched
    [assert] core make-hash-table/hash-ref still work
    [pass] got: found
  [test] srfi-111 boxes
    [assert] set-box!
    [pass] got: 8
    [assert] box and unbox
    [pass] got: 7
    [assert] box?
    [pass] got: #t
  [test] srfi-2, 8, 11 and 26 syntactic forms
    [assert] and-let* failure
    [pass] got: #f
    [assert] cute
    [pass] got: (2 3)
    [assert] receive
    [pass] got: (1 2)
    [assert] let*-values
    [pass] got: 2
    [assert] and-let* success
    [pass] got: ok
    [assert] cut
    [pass] got: 3
    [assert] let-values
    [pass] got: 7
  [test] srfi-1 list procedures
    [assert] lset-union
    [pass] got: (1 2 3)
    [assert] reduce
    [pass] got: 6
    [assert] fold
    [pass] got: 6
    [assert] count
    [pass] got: 2
    [assert] filter-map
    [pass] got: (1 9)
    [assert] zip
    [pass] got: ((1 a) (2 b))
    [assert] delete-duplicates
    [pass] got: (1 2 3)
    [assert] fold-right
    [pass] got: (1 2 3)
    [assert] take and drop
    [pass] got: ((1 2) (3 4))
    [assert] list-tabulate
    [pass] got: (0 1 4)
  [test] srfi-43 vector procedures
    [assert] vector-for-each
    [pass] got: 6
    [assert] vector-fold
    [pass] got: 6
    [assert] vector-index
    [pass] got: 2
    [assert] vector-count
    [pass] got: 2
    [assert] vector-map receives the index
    [pass] got: #(0 2 6)
    [assert] vector-append
    [pass] got: #(1 2 3)
  [test] srfi-19 date and time
    [assert] current-date returns a date
    [pass] got: #t
    [assert] date->string returns a string
    [pass] got: #t
    [assert] make-date returns a date
    [pass] got: #t
------------------------------------------
[suite] Prelude test suite
  [test] string-drop tests
    [assert] string-drop-first-last empty string
    [pass] got: 
    [assert] string-drop-first-last single char
    [pass] got: a
    [assert] string-drop-first-last normal case
    [pass] got: ell
    [assert] string-drop-first-last-line empty input
    [pass] got: 
    [assert] string-drop-first-last two chars
    [pass] got: ab
    [assert] string-drop-first-last-line single line
    [pass] got: 
    [assert] string-drop-first-last-line two lines
    [pass] got: 
    [assert] string-drop-first-last-line normal case
    [pass] got: middle line
  [test] assoc-ref-or-empty-str tests
    [assert] key is first element
    [pass] got: value
    [assert] key is last element
    [pass] got: value
    [assert] empty alist
    [pass] got: 
    [assert] key found - string value
    [pass] got: hello
    [assert] key found - non-string value
    [pass] got: 2
    [assert] key not found
    [pass] got: 
  [test] string-drop-first-last-n tests
    [assert] drop one leading and the last char
    [pass] got: ell
    [assert] negative n is clamped to zero
    [pass] got: hell
    [assert] n larger than length is clamped
    [pass] got: 
    [assert] short strings are returned unaltered
    [pass] got: ab
    [assert] n = 0 drops only the last char
    [pass] got: hell
    [assert] drop two leading and the last char
    [pass] got: ll
    [assert] n at the boundary returns empty string
    [pass] got: 
  [test] empty-string? tests
    [assert] empty-string? with whitespace
    [pass] got: #f
    [assert] empty-string? with non-empty string
    [pass] got: #f
    [assert] empty-string? with empty string
    [pass] got: #t
  [test] alist-set tests
    [assert] replace an existing key in place
    [pass] got: ((a . 9) (b . 2))
    [assert] the original alist is never mutated
    [pass] got: ((a . 1))
    [assert] add a new key at the front
    [pass] got: ((c . 3) (a . 1))
  [test] assoc-ref-or tests
    [assert] missing key uses the given default
    [pass] got: missing
    [assert] found key
    [pass] got: 1
    [assert] missing key defaults to #f
    [pass] got: #f
  [test] non-empty-string? tests
    [assert] non-empty-string? with whitespace
    [pass] got: #t
    [assert] non-empty-string? with #f
    [pass] got: #f
    [assert] non-empty-string? with empty string
    [pass] got: #f
    [assert] non-empty-string? with #t (not a string)
    [pass] got: #f
    [assert] non-empty-string? with a number
    [pass] got: #f
    [assert] non-empty-string? with non-empty string
    [pass] got: #t
  [test] alist-from-url-encoded-body
    [assert] empty key and empty value
    [pass] got: ()
    [assert] mixed valid and malformed pairs
    [pass] got: ((a . 1) (b . ) (c . 3))
    [assert] multiple key-value pairs
    [pass] got: ((name . Jane Doe) (age . 30))
    [assert] duplicate keys
    [pass] got: ((item . apple) (item . orange))
    [assert] square brackets characters (%5B, %5D)
    [pass] got: ((array . [1,2]))
    [assert] only an ampersand
    [pass] got: ()
    [assert] key with no value
    [pass] got: ((key . ))
    [assert] equals sign character (%3D)
    [pass] got: ((equation . x=y))
    [assert] literal equals sign stays part of the value
    [pass] got: ((q . a=b))
    [assert] comma character (%2C)
    [pass] got: ((list . a,b,c))
    [assert] single key value pair
    [pass] got: ((name . John Doe))
    [assert] backslash character (%5C)
    [pass] got: ((winpath . C:\Users\))
    [assert] multiple keys, no equals sign
    [pass] got: ((key1 . ) (key2 . ))
    [assert] ampersand character (%26)
    [pass] got: ((data . one&two))
    [assert] single key, no equals sign
    [pass] got: ((key-only . ))
    [assert] keys and values with special characters (URL-encoded)
    [pass] got: ((param_1 . value with spaces) (param/2 . another_value!))
    [assert] at symbol character (%40)
    [pass] got: ((email . test@example.com))
    [assert] question mark character (%3F)
    [pass] got: ((query . what?))
    [assert] unicode characters (e.g., 'é' - %C3%A9 in UTF-8)
    [pass] got: ((name . fiancé))
    [assert] parentheses characters (%28, %29)
    [pass] got: ((func . f(x)))
    [assert] space character (%20)
    [pass] got: ((message . hello world))
    [assert] hash/pound sign character (%23)
    [pass] got: ((tag . #important))
    [assert] plus sign (%2B) - often used for space, but distinct from actual '+'
    [pass] got: ((code . a+b))
    [assert] empty body
    [pass] got: ()
    [assert] dollar sign character (%24)
    [pass] got: ((amount . $100))
    [assert] curly braces characters (%7B, %7D)
    [pass] got: ((json . {data}))
    [assert] empty &-separated segments are skipped
    [pass] got: ((a . 1) (b . 2))
    [assert] exclamation mark character (%21)
    [pass] got: ((warning . danger!))
    [assert] slash character (%2F)
    [pass] got: ((path . /usr/local))
    [assert] multiple encoded characters in one value
    [pass] got: ((complex . a&b=c?d e))
    [assert] value with no key (unlikely but possible from split)
    [pass] got: (( . value))
    [assert] semicolon character (%3B)
    [pass] got: ((cookie . id;user))
    [assert] colon character (%3A)
    [pass] got: ((protocol . http:))
  [test] assoc-lens tests
    [assert] missing nested key
    [pass] got: #f
    [assert] intermediate value is not an alist
    [pass] got: #f
    [assert] nested lookup
    [pass] got: 1
------------------------------------------
[suite] Another test suite
  [test] sha tests
    [assert] get-short-commit-sha works as expected
    [pass] got: #t
  [test] html-unescape tests
    [assert] Accented A entity
    [pass] got: Á
    [assert] C-cedilla entity
    [pass] got: ç
    [assert] Accented a entity
    [pass] got: á
    [assert] Example sentence unescaped
    [pass] got: Ólá, múndo! Isto é um teste.
    [assert] Mix of entities
    [pass] got: He's a "guy".
    [assert] Single apos entity
    [pass] got: '
    [assert] String with no entities
    [pass] got: Hello, World!
    [assert] Multiple entity occurrences
    [pass] got: It's a "quote".
    [assert] Empty string
    [pass] got: 
    [assert] Single quot entity
    [pass] got: "
  [test] Round-trip tests
    [assert] Unescape then escape (for chars in alist)
    [pass] got: 'áéíóú"
    [assert] Escape then unescape
    [pass] got: Hello, it's a "test" with áéíóú.
    [assert] Unescape then escape round-trips the significant characters
    [pass] got: <div>'test'</div>
    [assert] Example sentence
    [pass] got: Olá, múndo! Isto é um teste.
  [test] html-escape tests
    [assert] N-tilde
    [pass] got: ñ
    [assert] Accented E
    [pass] got: É
    [assert] Empty string
    [pass] got: 
    [assert] Mix of quotes
    [pass] got: He's a "guy".
    [assert] String with multiple occurrences
    [pass] got: He said, "It's a beautiful day!"
    [assert] Double quote
    [pass] got: "
    [assert] Accented U
    [pass] got: Ú
    [assert] Accented u
    [pass] got: ú
    [assert] Accented o
    [pass] got: ó
    [assert] Accented i
    [pass] got: í
    [assert] Multiple accents
    [pass] got: Árvore é bonita
    [assert] Accented I
    [pass] got: Í
    [assert] C-cedilla
    [pass] got: ç
    [assert] Example sentence escaped
    [pass] got: Ólá, múndo! Isto é um teste.
    [assert] String with no special characters
    [pass] got: Hello, World!
    [assert] Single quote
    [pass] got: '
    [assert] Accented O
    [pass] got: Ó
------------------------------------------
[suite] context-aware escaping
  [test] JavaScript string literals
    [assert] quotes and spaces become escapes
    [pass] got: O\x27Reilly\x20\x22x\x22
    [assert] alphanumerics stay readable
    [pass] got: abcXYZ019
    [assert] no slash survives, so </script is impossible
    [pass] got: #f
    [assert] the line separator U+2028 is escaped
    [pass] got: a\u2028b
    [assert] a backslash is escaped, not left to combine
    [pass] got: a\x5Cb
    [assert] BMP characters use \xHH
    [pass] got: caf\xE9
    [assert] an encoded value needs no further HTML escaping
    [pass] got: it\x27s\x20\x3C\x2Fscript\x3E
    [assert] a newline cannot break the literal
    [pass] got: a\x0Ab
    [assert] a non-BMP character becomes a surrogate pair
    [pass] got: \uD83D\uDE00
  [test] CSS values
    [assert] a percent sign is escaped
    [pass] got: 100\000025 
    [assert] a non-BMP character uses a six-digit escape
    [pass] got: \01F600 
    [assert] no function call survives
    [pass] got: #f
    [assert] alphanumerics stay readable
    [pass] got: TimesNewRoman10px
  [test] unquoted attribute values
    [assert] letters, digits, - _ and . pass through
    [pass] got: abc-1_2.3
    [assert] quotes are encoded rather than ended
    [pass] got: "'
    [assert] a non-BMP character stays one reference
    [pass] got: 😀
    [assert] whitespace and delimiters cannot end the value
    [pass] got: a b=c/d>e
  [test] every encoder leaves the empty string alone
    [assert] empty input, empty output
    [pass] got: (   )
  [test] html-escape-context picks an encoder per position
    [assert] javascript string
    [pass] got: a\x22b
    [assert] text
    [pass] got: <b>
    [assert] css value
    [pass] got: a\000022 b
    [assert] quoted attribute
    [pass] got: a"b
    [assert] an unknown context is an error
    [pass] got: rejected
    [assert] url component
    [pass] got: a%2Fb%3Fc%3Dd%26e
    [assert] unquoted attribute
    [pass] got: a b
    [assert] text is the default
    [pass] got: <b>
------------------------------------------
[suite] flatten-list
  [test] it scales the way its callers need it to
    [assert] a thousand levels deep
    [pass] got: (deep)
    [assert] a thousand sibling lists
    [pass] got: (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 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 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999)
    [assert] depth-first, left to right
    [pass] got: (1 2 3 4 5 6 7 8)
  [test] it does not disturb its input
    [assert] flattening twice changes nothing
    [pass] got: (1 2 3 4 5)
    [assert] the argument is untouched
    [pass] got: (1 (2 3) (4 (5)))
  [test] it survives the deeply nested input it is used on
    [assert] a hundred levels deep
    [pass] got: (deep)
  [test] what counts as a leaf
    [assert] and a dotted pair on its own likewise
    [pass] got: (a b)
    [assert] an improper tail is flattened, not kept whole
    [pass] got: (a b c)
    [assert] a string is a leaf, not a list of characters
    [pass] got: (abc)
    [assert] numbers and booleans are not list-like
    [pass] got: (0 #f #t 1)
    [assert] mixed atoms keep their order and identity
    [pass] got: (1 two #t x three 4)
    [assert] a vector is a leaf too
    [pass] got: (1 #(2 3) 4)
  [test] length is preserved for proper lists
    [assert] a flattened tree has the same element count
    [pass] got: 6
  [test] the shapes it has to handle
    [assert] nesting on both sides of a spine
    [pass] got: (1 2 3 4 5 6)
    [assert] an empty list
    [pass] got: ()
    [assert] a bare atom becomes a one-element list
    [pass] got: (a)
    [assert] empty lists disappear
    [pass] got: (1 2)
    [assert] one level of nesting
    [pass] got: (1 2 3 4)
    [assert] an empty list of empty lists
    [pass] got: ()
    [assert] deep nesting
    [pass] got: (1 2 3 4 5)
    [assert] a list with nothing to flatten
    [pass] got: (1 2 3)
------------------------------------------
[suite] SQL statement builder
  [test] multi-row INSERT refuses rows that do not line up
    [assert] an empty batch
    [pass] got: rejected
    [assert] a row with different columns
    [pass] got: rejected
    [assert] a row carrying an extra column
    [pass] got: rejected
  [test] INSERT binds every value
    [assert] parameters follow row order
    [pass] got: (O'Brien 30)
  [test] misuse is reported, not silently mis-compiled
    [assert] a condition that is not a pair or list
    [pass] got: rejected
    [assert] too few values
    [pass] got: rejected
    [assert] too many values
    [pass] got: rejected
    [assert] an operator outside the allow-list
    [pass] got: rejected
    [assert] an unknown ORDER BY direction
    [pass] got: rejected
    [assert] an unknown placeholder style
    [pass] got: rejected
    [assert] an INSERT with no columns
    [pass] got: rejected
  [test] upsert: ON CONFLICT for PostgreSQL and SQLite
    [assert] DO NOTHING keeps the conflict target
    [pass] got: INSERT INTO "users" ("id", "name") VALUES (?, ?) ON CONFLICT ("id") DO NOTHING
    [assert] the upsert binds no parameter of its own
    [pass] got: (1 A 2)
    [assert] an explicit column list narrows the update
    [pass] got: INSERT INTO "users" ("id", "name", "age") VALUES (?, ?, ?) ON CONFLICT ("id") DO UPDATE SET "name" = EXCLUDED."name"
    [assert] sqlite renders the same ON CONFLICT form
    [pass] got: INSERT INTO "users" ("id", "name") VALUES (?, ?) ON CONFLICT ("id") DO UPDATE SET "name" = EXCLUDED."name"
    [assert] and may omit it
    [pass] got: INSERT INTO "users" ("id", "name") VALUES (?, ?) ON CONFLICT DO NOTHING
  [test] multi-row INSERT
    [assert] one row is a legal batch
    [pass] got: INSERT INTO "users" ("name") VALUES (?)
    [assert] parameters run row by row
    [pass] got: (A 1 B 2)
    [assert] numbered placeholders keep counting across rows
    [pass] got: INSERT INTO "users" ("name", "age") VALUES ($1, $2), ($3, $4)
    [assert] rows are put into the first row's column order
    [pass] got: (A 1 B 2)
  [test] DELETE conditions
    [assert] a null test binds nothing
    [pass] got: (7)
  [test] upsert: misuse is reported
    [assert] MySQL has no DO NOTHING
    [pass] got: rejected
    [assert] an update that is neither 'auto, 'nothing nor a list
    [pass] got: rejected
    [assert] ON CONFLICT DO UPDATE needs a target
    [pass] got: rejected
    [assert] a conflict target that is not in the rows
    [pass] got: rejected
    [assert] an unknown dialect
    [pass] got: rejected
    [assert] MySQL has no RETURNING
    [pass] got: rejected
    [assert] MySQL has no conflict target to give
    [pass] got: rejected
    [assert] a column that is not in the rows
    [pass] got: rejected
    [assert] nothing left to update
    [pass] got: rejected
  [test] WHERE fragments compose
    [assert] with its parameters
    [pass] got: (1 2)
    [assert] an empty condition list yields no clause
    [pass] got: 
    [assert] #:start-index continues another fragment
    [pass] got:  WHERE "a" = $4
  [test] UPDATE binds the SET values before the WHERE ones
    [assert] parameters
    [pass] got: (A 9 7)
    [assert] no conditions means no WHERE clause
    [pass] got: UPDATE "users" SET "active" = ?
  [test] placeholder dialects
    [assert] percent (pyformat)
    [pass] got: INSERT INTO "users" ("name") VALUES (%s)
    [assert] a procedure supplies a custom style
    [pass] got: SELECT :p1
  [test] IN and NOT IN
    [assert] an empty NOT IN always matches
    [pass] got: SELECT * FROM "users" WHERE 1 = 1
    [assert] a populated NOT IN binds each element
    [pass] got: (SELECT * FROM "users" WHERE "id" NOT IN (?, ?, ?) (1 2 3))
    [assert] an empty IN never matches
    [pass] got: SELECT * FROM "users" WHERE 1 = 0
  [test] upsert: multi-row batches
    [assert] parameters run row by row
    [pass] got: (1 A 2 B)
  [test] SELECT with every clause
    [assert] a lone OFFSET numbers from the first free slot
    [pass] got: SELECT * FROM "users" OFFSET $1
  [test] INSERT ... RETURNING
    [assert] a column list is quoted
    [pass] got: INSERT INTO "users" ("name") VALUES (?) RETURNING "id"
    [assert] the star stays unquoted
    [pass] got: INSERT INTO "users" ("name") VALUES (?) RETURNING *
  [test] upsert: ON DUPLICATE KEY UPDATE for MySQL
    [assert] MySQL quotes its identifiers and sources VALUES()
    [pass] got: INSERT INTO `users` (`id`, `name`) VALUES (?, ?) ON DUPLICATE KEY UPDATE `id` = VALUES(`id`), `name` = VALUES(`name`)
    [assert] an explicit column list keeps the key out of it
    [pass] got: INSERT INTO `users` (`id`, `name`, `age`) VALUES (?, ?, ?) ON DUPLICATE KEY UPDATE `name` = VALUES(`name`)
  [test] sql-parameterize fills a hand-written template
    [assert] question marks in order
    [pass] got: (SELECT * FROM t WHERE a = ? AND b = ? (1 2))
    [assert] a template with no values is left alone
    [pass] got: SELECT 1
    [assert] renumbered for PostgreSQL
    [pass] got: UPDATE t SET a = $1 WHERE b = $2
  [test] a query hands itself to the driver
    [assert] sql-query->alist exposes the sql and the params
    [pass] got: (SELECT * FROM "t" WHERE "id" = ? (1))
  [test] identifier quoting is what keeps a value out of the SQL
    [assert] #:quote-identifiers? #f emits bare names
    [pass] got: SELECT id FROM users WHERE first_name = ?
    [assert] and never appears in the statement
    [pass] got: #f
    [assert] a quote in a column name is doubled, not closed
    [pass] got: SELECT * FROM "t" WHERE "x""; DROP TABLE t" = ?
  [test] #:dialect decides how identifiers are delimited
    [assert] an unknown dialect is rejected
    [pass] got: rejected
    [assert] and so do the other builders
    [pass] got: (UPDATE `users` SET `name` = ? WHERE `id` = ? DELETE FROM `users` WHERE `id` = ?)
    [assert] quote-sql-identifier switches delimiter on request
    [pass] got: ("id" `id`)
    [assert] MySQL uses backticks, not double quotes
    [pass] got: SELECT `id`, `name` FROM `users` WHERE `id` = ? LIMIT ?
    [assert] the default is still ANSI quoting
    [pass] got: SELECT "id" FROM "users" WHERE "id" = ?
------------------------------------------
[suite] Robustness test suite
  [test] base64-encode known vectors
    [assert] hello world
    [pass] got: aGVsbG8gd29ybGQ=
    [assert] two bytes need one padding char
    [pass] got: Zm8=
    [assert] hello
    [pass] got: aGVsbG8=;;; note: source file ./src/kracht/strings.scm
;;;       newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/strings.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/strings.scm.go
;;; note: source file ./src/kracht/lists.scm
;;;       newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/lists.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/lists.scm.go
;;; note: source file ./src/kracht/sql.scm
;;;       newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/sql.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/sql.scm.go
;;; note: source file ./src/kracht/web.scm
;;;       newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/web.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/web.scm.go
;;; note: source file ./src/kracht/html-entities.scm
;;;       newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/html-entities.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/html-entities.scm.go
;;; note: source file ./src/kracht/io.scm
;;;       newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/io.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/io.scm.go
;;; note: source file ./src/kracht/prelude.scm
;;;       newer than compiled /gnu/store/397y8x0mk0blvzc4wq74zszyqf43c6i2-profile/lib/guile/3.0/site-ccache/kracht/prelude.go
;;; found fresh local cache at /root/.cache/guile/ccache/3.0-LE-8-4.7/etc/byggsteg/job-clone/kracht/trunk/src/kracht/prelude.scm.go

    [assert] empty string
    [pass] got: 
    [assert] three bytes need no padding
    [pass] got: Zm9v
    [assert] one byte needs two padding chars
    [pass] got: Zg==
  [test] shuffle-fy preserves the elements
    [assert] a shuffled range is still the range
    [pass] got: (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49)
    [assert] empty list
    [pass] got: ()
    [assert] single element list
    [pass] got: (1)
    [assert] the same seed yields the same order
    [pass] got: (10 3 9 6 13 15 8 18 19 0 4 12 7 11 2 5 14 17 16 1)
  [test] base64 round trips
    [assert] embedded heredoc-looking terminator is safe
    [pass] got: x
EOFEOF
y
    [assert] ascii
    [pass] got: hello world
    [assert] whitespace in the encoded input is ignored
    [pass] got: hello
    [assert] newlines inside the payload
    [pass] got: line one
line two
    [assert] utf-8
    [pass] got: héllo wörld áéíóú
  [test] html escaping covers the HTML-significant characters
    [assert] legacy entities are still decoded
    [pass] got: a/b*c$%
    [assert] ampersand is escaped
    [pass] got: a & b
    [assert] escaping is not idempotent
    [pass] got: &
    [assert] unknown entity left untouched
    [pass] got: &unknown;
    [assert] numeric character references are decoded
    [pass] got: '&
    [assert] slashes, stars, dollars and percent are left alone
    [pass] got: a/b*c$%
    [assert] both quote styles are escaped
    [pass] got: "x" 'y'
    [assert] angle brackets are escaped
    [pass] got: <script>
    [assert] uppercase legacy entities are decoded
    [pass] got: &<>"
    [assert] malformed numeric references are untouched
    [pass] got: &#; &#x; � &#xg;
  [test] shuffle-fy does not mutate its input
    [assert] the original list is unchanged
    [pass] got: (1 2 3 4 5)
  [test] base64-decode known vectors
    [assert] padded one byte
    [pass] got: f
    [assert] hello world
    [pass] got: hello world
    [assert] empty string
    [pass] got: 
    [assert] unpadded three bytes
    [pass] got: foo
    [assert] padded two bytes
    [pass] got: fo
  [test] SQL literal escaping
    [assert] value->sql-literal escapes quotes
    [pass] got: 'O''Brien'
    [assert] value->sql-literal boolean true
    [pass] got: 1
    [assert] pair->sql-assignment keeps numbers raw
    [pass] got: age = 30
    [assert] value->sql-literal boolean false
    [pass] got: 0
    [assert] value->sql-literal plain string
    [pass] got: 'hello'
    [assert] quote-sql-identifier doubles embedded quotes
    [pass] got: "we""ird"
    [assert] pair->sql-assignment escapes quotes
    [pass] got: name = 'O''Brien'
    [assert] quote-sql-identifier wraps a symbol
    [pass] got: "select"
    [assert] value->sql-literal number
    [pass] got: 42
    [assert] escape-sql-string doubles backslashes on request
    [pass] got: a\\b''c
    [assert] escape-sql-string doubles quotes
    [pass] got: O''Brien
    [assert] escape-sql-string rejects NUL
    [pass] got: rejected
    [assert] pair->sql-assignment hyphenated column
    [pass] got: first_name = 'Josep'
  [test] file read/write helpers
    [assert] read-file-string returns exact contents
    [pass] got: line 1
line 2

    [assert] write-file-string returns the character count
    [pass] got: 14
    [assert] cleanup the temporary file
    [pass] success running without errors
[info] ran 7 tasks in: 0 seconds, 75709 microseconds

finished running tests


--------------------------------------------------------------

Maak: the infinitely extensible command runner

Loading tasks from Maak file: /etc/byggsteg/job-clone/kracht/trunk/maak.scm

Executing Maak tasks: test

--------------------------------------------------------------

=> Running Maak task: test

  Run project's tests.

→ running command: cd /etc/byggsteg/job-clone/kracht/trunk && sudo maak deploy

API documentation saved to doc/api
index.texi: warning: must specify a title with a title command or @top
renamed './index' -> './doc/api-dist'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/API.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fhtml_002dentities.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fio.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005flists.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fprelude.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fsql.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fstrings.html'
removed '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fweb.html'
removed directory '/srv/http/jointhefreeworld.org/api-docs/kracht'
mkdir: created directory '/srv/http/jointhefreeworld.org/api-docs/kracht'
renamed 'doc/api-dist/API.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/API.html'
renamed 'doc/api-dist/kracht_005fhtml_002dentities.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fhtml_002dentities.html'
renamed 'doc/api-dist/kracht_005fio.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fio.html'
renamed 'doc/api-dist/kracht_005flists.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005flists.html'
renamed 'doc/api-dist/kracht_005fprelude.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fprelude.html'
renamed 'doc/api-dist/kracht_005fsql.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fsql.html'
renamed 'doc/api-dist/kracht_005fstrings.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fstrings.html'
renamed 'doc/api-dist/kracht_005fweb.html' -> '/srv/http/jointhefreeworld.org/api-docs/kracht/kracht_005fweb.html'
removed 'doc/api/index.texi'
removed directory 'doc/api'
removed directory 'doc/api-dist'
removed directory 'doc'


--------------------------------------------------------------

Maak: the infinitely extensible command runner

Loading tasks from Maak file: /etc/byggsteg/job-clone/kracht/trunk/maak.scm

Executing Maak tasks: deploy

--------------------------------------------------------------

=> Running Maak task: deploy

  Generate documentation for the project and publish to web directory.
inspect the job's lambda expression
(lambda()
  `((task . ("maak-test" "maak-deploy"))
    (project . "kracht")
    (branch-name . "trunk")
    (clone-url . "https://codeberg.org/jjba23/kracht.git")
    (env . ((VERITAS_REPORTER . monotone-reporter)))))