THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
# For the back-end tests, the Impala cluster must not be running: ./bin/start-impala-cluster.py --kill ./bin/run-backend-tests.sh # or ctest # To run just one test (and show what broke): ctest --output-on-failure -R expr-test # You can also run just a single test at a time. If this hangs, be sure # that you've run set-classpath.sh before-hand. # You can then use command line parameters to run a subset of tests: # To get help with parameters: be/build/latest/runtime/mem-pool-test --help # To run just one test within a test: be/build/latest/runtime/mem-pool-test --gtest_filter=MemPoolTest.TryAllocateAligned |
Run
...
most end-to-end tests
Code Block | ||
---|---|---|
| ||
# For the end-to-end tests, Impala must be running: ./bin/start-impala-cluster.py ./tests/run-tests.py # To run the tests in just one directory: ./tests/run-tests.py metadata # To run the tests in that directory with a matching name: ./tests/run-tests.py metadata -k test_partition_metadata_compatibility # To run the tests in a file with a matching name: ./tests/run-tests.py query_test/test_insert.py -k test_limit # To run the tests that don't match a name: ./tests/run-tests.py query_test/test_insert.py -k "-test_limit". # To run the tests with more restrictive name-matching ./bin/impala-py.test tests/shell/test_shell_commandline.py::TestImpalaShell::test_multiple_queries # To run tests only against a specific file format(s): ./tests/run-tests.py --file_format_filter="seq,text" # To change the impalad instance to connect to (default is localhost:21000): ./tests/run-tests.py --impalad=hostname:port # To use a different exploration strategy (default is core): ./tests/run-tests.py --exploration_strategy=exhaustive # To update the results of tests (The new test files will be located in ${IMPALA_EE_TEST_LOGS_DIR}/test_file_name.test): ./tests/run-tests.py --update_results |
Run custom cluster tests
Code Block |
---|
# To run all custom cluster tests:
./tests/run-custom-cluster-tests.sh
# To run specific custom cluster tests:
impala-py.test tests/custom_cluster/test_alloc_fail.py |
Run stress test
Code Block | ||
---|---|---|
| ||
# Run 10000 TPC-H queries on your 3-daemon minicluster against the tpch_parquet database with # memory overcommitted 300%. Tolerate up to 100 query failures in a row. Assumes that a minicluster # has been started with 3 impalads (the default). ./tests/stress/concurrent_select.py --minicluster-num-impalads 3 --max-queries=10000 --tpch-db=tpch_parquet --mem-overcommit-pct=300 --fail-upon-successive-errors 100 # For more options: ./tests/stress/concurrent_select.py --help |
...