
# This is in here because debug plugins differ depending on the platform
NAME=Print the debug plugins
FILE==
CMDS=Ld
EXPECT=<<EOF
0  ---  bf       LGPL3
1  ---  bochs    LGPL3
2  ---  dmp      LGPL3
3  ---  gdb      LGPL3
4  ---  io       MIT
5  dbg  native   LGPL3
6  ---  null     MIT
7  ---  qnx      LGPL3
8  ---  winkd    LGPL3
EOF
RUN

NAME=Print the debug plugins in JSON
FILE==
CMDS=<<EOF
Ldj~{[0]}
Ldj~{[1]}
Ldj~{[2]}
Ldj~{[3]}
Ldj~{[4]}
Ldj~{[5]}
Ldj~{[6]}
Ldj~{[7]}
Ldj~{[8].name}
Ldj~{[8].license}
EOF
EXPECT=<<EOF
{"arch":"bf","name":"bf","bits":"32 64","license":"LGPL3","version":""}
{"arch":"x86","name":"bochs","bits":"16 32 64","license":"LGPL3","version":""}
{"arch":"x86,arm","name":"dmp","bits":"32 64","license":"LGPL3","version":""}
{"arch":"x86,arm,sh,mips,avr,lm32,v850,ba2,tricore","name":"gdb","bits":"16 32 64","license":"LGPL3","version":""}
{"arch":"any","name":"io","bits":"32 64","license":"MIT","version":""}
{"arch":"x86","name":"native","bits":"32 64","license":"LGPL3","version":"","selected":true}
{"arch":"any","name":"null","bits":"32 64","license":"MIT","version":""}
{"arch":"x86,arm","name":"qnx","bits":"32 ","license":"LGPL3","version":""}
winkd
LGPL3
EOF
RUN
