public class TestScripts extends BaseTest
| Constructor and Description |
|---|
TestScripts() |
| Modifier and Type | Method and Description |
|---|---|
static void |
initialSetup() |
void |
testBadSiteDir() |
void |
testClassPath()
Use the "stock" setup, but add each custom bit of the class path to ensure
it is passed to the Drillbit.
|
void |
testDistribEnv()
Repeat the above test using distrib-env.sh in the $DRILL_HOME/conf
location.
|
void |
testDistribEnvWithNegativeCond() |
void |
testDistribEnvWithPositiveCond() |
void |
testDrillAndDistribEnv()
Test that drill-env.sh overrides distrib-env.sh, and that the environment
overrides both.
|
void |
testDrillbitSymlink()
Some distributions create symlinks to drillbit.sh in standard locations
such as /usr/bin.
|
void |
testDrillEnv()
Try setting custom environment variable values in drill-env.sh in the
$DRILL_HOME/conf location.
|
void |
testForcedKill()
Simulate a Drillbit that refuses to die.
|
void |
testJavaLibDir()
Test the Java library path.
|
void |
testLibPath()
Create a custom Java lib path.
|
void |
testLogDir()
Create a custom log folder location.
|
void |
testLogDirWithDaemon()
Launch the Drill daemon using a custom log file location.
|
void |
testPidDir()
The Daemon process creates a pid file.
|
void |
testRestart()
Test the restart command of drillbit.sh
|
void |
testSiteDir()
Move configuration to a site folder out of $DRILL_HOME/conf.
|
void |
testSiteDirWithDaemon()
Test a custom site directory with the Drill daemon process.
|
void |
testSqlline()
Verify the basics of the sqlline script, including the env vars that can be
customized.
|
void |
testSqllineSiteDir()
Verify that the sqlline client works with the --site option by customizing
items in the site directory.
|
void |
testSqllineWithDrillbitContextEnv()
Test to verify no effect of DRILLBIT_CONTEXT for Sqlline.
|
void |
testSqllineWrappers()
Tests the three scripts that wrap sqlline for specific purposes:
drill-conf — Wrapper for sqlline, uses drill config to find Drill.
|
void |
testStockCombined()
Test the simplest case: use the $DRILL_HOME/conf directory and default log
location.
|
void |
testStockDaemon()
Test running a (simulated) Drillbit as a daemon with start, status, stop.
|
void |
testStockDaemonWithArg() |
public static void initialSetup()
throws IOException
IOExceptionpublic void testStockCombined()
throws IOException
IOExceptionpublic void testClassPath()
throws IOException
IOExceptionpublic void testLogDir()
throws IOException
IOExceptionpublic void testLibPath()
throws IOException
IOExceptionpublic void testDrillEnv()
throws IOException
IOExceptionpublic void testDistribEnv()
throws IOException
IOExceptionpublic void testDistribEnvWithNegativeCond()
throws IOException
IOExceptionpublic void testDistribEnvWithPositiveCond()
throws IOException
IOExceptionpublic void testDrillAndDistribEnv()
throws IOException
IOExceptionpublic void testBadSiteDir()
throws IOException
IOExceptionpublic void testSiteDir()
throws IOException
IOExceptionpublic void testJavaLibDir()
throws IOException
IOExceptionpublic void testStockDaemon()
throws IOException
IOExceptionpublic void testStockDaemonWithArg()
throws IOException
IOExceptionpublic void testPidDir()
throws IOException
IOExceptionpublic void testSiteDirWithDaemon()
throws IOException
IOExceptionpublic void testLogDirWithDaemon()
throws IOException
IOExceptionpublic void testDrillbitSymlink()
throws IOException
IOExceptionpublic void testRestart()
throws IOException
IOExceptionpublic void testForcedKill()
throws IOException
IOExceptionpublic void testSqlline()
throws IOException
IOExceptionpublic void testSqllineWithDrillbitContextEnv()
throws IOException
IOExceptionpublic void testSqllineSiteDir()
throws IOException
IOExceptionpublic void testSqllineWrappers()
throws IOException
Because the scripts are simple wrappers, all we do is verify that the right "extra" options are set, not the fundamentals (which were already covered in the sqlline tests.)
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.