1sample:
2  name: Mass Storage
3tests:
4  sample.usb.mass_ram_none:
5    min_ram: 128
6    depends_on: usb_device
7    arch_exclude: posix
8    extra_args:
9      - EXTRA_DTC_OVERLAY_FILE="ramdisk.overlay"
10    extra_configs:
11      - CONFIG_LOG_DEFAULT_LEVEL=3
12    tags:
13      - msd
14      - usb
15    harness: console
16    harness_config:
17      type: multi_line
18      ordered: true
19      regex:
20        - "No file system selected"
21        - "The device is put in USB mass storage mode."
22  sample.usb_device_next.mass_ram_none:
23    min_ram: 128
24    depends_on: usbd
25    integration_platforms:
26      - nrf52840dk/nrf52840
27      - nrf54h20dk/nrf54h20/cpuapp
28      - frdm_k64f
29      - stm32f723e_disco
30      - nucleo_f413zh
31      - mimxrt685_evk/mimxrt685s/cm33
32      - mimxrt1060_evk/mimxrt1062/qspi
33    extra_args:
34      - CONF_FILE="usbd_next_prj.conf"
35      - EXTRA_DTC_OVERLAY_FILE="ramdisk.overlay"
36    extra_configs:
37      - CONFIG_LOG_DEFAULT_LEVEL=3
38    tags:
39      - msd
40      - usb
41    harness: console
42    harness_config:
43      type: multi_line
44      ordered: true
45      regex:
46        - "No file system selected"
47        - "The device is put in USB mass storage mode."
48  sample.usb.mass_ram_fat:
49    min_ram: 128
50    depends_on: usb_device
51    arch_exclude: posix
52    extra_args:
53      - EXTRA_DTC_OVERLAY_FILE="ramdisk.overlay"
54    extra_configs:
55      - CONFIG_LOG_DEFAULT_LEVEL=3
56      - CONFIG_APP_MSC_STORAGE_RAM=y
57    tags:
58      - msd
59      - usb
60    harness: console
61    harness_config:
62      type: multi_line
63      ordered: true
64      regex:
65        - "End of files"
66        - "The device is put in USB mass storage mode."
67  sample.usb.mass_flash_fatfs:
68    min_ram: 32
69    modules:
70      - fatfs
71    depends_on: usb_device
72    filter: dt_compat_enabled("nordic,qspi-nor")
73    platform_allow:
74      - nrf52840dk/nrf52840
75      - nrf5340dk/nrf5340/cpuapp
76      - adafruit_feather_nrf52840/nrf52840/sense
77    integration_platforms:
78      - nrf52840dk/nrf52840
79    extra_configs:
80      - CONFIG_LOG_DEFAULT_LEVEL=3
81      - CONFIG_APP_MSC_STORAGE_FLASH_FATFS=y
82    tags:
83      - msd
84      - usb
85    harness: console
86    harness_config:
87      type: multi_line
88      ordered: true
89      regex:
90        - "End of files"
91        - "The device is put in USB mass storage mode."
92  sample.usb_device_next.mass_flash_fatfs:
93    min_ram: 32
94    modules:
95      - fatfs
96    depends_on: usbd
97    filter: dt_compat_enabled("nordic,qspi-nor")
98    platform_allow:
99      - nrf52840dk/nrf52840
100      - nrf5340dk/nrf5340/cpuapp
101      - adafruit_feather_nrf52840/nrf52840/sense
102    integration_platforms:
103      - nrf52840dk/nrf52840
104    extra_args: CONF_FILE="usbd_next_prj.conf"
105    extra_configs:
106      - CONFIG_LOG_DEFAULT_LEVEL=3
107      - CONFIG_APP_MSC_STORAGE_FLASH_FATFS=y
108    tags:
109      - msd
110      - usb
111    harness: console
112    harness_config:
113      type: multi_line
114      ordered: true
115      regex:
116        - "End of files"
117        - "The device is put in USB mass storage mode."
118  sample.usb.mass_sdhc_fatfs:
119    min_ram: 32
120    filter: dt_compat_enabled("zephyr,sdmmc-disk")
121    modules:
122      - fatfs
123    depends_on:
124      - usb_device
125      - sdhc
126    extra_configs:
127      - CONFIG_LOG_DEFAULT_LEVEL=3
128      - CONFIG_APP_MSC_STORAGE_SDCARD=y
129    tags:
130      - msd
131      - usb
132    harness: console
133    harness_config:
134      fixture: fixture_sdcard
135      type: multi_line
136      ordered: true
137      regex:
138        - "End of files"
139        - "The device is put in USB mass storage mode."
140  sample.usb_device_next.mass_sdhc_fatfs:
141    min_ram: 32
142    filter: dt_compat_enabled("zephyr,sdmmc-disk")
143    modules:
144      - fatfs
145    depends_on:
146      - usbd
147      - sdhc
148    extra_configs:
149      - CONFIG_LOG_DEFAULT_LEVEL=3
150      - CONFIG_APP_MSC_STORAGE_SDCARD=y
151    extra_args: CONF_FILE="usbd_next_prj.conf"
152    tags:
153      - msd
154      - usb
155    harness: console
156    harness_config:
157      fixture: fixture_sdcard
158      type: multi_line
159      ordered: true
160      regex:
161        - "End of files"
162        - "The device is put in USB mass storage mode."
163  sample.usb.mass_flash_littlefs:
164    modules:
165      - littlefs
166    min_ram: 32
167    depends_on: usb_device
168    filter: dt_compat_enabled("nordic,qspi-nor")
169    platform_allow:
170      - nrf52840dk/nrf52840
171      - nrf5340dk/nrf5340/cpuapp
172      - adafruit_feather_nrf52840/nrf52840/sense
173    integration_platforms:
174      - nrf52840dk/nrf52840
175    extra_configs:
176      - CONFIG_LOG_DEFAULT_LEVEL=3
177      - CONFIG_APP_MSC_STORAGE_FLASH_LITTLEFS=y
178    tags:
179      - msd
180      - usb
181    harness: console
182    harness_config:
183      type: multi_line
184      ordered: true
185      regex:
186        - "End of files"
187        - "The device is put in USB mass storage mode."
188