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: usb_device
25    platform_allow:
26      - nrf52840dk_nrf52840
27      - frdm_k64f
28    extra_args:
29      - CONF_FILE="usbd_next_prj.conf"
30      - EXTRA_DTC_OVERLAY_FILE="ramdisk.overlay"
31    extra_configs:
32      - CONFIG_LOG_DEFAULT_LEVEL=3
33    tags:
34      - msd
35      - usb
36    harness: console
37    harness_config:
38      type: multi_line
39      ordered: true
40      regex:
41        - "No file system selected"
42        - "The device is put in USB mass storage mode."
43  sample.usb.mass_ram_fat:
44    min_ram: 128
45    depends_on: usb_device
46    arch_exclude: posix
47    extra_args:
48      - EXTRA_DTC_OVERLAY_FILE="ramdisk.overlay"
49    extra_configs:
50      - CONFIG_LOG_DEFAULT_LEVEL=3
51      - CONFIG_APP_MSC_STORAGE_RAM=y
52    tags:
53      - msd
54      - usb
55    harness: console
56    harness_config:
57      type: multi_line
58      ordered: true
59      regex:
60        - "End of files"
61        - "The device is put in USB mass storage mode."
62  sample.usb.mass_flash_fatfs:
63    min_ram: 32
64    modules:
65      - fatfs
66    depends_on: usb_device
67    filter: dt_compat_enabled("nordic,qspi-nor")
68    platform_allow:
69      - nrf52840dk_nrf52840
70      - nrf5340dk_nrf5340_cpuapp
71      - adafruit_feather_nrf52840
72    integration_platforms:
73      - nrf52840dk_nrf52840
74    extra_configs:
75      - CONFIG_LOG_DEFAULT_LEVEL=3
76      - CONFIG_APP_MSC_STORAGE_FLASH_FATFS=y
77    tags:
78      - msd
79      - usb
80    harness: console
81    harness_config:
82      type: multi_line
83      ordered: true
84      regex:
85        - "End of files"
86        - "The device is put in USB mass storage mode."
87  sample.usb_device_next.mass_flash_fatfs:
88    min_ram: 32
89    modules:
90      - fatfs
91    depends_on: usb_device
92    filter: dt_compat_enabled("nordic,qspi-nor")
93    platform_allow:
94      - nrf52840dk_nrf52840
95      - nrf5340dk_nrf5340_cpuapp
96      - adafruit_feather_nrf52840
97    integration_platforms:
98      - nrf52840dk_nrf52840
99    extra_args: CONF_FILE="usbd_next_prj.conf"
100    extra_configs:
101      - CONFIG_LOG_DEFAULT_LEVEL=3
102      - CONFIG_APP_MSC_STORAGE_FLASH_FATFS=y
103    tags:
104      - msd
105      - usb
106    harness: console
107    harness_config:
108      type: multi_line
109      ordered: true
110      regex:
111        - "End of files"
112        - "The device is put in USB mass storage mode."
113  sample.usb.mass_sdhc_fatfs:
114    min_ram: 32
115    modules:
116      - fatfs
117    depends_on:
118      - usb_device
119      - sdhc
120    extra_configs:
121      - CONFIG_LOG_DEFAULT_LEVEL=3
122      - CONFIG_APP_MSC_STORAGE_SDCARD=y
123    tags:
124      - msd
125      - usb
126    harness: console
127    harness_config:
128      fixture: fixture_sdcard
129      type: multi_line
130      ordered: true
131      regex:
132        - "End of files"
133        - "The device is put in USB mass storage mode."
134  sample.usb.mass_flash_littlefs:
135    modules:
136      - littlefs
137    min_ram: 32
138    depends_on: usb_device
139    filter: dt_compat_enabled("nordic,qspi-nor")
140    platform_allow:
141      - nrf52840dk_nrf52840
142      - nrf5340dk_nrf5340_cpuapp
143      - adafruit_feather_nrf52840
144    integration_platforms:
145      - nrf52840dk_nrf52840
146    extra_configs:
147      - CONFIG_LOG_DEFAULT_LEVEL=3
148      - CONFIG_APP_MSC_STORAGE_FLASH_LITTLEFS=y
149    tags:
150      - msd
151      - usb
152    harness: console
153    harness_config:
154      type: multi_line
155      ordered: true
156      regex:
157        - "End of files"
158        - "The device is put in USB mass storage mode."
159