]> www.vanbest.org Git - sasc-ng.git/commitdiff
update testing
authorleslie <unknown>
Sun, 14 Mar 2010 03:47:46 +0000 (11:47 +0800)
committerleslie <unknown>
Sun, 14 Mar 2010 03:47:46 +0000 (11:47 +0800)
testing/Makefile
testing/compat.c
testing/testINIT.c [new file with mode: 0644]

index 7aa7489b8e6f819729215b918972245b0815137f..dd5c34df5fa9d841f5d40ffdd63598adb0b0cfc0 100644 (file)
@@ -77,10 +77,14 @@ testExtAU.o: testExtAU.c compat.h
 testExtAU: testExtAU.o $(SHAREDOBJS) $(NOBJS)
        $(CXX) $(CXXFLAGS) -rdynamic $^ $(LIBS) $(DYNLIBS) -o $@
 
+testINIT.o: testINIT.c compat.h
+testINIT: testINIT.o $(SHAREDOBJS) $(NOBJS)
+       $(CXX) $(CXXFLAGS) -rdynamic $^ $(LIBS) $(DYNLIBS) -o $@
+
 filterhelper: filterhelper.o
        $(CXX) $(CXXFLAGS) $^ -o $@
 clean:
        @-rm -f *.o core* *~
-       @-rm -f testECM testEMM testN1Emu testN2Emu testN2RunEmu testTPS testExtAU
+       @-rm -f testECM testEMM testN1Emu testN2Emu testN2RunEmu testTPS testExtAU testINIT
        @-rm -f filterhelper
        @-rm -f dump.txt
index 2d2d3856db29ead03bae47247488ba30f7985efb..39c9bd098e742d1ceb7fc3e050eda211c2ff2fbe 100644 (file)
@@ -175,6 +175,7 @@ void cSoftCAM::SetLogStatus(int CardNum, const cEcmInfo *ecm, bool on) {}
 void cSoftCAM::AddHook(int CardNum, cLogHook *hook) {}
 bool cSoftCAM::TriggerHook(int CardNum, int id) { return true; }
 void cSoftCAM::CaidsChanged(void) {}
+int cSoftCAM::FilterHandle(int CardNum) { return -1; }
 
 //
 //
diff --git a/testing/testINIT.c b/testing/testINIT.c
new file mode 100644 (file)
index 0000000..f69ced7
--- /dev/null
@@ -0,0 +1,29 @@
+
+#include <stdlib.h>
+#include <stdio.h>
+
+#include "data.h"
+#include "system.h"
+#include "log.h"
+#include "compat.h"
+#include <vdr/sources.h>
+
+#include <libsi/section.h>
+SI::TOT __dummy;
+
+int main(int argc, char *argv[])
+{
+  if(argc<2) {
+    printf("usage: %s <lib-dir> <plugin-dir>\n",argv[0]);
+    return 1;
+    }
+  DllsLoad(argv[1]);
+  InitAll(argv[2]);
+  LogAll();
+  cLogging::SetModuleOption(LCLASS(7,0x20<<2),false); // Nagra L_SYS_DISASM
+  cLogging::SetModuleOption(LCLASS(7,0x20<<4),false); // Nagra L_SYS_CPUSTATS
+  cLogging::SetModuleOption(LCLASS(16,0x20<<5),false); // Viacsess L_SYS_DISASM
+
+  getchar();
+  return 0;
+}