You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Install sqllogictest cli tool. Run cargo install sqllogictest-bin so that sqllogictest executable is available inside PATH.
start the sql test
run sudo rm -rf /var/infinity/* to remove all previous data.
run infinity, so the database is ready for test.
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
Install infinity-sdk from PYPI or compiled from source code.
run 'python3 ./tools/run_pysdk_local_infinity_test.py'
Run Infinity server test
Install infinity-sdk from PYPI or compiled from source code.
run 'python3 ./tools/run_pysdk_remote_infinity_test.py'