Changeset 4972 for trunk/src/win32k/test
- Timestamp:
- Jan 19, 2001, 3:28:53 AM (25 years ago)
- Location:
- trunk/src/win32k/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/test/TestKernels.cmd
r4164 r4972 1 /* $Id: TestKernels.cmd,v 1. 2 2000-09-02 21:08:18bird Exp $1 /* $Id: TestKernels.cmd,v 1.3 2001-01-19 02:28:33 bird Exp $ 2 2 * 3 3 * This script loops thru a set of different kernels running testcase 1. … … 54 54 iterate 55 55 56 iBuild = substr(sName, 1, length(sName) - 2); 57 chBuildType = substr(sName, length(sName) - 1, 1); 58 chKernelType = substr(sName, length(sName), 1); 56 if (substr(sName, 5, 1) <= '9') then cchBuild = 5; 57 else cchBuild = 4; 58 iBuild = substr(sName, 1, cchBuild); 59 chBuildType = substr(sName, cchBuild + 1, 1); 60 chKernelType = substr(sName, cchBuild + 2, 1); 61 chRev = substr(sName, cchBuild + 3, 1); 59 62 60 63 /* … … 108 111 say 'Processing' asFiles.i'....'; 109 112 if (chBuildType = 'R') then 110 'win32ktst.exe 1' asFiles.i iVerMajor iVerMinor iBuild chKernelType chBuildType;113 sCmd = 'win32ktst.exe 1' asFiles.i iVerMajor iVerMinor iBuild chKernelType chBuildType chRev ; 111 114 else 112 'win32ktst.exe 1' asFiles.i iVerMajor iVerMinor iBuild chKernelType chBuildType asFiles.i||'.SYM'; 115 sCmd = 'win32ktst.exe 1' asFiles.i iVerMajor iVerMinor iBuild chKernelType chBuildType chRev asFiles.i||'.SYM'; 116 say sCmd; 117 sCmd; 113 118 if (rc <> 0) then 114 119 do -
trunk/src/win32k/test/win32ktst.c
r4810 r4972 1 /* $Id: win32ktst.c,v 1. 5 2000-12-16 23:03:32bird Exp $1 /* $Id: win32ktst.c,v 1.6 2001-01-19 02:28:33 bird Exp $ 2 2 * 3 3 * Win32k test module. … … 598 598 * Checks that default initiation works fine for a given kernel. 599 599 * 600 * Syntax: win32ktst.exe 1 <os2krnl> <majorver> <minorver> <build> <kerneltype: S|U|4> <buildtype: A|H|R> [ os2krnl.sym]600 * Syntax: win32ktst.exe 1 <os2krnl> <majorver> <minorver> <build> <kerneltype: S|U|4> <buildtype: A|H|R> [rev] [os2krnl.sym] 601 601 * 602 602 * @sketch Create init packet with no arguments. … … 616 616 617 617 /* verify argument count */ 618 if (argc < 8 || argc > 9)618 if (argc < 8 || argc > 10) 619 619 { 620 620 printf("Invalid parameter count for testcase 1.\n"); … … 628 628 /* make init string */ 629 629 strcpy(szInitArgs, "-w3"); 630 if (argc >= 9 )631 strcat(strcat(szInitArgs, " -S:"), argv[ 8]);630 if (argc >= 9 && argv[argc-1][1] != '\0') 631 strcat(strcat(szInitArgs, " -S:"), argv[argc-1]); 632 632 633 633 /* $elf */ … … 647 647 opt.fKernel = (argv[6][0] == 'S' ? KF_SMP : (argv[6][0] == '4' ? KF_W4 | KF_UNI : KF_UNI)) 648 648 | (argv[7][0] == 'A' || argv[7][0] == 'H' ? KF_DEBUG : 0); 649 if (argc >= 9 && argv[8][1] == '\0') 650 switch (argv[8][0]) 651 { 652 case 'a': case 'A': opt.fKernel |= KF_REV_A; break; 653 case 'b': case 'B': opt.fKernel |= KF_REV_B; break; 654 case 'c': case 'C': opt.fKernel |= KF_REV_C; break; 655 default: 656 opt.fKernel = (argv[8][0] - (argv[8][0] >= 'a' ? 'a'-1 : 'A'-1)) << KF_REV_SHIFT; 657 } 649 658 opt.ulBuild = atoi(argv[5]); 650 659 opt.usVerMajor = (USHORT)atoi(argv[3]); … … 912 921 { 913 922 if (options.fKernel != pOpt->fKernel) 914 printf("fKernel = % d - should be %d\n", options.fKernel, pOpt->fKernel, rc++);923 printf("fKernel = %x - should be %x\n", options.fKernel, pOpt->fKernel, rc++); 915 924 if (options.ulBuild != pOpt->ulBuild) 916 925 printf("ulBuild = %d - should be %d\n", options.ulBuild, pOpt->ulBuild, rc++);
Note:
See TracChangeset
for help on using the changeset viewer.