Changeset 3893 in CLRX


Ignore:
Timestamp:
Mar 12, 2018, 5:07:15 PM (9 months ago)
Author:
matszpk
Message:

CLRadeonExtender: Add testSuiteId to test messages.

Location:
CLRadeonExtender/trunk/tests/amdasm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/tests/amdasm/AsmRegAlloc.cpp

    r3887 r3893  
    124124}
    125125
    126 static void testCreateSSAData(cxuint i, const AsmSSADataCase& testCase)
     126static void testCreateSSAData(cxuint testSuiteId, cxuint i, const AsmSSADataCase& testCase)
    127127{
    128128    std::cout << "-----------------------------------------------\n"
     
    151151    const std::vector<CodeBlock>& resCodeBlocks = regAlloc.getCodeBlocks();
    152152    std::ostringstream oss;
    153     oss << " testAsmSSADataCase#" << i;
     153    oss << " testAsmSSAData" << testSuiteId << " case#" << i;
    154154    const std::string testCaseName = oss.str();
    155155    assertValue<bool>("testAsmSSAData", testCaseName+".good",
     
    299299    for (size_t i = 0; ssaDataTestCases1Tbl[i].input!=nullptr; i++)
    300300        try
    301         { testCreateSSAData(i, ssaDataTestCases1Tbl[i]); }
     301        { testCreateSSAData(0, i, ssaDataTestCases1Tbl[i]); }
    302302        catch(const std::exception& ex)
    303303        {
     
    307307    for (size_t i = 0; ssaDataTestCases2Tbl[i].input!=nullptr; i++)
    308308        try
    309         { testCreateSSAData(i, ssaDataTestCases2Tbl[i]); }
     309        { testCreateSSAData(1, i, ssaDataTestCases2Tbl[i]); }
    310310        catch(const std::exception& ex)
    311311        {
  • CLRadeonExtender/trunk/tests/amdasm/AssemblerBasics.cpp

    r3575 r3893  
    5050}
    5151
    52 static void testAssembler(cxuint testId, const AsmTestCase& testCase)
     52static void testAssembler(cxuint testSuiteId, cxuint testId, const AsmTestCase& testCase)
    5353{
    5454    std::istringstream input(testCase.input);
     
    6767    /* compare results */
    6868    char testName[30];
    69     snprintf(testName, 30, "Test #%u", testId);
     69    snprintf(testName, 30, "Test%u #%u", testSuiteId, testId);
    7070   
    7171    // check whether good, format, device, bitness is match
     
    160160    for (size_t i = 0; asmTestCases1Tbl[i].input != nullptr; i++)
    161161        try
    162         { testAssembler(i, asmTestCases1Tbl[i]); }
     162        { testAssembler(0, i, asmTestCases1Tbl[i]); }
    163163        catch(const std::exception& ex)
    164164        {
     
    168168    for (size_t i = 0; asmTestCases2Tbl[i].input != nullptr; i++)
    169169        try
    170         { testAssembler(i, asmTestCases2Tbl[i]); }
     170        { testAssembler(1, i, asmTestCases2Tbl[i]); }
    171171        catch(const std::exception& ex)
    172172        {
Note: See TracChangeset for help on using the changeset viewer.