<commit_before>#!/usr/bin/env gxi
;; -*- Gerbil -*-

(import :std/test
        "build-config"
        "generic-test"
        "iter-test"
        "event-test"
        "misc/string-test"
        "misc/list-test"
        "misc/channel-test"
        "misc/lru-test"
        "text/csv-test"
        "text/json-test"
        "text/utf8-test"
        "actor/xdr-test"
        "actor-test"
        "net/httpd-test"
        "net/sasl-test")

(cond-expand
  (config-have-sqlite
   (import "db/sqlite-test")))

(cond-expand
  (config-have-lmdb
   (import "db/lmdb-test")))

(cond-expand
  (config-have-leveldb
   (import "db/leveldb-test")))

(cond-expand
  ((or linux bsd)
   (import "net/socket/server-test")))
  (linux
   (import "os/signalfd-test"
           "os/signal-handler-test")))

(def tests
  [generic-runtime-test generic-macro-test
   iter-test
   event-test
   csv-test
   json-test
   utf8-test
   string-test
   list-test
   channel-test
   lru-test
   actor-xdr-test
   actor-rpc-test actor-rpc-stream-test
   httpd-test
   sasl-test
   (if config-enable-sqlite [sqlite-test] []) ...
   (if config-enable-lmdb [lmdb-test] []) ...
   (if config-enable-leveldb [leveldb-test] []) ...
   (cond-expand
     ((or linux bsd)
      [socket-server-test])
     (else []))
   ...
   (cond-expand
     (linux [signalfd-test signal-handler-test])
     (else []))
   ...
   ])

(apply run-tests! tests)
(test-report-summary!)

(case (test-result)
  ((OK) (exit 0))
  (else (exit 1)))
<commit_msg>std/run-tests: fix bad merge<commit_after>#!/usr/bin/env gxi
;; -*- Gerbil -*-

(import :std/test
        "build-config"
        "generic-test"
        "iter-test"
        "event-test"
        "misc/string-test"
        "misc/list-test"
        "misc/channel-test"
        "misc/lru-test"
        "text/csv-test"
        "text/json-test"
        "text/utf8-test"
        "actor/xdr-test"
        "actor-test"
        "net/httpd-test"
        "net/sasl-test")

(cond-expand
  (config-have-sqlite
   (import "db/sqlite-test")))

(cond-expand
  (config-have-lmdb
   (import "db/lmdb-test")))

(cond-expand
  (config-have-leveldb
   (import "db/leveldb-test")))

(cond-expand
  ((or linux bsd)
   (import "net/socket/server-test")))

(cond-expand
  (linux
   (import "os/signalfd-test"
           "os/signal-handler-test")))

(def tests
  [generic-runtime-test generic-macro-test
   iter-test
   event-test
   csv-test
   json-test
   utf8-test
   string-test
   list-test
   channel-test
   lru-test
   actor-xdr-test
   actor-rpc-test actor-rpc-stream-test
   httpd-test
   sasl-test
   (if config-enable-sqlite [sqlite-test] []) ...
   (if config-enable-lmdb [lmdb-test] []) ...
   (if config-enable-leveldb [leveldb-test] []) ...
   (cond-expand
     ((or linux bsd)
      [socket-server-test])
     (else []))
   ...
   (cond-expand
     (linux [signalfd-test signal-handler-test])
     (else []))
   ...
   ])

(apply run-tests! tests)
(test-report-summary!)

(case (test-result)
  ((OK) (exit 0))
  (else (exit 1)))

{'fraction_non_alphanumeric': 0.17647058823529413, 'fraction_numerical': 0.0026586905948820204, 'mean_word_length': 2.112719751809721, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5246626', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1156, 'n_words': 188}