?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. ; test-coverage cases not covered by regular tests
  2.  
  3.     DEVICE ZXSPECTRUM48                     ; errors about wrong device
  4.     SAVECDT EMPTY "BadDevice.cdt"
  5.     SAVECDT FULL "BadDevice.cdt"
  6.     SAVECDT BASIC "BadDevice.cdt"
  7.     SAVECDT CODE "BadDevice.cdt"
  8.     SAVECDT HEADLESS "BadDevice.cdt"
  9.     SAVECDT INVALID "BadDevice.cdt"
  10.  
  11.     DEVICE NONE
  12.     SAVECDT EMPTY "NoDevice.cdt"            ; error about none device
  13.  
  14.     DEVICE AMSTRADCPC464
  15.     SAVECDT INVALID "BadDevice.cdt"         ; invalid sub-command
  16.     ; empty filename
  17.     SAVECDT EMPTY
  18.     SAVECDT EMPTY ""
  19.     SAVECDT FULL
  20.  
  21.     ; BASIC syntax errors
  22.     SAVECDT BASIC "some.cdt"
  23.     SAVECDT BASIC "some.cdt",
  24.     SAVECDT BASIC "some.cdt",""
  25.     SAVECDT BASIC "some.cdt","",
  26.     SAVECDT BASIC "some.cdt","",0
  27.     SAVECDT BASIC "some.cdt","",0,
  28.     SAVECDT BASIC "some.cdt","",0,1,
  29.     SAVECDT BASIC "some.cdt","",0,&
  30.     SAVECDT BASIC "some.cdt","b1",-1,1 ; invalid start address
  31.     SAVECDT BASIC "some.cdt","b2",0x1234,0 ; invalid length
  32.     SAVECDT BASIC "some.cdt","b3",0xFFFF,2 ; invalid start+length
  33.     SAVECDT BASIC "some.cdt","b4",0,0x10000 ; invalid length (64ki block is not possible)
  34.  
  35.     ; CODE syntax errors
  36.     SAVECDT CODE "some.cdt"
  37.     SAVECDT CODE "some.cdt",
  38.     SAVECDT CODE "some.cdt",""
  39.     SAVECDT CODE "some.cdt","",
  40.     SAVECDT CODE "some.cdt","",0
  41.     SAVECDT CODE "some.cdt","",0,
  42.     SAVECDT CODE "some.cdt","",0,&
  43.     SAVECDT CODE "some.cdt","",0,1,
  44.     SAVECDT CODE "some.cdt","",0,1,&
  45.     SAVECDT CODE "some.cdt","",0,1,0,
  46.     SAVECDT CODE "some.cdt","c1",-1,1 ; invalid start address
  47.     SAVECDT CODE "some.cdt","c2",0x1234,0 ; invalid length
  48.     SAVECDT CODE "some.cdt","c3",0xFFFF,2 ; invalid start+length
  49.     SAVECDT CODE "some.cdt","c4",0,0x10000 ; invalid length (64ki block is not possible)
  50.  
  51.     ; HEADLESS syntax errors, invalid values
  52.     SAVECDT HEADLESS "some.cdt"
  53.     SAVECDT HEADLESS "some.cdt",
  54.     SAVECDT HEADLESS "some.cdt",0
  55.     SAVECDT HEADLESS "some.cdt",0,
  56.     SAVECDT HEADLESS "some.cdt",0,&
  57.     SAVECDT HEADLESS "some.cdt",0,1,
  58.     SAVECDT HEADLESS "some.cdt",0,1,&
  59.     SAVECDT HEADLESS "some.cdt",0,1,0,
  60.     SAVECDT HEADLESS "some.cdt",0,1,0,2
  61.     SAVECDT HEADLESS "some.cdt",0,1,0,0,
  62.     SAVECDT HEADLESS "some.cdt",-1,1 ; invalid start address
  63.     SAVECDT HEADLESS "some.cdt",0x1234,0 ; invalid length
  64.     SAVECDT HEADLESS "some.cdt",0xFFFF,2 ; invalid start+length
  65.     SAVECDT HEADLESS "some.cdt",0,0x10000 ; invalid length (64ki block is not possible)
  66.  
  67.     ; FULL syntax errors
  68.     SAVECDT FULL "some.cdt",
  69.     SAVECDT FULL "some.cdt",0,
  70.     SAVECDT FULL "some.cdt",0, 0,0, 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
  71.     ; not testing dangling comma after each optional value... it works, really...
  72.     SAVECDT FULL "some.cdt" ; snapshot of empty machine => error "could not determine the end of the program"
  73.  
  74.     ; try specific variants (depending on DEVICE state) also in CPC 6128 device
  75.     DEVICE AMSTRADCPC6128
  76.     SAVECDT FULL "some.cdt" ; snapshot of empty machine => error "could not determine the end of the program"
  77.