Skip to content

Latest commit

 

History

History
 
 

tools

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

how to run slt test

directory structure

  • tools/sqllogicaltest.py is the main script to run slt test. It will call other python script to generate test data and call sqllogictest cli tool to run the test cases.
  • test/data/sql contains slt files. slt file records the test process used by sqllogictest cli tool.
  • test/data/csv contains csv files. some slt files may use csv files to create table.

prerequisite

  1. Install rust.
  2. Install sqllogictest cli tool. Run cargo install sqllogictest-bin so that sqllogictest executable is available inside PATH.

start the sql test

  1. run sudo rm -rf /var/infinity/* to remove all previous data.
  2. run infinity, so the database is ready for test.
  3. run python3 ./tools/sqllogictest.py under the root path of infinity project.
    This python script will first call generate_big.py, generate_fvecs.py and so on to generate big test file under coresponding directory, then call sqllogictest cli tool to run the test cases. The cli tools will compare the actual result of infinity and result in slt file. Difference will be marked RED. Only when all slt test is passed, the test is passed.

start Python SDK test

Run the embedded Infinity test

  1. Install infinity-sdk from PYPI or compiled from source code.
  2. run 'python3 ./tools/run_pysdk_local_infinity_test.py'

Run Infinity server test

  1. Install infinity-sdk from PYPI or compiled from source code.
  2. run 'python3 ./tools/run_pysdk_remote_infinity_test.py'