qiprog: Move device tests to a separate file

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
qiprog: Fix copy-paste error in debug message

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>