]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
restoring functionality of unit tests
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Jan 2011 08:03:47 +0000 (08:03 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Jan 2011 08:03:47 +0000 (08:03 +0000)
HLT/BASE/test/testAliHLTCTPData.C
HLT/BASE/test/testAliHLTComponent.C
HLT/BASE/util/test/Makefile.am
HLT/BASE/util/test/testAliHLTFileWriter.C

index ede909387fd38faf8bcc2625a22c5a59acce38a4..224e0cd19ebc5ac496d1ba32723df474222c3bf4 100644 (file)
@@ -124,6 +124,7 @@ public:
     fMine=new Byte_t[size];
     memset(fMine, 0, size);
     AliHLTComponentTriggerData* data=reinterpret_cast<AliHLTComponentTriggerData*>(fMine);
+    data->fStructSize=sizeof(AliHLTComponentTriggerData);
     data->fData=fMine+sizeof(AliHLTComponentTriggerData);
     Set(data);
   }
@@ -163,6 +164,7 @@ public:
     fData=data;
     fData->fDataSize=sizeof(AliHLTEventTriggerData);
     fEventData=reinterpret_cast<AliHLTEventTriggerData*>(fData->fData);
+    fEventData->fCommonHeaderWordCnt=gkAliHLTCommonHeaderCount;
     fCDH=fEventData->fCommonHeader;
     return 0;
   }
index 8378edf531de8a70c103782f451e6e2a98673fdc..78c123b3bed5bb378c5eecad75701ad25d8b53d0 100644 (file)
@@ -616,7 +616,7 @@ int testEventProcessing()
   }
 
   // add the test component to the handler
-  pHLT->fpComponentHandler->AddComponent(new AliHLTTestComponent);
+  pHLT->GetComponentHandler()->AddComponent(new AliHLTTestComponent);
 
   // configurattion with just the TestComponent
   AliHLTConfiguration testcomponent("testcomponent", "TestComponent", "", "");
index cbee10415796ec682960de299799955b582f0e4d..46edda50966618339e79a8823fd0a921c74de382 100644 (file)
@@ -11,7 +11,9 @@ check_PROGRAMS        = testAliHLTFileWriter \
                  testAliHLTGlobalBarrelTrack
 
 testAliHLTFileWriter_SOURCES = testAliHLTFileWriter.C
-testAliHLTFileWriter_LDADD = $(top_builddir)/BASE/libHLTbase.la
+testAliHLTFileWriter_LDADD = $(top_builddir)/BASE/libHLTbase.la \
+                                   @ALIROOT_LDFLAGS@ \
+                                   @ALIROOT_LIBS@
 
 testAliHLTGlobalBarrelTrack_SOURCES = testAliHLTGlobalBarrelTrack.C
 testAliHLTGlobalBarrelTrack_LDADD = $(top_builddir)/BASE/libHLTbase.la \
index ca1afac9db0fb1aab03a86d5d0c5dcaedafb62f3..db5b1737db7e7cc6c84e234719f26710575e4caa 100644 (file)
@@ -208,6 +208,11 @@ int testAliHLTFileWriter()
     return iResult;
   }
 
+  if ((iResult=chandler.LoadLibrary("../../../rec/.libs/libHLTrec.so"))<0) {
+    cerr << "failed: loading libHLTrec" << endl;
+    return iResult;
+  }
+
   // create FileWriter component
   AliHLTComponent* pComponent=NULL;
   if ((iResult=chandler.CreateComponent("FileWriter", pComponent))<0) {