Example #1
0
 def test_select_where_withoutfile(self):
     SQL = SELECT.create_sql_select_where()
     pgres = dbop.sql_exe_pg('../peloton_test.conf', SQL)
     ptres = dbop.sql_exe_pt('../peloton_test.conf', SQL)
     selt.assertTrue(pgres)
Example #2
0
def test_in_noanyindex():
    SQL = IN.create_sql_in_noanyindex()
    pgfile = dbop.sql_exe_pg('../peloton_test.conf', SQL, 'in_noanyindex.out')
    ptfile = dbop.sql_exe_pt('../peloton_test.conf', SQL, 'in_noanyindex.out')
    res = fileop.compare_results(pgfile, ptfile)
    assert(res == True)
Example #3
0
def test_select_where_withoutfile():
    SQL = SELECT.create_sql_select_where()
    pgres = dbop.sql_exe_pg('../peloton_test.conf', SQL)
    ptres = dbop.sql_exe_pt('../peloton_test.conf', SQL)
    assert(pgres == ptres)
Example #4
0
def test_in_noanyindex():
    SQL = IN.create_sql_in_noanyindex()
    pgfile = dbop.sql_exe_pg('../peloton_test.conf', SQL, 'in_noanyindex.out')
    ptfile = dbop.sql_exe_pt('../peloton_test.conf', SQL, 'in_noanyindex.out')
    res = fileop.compare_results(pgfile, ptfile)
    assert(res == True)