t.testParameters(); t.testInsertUsernameTrigger(); t.testModdatetimeTrigger(); t.testSPIActions(); t.testComplexReturn(); t.testSetReturn(); t.testCallInCall(); t.testCurrentDir(); t.testUsingProperties(); t.testUsingScalarProperties(); t.testUsingResultSetProperties(); t.testSavepointSanity(); t.testTransactionRecovery(); t.testTrustedSecurity(); t.testBinaryColumns(); t.testDatabaseMetaData(); t.testResultSet();
Pattern p = (exclude == null) ? null : Pattern.compile(exclude, Pattern.CASE_INSENSITIVE);  if(p == null || !p.matcher("parameters").matches()) t.testParameters(); if(p == null || !p.matcher("usernametrigger").matches()) t.testInsertUsernameTrigger(); if(p == null || !p.matcher("moddatetimetrigger").matches()) t.testModdatetimeTrigger(); if(p == null || !p.matcher("spiactions").matches()) t.testSPIActions(); if(p == null || !p.matcher("complexreturn").matches()) t.testComplexReturn(); if(p == null || !p.matcher("setreturn").matches()) t.testSetReturn(); if(p == null || !p.matcher("callincall").matches()) t.testCallInCall(); if(p == null || !p.matcher("currentdir").matches()) t.testCurrentDir(); if(p == null || !p.matcher("usingproperties").matches()) t.testUsingProperties(); if(p == null || !p.matcher("usingscalarproperties").matches()) t.testUsingScalarProperties(); if(p == null || !p.matcher("usingresultsetproperties").matches()) t.testUsingResultSetProperties(); if(p == null || !p.matcher("savepointsanity").matches()) t.testSavepointSanity(); if(p == null || !p.matcher("transactionrecovery").matches()) t.testTransactionRecovery(); if(p == null || !p.matcher("trustedsecurity").matches()) t.testTrustedSecurity(); if(p == null || !p.matcher("binarycolumns").matches()) t.testBinaryColumns(); if(p == null || !p.matcher("databasemetadata").matches()) t.testDatabaseMetaData(); if(p == null || !p.matcher("testresultset").matches()) t.testResultSet();
	public static void main(String[] argv)	{		String driverClass = "org.postgresql.Driver";		String hostName    = "localhost";		String portNumber  = null;		String userName    = System.getProperty("user.name", "postgres");		String database    = userName;		String subsystem   = "postgresql";		String password    = null;		boolean debug      = false;		int top = argv.length;		for(int idx = 0; idx < top; ++idx)		{			String arg = argv[idx];			if(arg.length() < 2)			{					printUsage();				return;			}			if(arg.charAt(0) == '-')			{				int optCmd = getCommand(arg.substring(1));				switch(optCmd)				{				case CMD_DEBUG:					debug = true;					break;				case CMD_USER:					if(++idx < top)					{						userName = argv[idx];						if(userName.length() > 0								&& userName.charAt(0) != '-')							break;					}					printUsage();					return;				case CMD_PASSWORD:					if(++idx < top)					{						password = argv[idx];						if(password.length() > 0								&& password.charAt(0) != '-')							break;					}					printUsage();					return;				case CMD_DATABASE:					if(++idx < top)					{						database = argv[idx];						if(database.length() > 0								&& database.charAt(0) != '-')							break;					}					printUsage();					return;				case CMD_HOSTNAME:					if(++idx < top)					{						hostName = argv[idx];						if(hostName.length() > 0								&& hostName.charAt(0) != '-')							break;					}					printUsage();					return;				case CMD_PORT:					if(++idx < top)					{						portNumber = argv[idx];						if(portNumber.length() > 0								&& portNumber.charAt(0) != '-')							break;					}					printUsage();					return;									default:					printUsage();					return;				}			}		}		try		{			Class.forName(driverClass);			StringBuffer cc = new StringBuffer();			cc.append("jdbc:");			cc.append(subsystem);			cc.append("://");			cc.append(hostName);			if(portNumber != null)			{					cc.append(':');				cc.append(portNumber);			}			cc.append('/');			cc.append(database);			Connection c = DriverManager.getConnection(					cc.toString(),					userName,					password);						Tester t = new Tester(c);			if(debug)			{				System.out.println("Attach debugger to backend");				Thread.sleep(30000);				System.out.println("continuing");			}			for(int idx = 0; idx < 10; ++idx)			{				t.testParameters();				t.testInsertUsernameTrigger();				t.testModdatetimeTrigger();				t.testSPIActions();				t.testComplexReturn();				t.testSetReturn();				t.testCallInCall();				t.testCurrentDir();				t.testUsingProperties();				t.testUsingScalarProperties();				t.testUsingResultSetProperties();				t.testSavepointSanity();				t.testTransactionRecovery();				t.testTrustedSecurity();				t.testBinaryColumns();				t.testDatabaseMetaData();				t.testResultSet();			}			t.close();		}		catch(Exception e)		{			e.printStackTrace();		}	}