comparison host/tools/configtool/standalone/win32/ConfigToolDoc.cpp @ 82:6736c52df507 ecos-sw-2000-04-14

Merge from eCos master repository on 2000-04-14-13:35:46-BST
author jlarmour
date Tue, 18 Apr 2000 21:51:55 +0000
parents 435cced73e2f
children c37d3a9e1b28
comparison
equal deleted inserted replaced
81:89fef2181d7d 82:6736c52df507
532 void CConfigToolDoc::RunTests() 532 void CConfigToolDoc::RunTests()
533 { 533 {
534 const CString strTarget(CurrentTestingIdentifier()); 534 const CString strTarget(CurrentTestingIdentifier());
535 TRACE (_T("OnRunSim(): test target ID = '%s'\n"), strTarget); 535 TRACE (_T("OnRunSim(): test target ID = '%s'\n"), strTarget);
536 536
537 if (!CeCosTest::IsValid (strTarget)) { 537 if (NULL==CeCosTestPlatform::Get(strTarget)) {
538 if(IDNO==CUtils::MessageBoxFT(MB_YESNO,_T("%s is not a recognized platform - do you wish to add it?"),strTarget)){ 538 if(IDNO==CUtils::MessageBoxFT(MB_YESNO,_T("%s is not a recognized platform - do you wish to add it?"),strTarget)){
539 return; 539 return;
540 } 540 }
541 CPlatformDialog dlg; 541 CPlatformDialog dlg;
542 dlg.m_strPlatform=strTarget; 542 dlg.m_strPlatform=strTarget;
543 dlg.m_strPrefix=CurrentTargetPrefix(); 543 dlg.m_strPrefix=CurrentTargetPrefix();
544 dlg.m_strCaption=_T("New Platform"); 544 dlg.m_strCaption=_T("New Platform");
545 if(IDCANCEL==dlg.DoModal()){ 545 if(IDCANCEL==dlg.DoModal()){
546 return; 546 return;
547 } 547 }
548 CeCosTest::AddPlatform(CeCosTest::TargetInfo(dlg.m_strPlatform,dlg.m_strPrefix,dlg.m_nType,dlg.m_strGDB)); 548 CeCosTestPlatform::Add(CeCosTestPlatform(dlg.m_strPlatform,dlg.m_strPrefix,dlg.m_strPrompt,dlg.m_strGDB,dlg.m_bServerSideGdb,dlg.m_strInferior));
549 CeCosTest::SaveTargetInfo(); 549 CeCosTestPlatform::Save();
550 } 550 }
551 551
552 CFileNameArray ar; 552 CFileNameArray ar;
553 CFileNameArray arTestsMissing; 553 CFileNameArray arTestsMissing;
554 int nTests=GetTestExeNames(ar,arTestsMissing); 554 int nTests=GetTestExeNames(ar,arTestsMissing);