NAME=PE: versioninfo 1
FILE=bins/pe/version_std.exe
CMDS=iV
EXPECT=<<EOF
=== VS_VERSIONINFO ===

# VS_FIXEDFILEINFO

  Signature: 0xfeef04bd
  StrucVersion: 0xffffffff
  FileVersion: 65535.65535.65535.65535
  ProductVersion: 65535.65535.65535.65535
  FileFlagsMask: 0xffffffff
  FileFlags: 0x0
  FileOS: 0x0
  FileType: 0x0
  FileSubType: 0x0

# StringTable

  FileDescription: a PE with "standard" version info
  FileVersion: compulsory for version tab
  LegalCopyright: corkami.com
  StringFileInfo: 
  Comments: 
  CompanyName: 
  InternalName: 
  LegalTrademarks: 
  OriginalFilename: 
  PrivateBuild: 
  ProductName: 
  ProductVersion: 
  SpecialBuild: 
  : 
   : 
   ** EAT AT JOE"S **: best hamburger in town
  FileVersion: duplicates are authorized
EOF
RUN

NAME=PE: versioninfo json
FILE=bins/pe/version_std.exe
CMDS=iVj~{}
EXPECT=<<EOF
{
  "VS_FIXEDFILEINFO": {
    "Signature": 4277077181,
    "StrucVersion": 4294967295,
    "FileVersion": "65535.65535.65535.65535",
    "ProductVersion": "65535.65535.65535.65535",
    "FileFlagsMask": 4294967295,
    "FileFlags": 0,
    "FileOS": 0,
    "FileType": 0,
    "FileSubType": 0
  },
  "StringTable": {
    "FileDescription": "a PE with \"standard\" version info",
    "FileVersion": "compulsory for version tab",
    "LegalCopyright": "corkami.com",
    "StringFileInfo": "",
    "Comments": "",
    "CompanyName": "",
    "InternalName": "",
    "LegalTrademarks": "",
    "OriginalFilename": "",
    "PrivateBuild": "",
    "ProductName": "",
    "ProductVersion": "",
    "SpecialBuild": "",
    "": "",
    " ": "",
    " ** EAT AT JOE\"S **": "best hamburger in town",
    "FileVersion": "duplicates are authorized"
  }
}
EOF
RUN
