{
    "module": "serialbus",
    "testDir": "../../config.tests",

    "tests": {
        "socketcan": {
            "label": "Socket CAN",
            "type": "compile",
            "test": "socketcan"
        },
        "socketcan_fd": {
            "label": "Socket CAN FD",
            "type": "compile",
            "test": "socketcan_fd"
        }
    },

    "features": {
        "socketcan": {
            "label": "Socket CAN",
            "condition": "config.linux && tests.socketcan",
            "output": [ "privateFeature" ]
        },
        "socketcan_fd": {
            "label": "Socket CAN FD",
            "condition": "config.linux && features.socketcan && tests.socketcan_fd",
            "output": [ "privateFeature"]
        }
    },

    "report": [
        {
            "type": "note",
            "condition": "config.linux && !features.socketcan",
            "message": "QtSerialBus: Cannot find linux/can.h and linux/can/raw.h Linux headers for socketCAN support."
        },
        {
            "type": "note",
            "condition": "config.linux && features.socketcan && !features.socketcan_fd",
            "message": "QtSerialBus: Newer kernel needed for flexible data-rate frame support (canfd_frame)."
        }
    ],

    "summary": [
        {
            "section": "Qt SerialBus",
            "entries": [
                "socketcan",
                "socketcan_fd"
            ]
        }
    ]
}
