示例#1
0
 def test_select_all(self):
     SQL = SELECT.create_sql_select_all()
     pgfile = dbop.sql_exe_pg_tofile('../peloton_test.conf', SQL, 'select_all.out')
     ptfile = dbop.sql_exe_pt_tofile('../peloton_test.conf', SQL, 'select_all.out')
     res = fileop.compare_results(pgfile, ptfile)
     self.assertTrue(res)
示例#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)
示例#3
0
def test_select_all():
    SQL = SELECT.create_sql_select_all()
    pgfile = dbop.sql_exe_pg_tofile('../peloton_test.conf', SQL, 'select_all.out')
    ptfile = dbop.sql_exe_pt_tofile('../peloton_test.conf', SQL, 'select_all.out')
    res = fileop.compare_results(pgfile, ptfile)
    assert(res == True)
示例#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)