Commit 79a847bf authored by Gerard Marull-Paretas's avatar Gerard Marull-Paretas Committed by Kumar Gala
Browse files

scripts: tests: update genpinctrl tests



Update genpinctrl unit tests to match latest changes.

Signed-off-by: default avatarGerard Marull-Paretas <gerard@teslabs.com>
parent cfa91174
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
pytest~=6.0
pytest-cov~=2.10
pytest-mock~=3.3
 No newline at end of file
+3 −3
Original line number Diff line number Diff line
@@ -15,6 +15,6 @@ def data():


@pytest.fixture()
def cubemx(data):
    """Pytest fixture to load test CubeMX files"""
    return data / "cubemx"
def pindata(data):
    """Pytest fixture to load test STM32 Open Pin Data files"""
    return data / "pindata"
+46 −0
Original line number Diff line number Diff line
*-pinctrl.dtsi generated files
##############################

Origin:
   Generated

Status:
   Generated using STM32 Open Pin Data

Purpose:
   SoC package specific -pintrl.dtsi files

Description:
   This directory contains *-pcintrl.dtsi files generated using generation
   script (available under scripts/genpinctrl) along with inputs from
   STM32 Open Pin Data database.
   Each file matches a STM32 SoC package and contains, for each pin of the
   package the exhaustive list of pinctrl configurations depending on its
   capabilities and the various pin configurations described in
   scripts/genpinctrl/stm32*-pinctrl-config.yaml files.
   New set of files could be generated based on:
   - new version of STM32 Open Pin Data
   - new version of stm32*-pinctrl-config.yaml files

Dependencies:
    * STM32 Open Pin Data
    * Generation script available in current repo under scripts/genpinctrl
      and configuration files.

URL:
   https://github.com/STMicroelectronics/STM32_open_pin_data

Commit:
   TEST

Maintained-by:
   External

License:
   Generated files fall under license Apache-2.0

License Link:
   https://www.apache.org/licenses/LICENSE-2.0

Patch List:
   None
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<IP xmlns="http://mcd.rou.st.com/modules.php?name=mcu">
<IP xmlns="http://dummy.com">
    <GPIO_Pin PortName="PA" Name="PA0">
        <!-- Signal without "SpecificParameter" entry -->
        <PinSignal Name="TEST_SIGNAL_INVALID1">
+1 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<IP xmlns="http://mcd.rou.st.com/modules.php?name=mcu">
<IP xmlns="http://dummy.com">
    <GPIO_Pin PortName="PA" Name="PA0">
        <!-- Invalid signal (no remaps) -->
        <PinSignal Name="TEST_SIGNAL_INVALID1">
Loading