Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added example for running multiple specific positive query tests.

...

  • build/ql/test/TEST-org.apache.hadoop.hive.cli.TestCliDriver.txt - Log output for the test. This can be helpful when examining test failures.
  • build/ql/test/logs/groupby1.q.out - Actual query result for the test. This result is compared to the expected result as part of the test.

Run the set of unit tests matching a regex, e.g. partition_wise_fileformat tests 10-16:

Code Block

ant test -Dtestcase=TestCliDriver -Dqfile_regex=partition_wise_fileformat1[0-6]

Note that this option matches against the basename of the test without the .q suffix.

Apparently the hive tests do not run successfully after a clean unless you run ant package first. Not sure why build.xml doesn't encode this dependency.

...