[PATCH libdrm 07/10] tests: Add helper to open a device/module