Esempio n. 1
0
def test_supported_devices():
    cfpa_devices = CFPA.devices()
    cmpa_devices = CMPA.devices()

    assert sorted(cmpa_devices) == sorted(cfpa_devices)
Esempio n. 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
Esempio n. 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
Esempio n. 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)
Esempio n. 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
Esempio n. 6
0
def test_cli_devices():
    runner = CliRunner()
    result = runner.invoke(cli.main, ['devices'])
    for device in CMPA.devices():
        assert device in result.stdout