From: leslie Date: Sun, 14 Mar 2010 03:47:46 +0000 (+0800) Subject: update testing X-Git-Tag: upstream/620~78 X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=b86e44d423148d77405a1ddedeed14571f4c13b0;p=sasc-ng.git update testing --- diff --git a/testing/Makefile b/testing/Makefile index 7aa7489..dd5c34d 100644 --- a/testing/Makefile +++ b/testing/Makefile @@ -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 diff --git a/testing/compat.c b/testing/compat.c index 2d2d385..39c9bd0 100644 --- a/testing/compat.c +++ b/testing/compat.c @@ -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 index 0000000..f69ced7 --- /dev/null +++ b/testing/testINIT.c @@ -0,0 +1,29 @@ + +#include +#include + +#include "data.h" +#include "system.h" +#include "log.h" +#include "compat.h" +#include + +#include +SI::TOT __dummy; + +int main(int argc, char *argv[]) +{ + if(argc<2) { + printf("usage: %s \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; +}