mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	add tests
This commit is contained in:
		
							
								
								
									
										11
									
								
								tests/components/dfu/test.nrf52-adafruit.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/components/dfu/test.nrf52-adafruit.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| output: | ||||
|   - platform: gpio | ||||
|     pin: | ||||
|       number: 14 | ||||
|       inverted: true | ||||
|       mode: | ||||
|         output: true | ||||
|     id: rest_gpio | ||||
|  | ||||
| dfu: | ||||
|   reset_output: rest_gpio | ||||
							
								
								
									
										11
									
								
								tests/components/dfu/test.nrf52.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/components/dfu/test.nrf52.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| output: | ||||
|   - platform: gpio | ||||
|     pin: | ||||
|       number: 14 | ||||
|       inverted: true | ||||
|       mode: | ||||
|         output: true | ||||
|     id: rest_gpio | ||||
|  | ||||
| dfu: | ||||
|   reset_output: rest_gpio | ||||
							
								
								
									
										7
									
								
								tests/components/logger/test.nrf52-adafruit.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								tests/components/logger/test.nrf52-adafruit.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - logger.log: Hello world | ||||
|  | ||||
| logger: | ||||
|   level: DEBUG | ||||
							
								
								
									
										7
									
								
								tests/components/logger/test.nrf52.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								tests/components/logger/test.nrf52.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - logger.log: Hello world | ||||
|  | ||||
| logger: | ||||
|   level: DEBUG | ||||
							
								
								
									
										26
									
								
								tests/components/ota/test.nrf52.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								tests/components/ota/test.nrf52.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| zephyr_ble_server: | ||||
|  | ||||
| ota: | ||||
|   safe_mode: true | ||||
|   reboot_timeout: 2min | ||||
|   num_attempts: 5 | ||||
|   on_begin: | ||||
|     then: | ||||
|       - logger.log: "OTA start" | ||||
|   on_progress: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "OTA progress %0.1f%%" | ||||
|           args: ["x"] | ||||
|   on_end: | ||||
|     then: | ||||
|       - logger.log: "OTA end" | ||||
|   on_error: | ||||
|     then: | ||||
|       - logger.log: | ||||
|           format: "OTA update error %d" | ||||
|           args: ["x"] | ||||
|   on_state_change: | ||||
|     then: | ||||
|       lambda: >- | ||||
|         ESP_LOGD("ota", "State %d", state); | ||||
							
								
								
									
										4
									
								
								tests/components/zephyr_ble_nus/test.nrf52-adafruit.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								tests/components/zephyr_ble_nus/test.nrf52-adafruit.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| zephyr_ble_server: | ||||
|  | ||||
| zephyr_ble_nus: | ||||
|   log: true | ||||
							
								
								
									
										4
									
								
								tests/components/zephyr_ble_nus/test.nrf52.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								tests/components/zephyr_ble_nus/test.nrf52.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| zephyr_ble_server: | ||||
|  | ||||
| zephyr_ble_nus: | ||||
|   log: true | ||||
| @@ -0,0 +1 @@ | ||||
| zephyr_ble_server: | ||||
							
								
								
									
										1
									
								
								tests/components/zephyr_ble_server/test.nrf52.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								tests/components/zephyr_ble_server/test.nrf52.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| zephyr_ble_server: | ||||
		Reference in New Issue
	
	Block a user