Beispiel #1
0
def test_supported_devices():
    cfpa_devices = CFPA.devices()
    cmpa_devices = CMPA.devices()

    assert sorted(cmpa_devices) == sorted(cfpa_devices)
Beispiel #2
0
def test_cli_devices_global():
    """Test PFR CLI - devices from global space."""
    runner = CliRunner()
    result = runner.invoke(spsdk_apps.main, ["pfr", "devices"])
    for device in CMPA.devices():
        assert device in result.stdout
Beispiel #3
0
def test_cli_devices():
    """Test PFR CLI - devices."""
    runner = CliRunner()
    result = runner.invoke(cli.main, ["devices"])
    for device in CMPA.devices():
        assert device in result.stdout
Beispiel #4
0
def test_supported_devices():
    """Test PFR tool - Getting supported devices."""
    cfpa_devices = CFPA.devices()
    cmpa_devices = CMPA.devices()
    assert sorted(cmpa_devices) == sorted(cfpa_devices)
Beispiel #5
0
def test_cli_devices_global():
    runner = CliRunner()
    result = runner.invoke(spsdk_apps.main, ['pfr', 'devices'])
    for device in CMPA.devices():
        assert device in result.stdout
Beispiel #6
0
def test_cli_devices():
    runner = CliRunner()
    result = runner.invoke(cli.main, ['devices'])
    for device in CMPA.devices():
        assert device in result.stdout