如何配置sqlite3的tcltests?

时间:2018-10-20 16:50:53

标签: sqlite tcl tk recipe

出于研究目的,我正在尝试运行sqlite3完整的测试套件。

我正在Linux下运行此测试。

我相信我已经安装了正确的库

sudo apt-get install tcl-dev tk-dev

当我运行configure命令时,它会找到tcl

checking whether to use an in-ram database for temporary tables... no
checking if executables have the .exe suffix... unknown
checking for Tcl configuration... found /usr/lib/tclConfig.sh
checking for existence of /usr/lib/tclConfig.sh... loading
checking for library containing readline... no
checking for library containing tgetent... no
checking for readline in -lreadline... no
checking readline.h usability... no

然后,当我运行make test时,其结尾为:

Time: orderby8.test 5080 ms
Time: orderby9.test 291 ms
Makefile:1201: recipe for target 'tcltest' failed
make: *** [tcltest] Killed

1 个答案:

答案 0 :(得分:1)

很难说,因为您的问题缺少重要的细节:

  • 什么是* nix?
  • 更重要的是,apt安装了哪些Tcl版本?
  • 如何获取sqlite3的来源,包括测试工具?

我刚刚测试了以下内容:

  • Ubuntu Xenial
  • apt-get install tcl tcl-dev(原来是8.6.7)
  • wget https://www.sqlite.org/2018/sqlite-src-3250200.zip
  • unzip sqlite-src-3250200.zip
  • cd sqlite-src-3250200
  • ./configure && make test

...,它成功完成了make test运行:

...
Time: orderby7.test 6 ms
Time: orderby8.test 115 ms
Time: orderby9.test 6 ms
Time: oserror.test 49 ms
...
Time: zipfile2.test 10 ms
SQLite 2018-09-25 19:08:10    fb90e7189ae6d62e77ba3a308ca5d683f90bbe633cf681865365b8e92792d1c7
0 errors out of 147094 tests on builda Linux 64-bit little-endian
All memory allocations freed - no leaks
Maximum memory usage: 9278848 bytes
Current memory usage: 0 bytes
Number of malloc()  : -1 calls

看来oserror.test会导致您遇到的任何Tcl崩溃。