1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #10832 from aabadie/pr/tests/periph_dma_test_script

tests/periph_dma: add automatic testing of DMA over UART
This commit is contained in:
Gaëtan Harter 2019-01-21 17:49:43 +01:00 committed by GitHub
commit 8b4b2870ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 1 deletions

View File

@ -21,7 +21,12 @@
int main(void)
{
puts("DMA dummy test app");
/*
This test is checking that DMA on UART is not broken when stdio UART is
configured with DMA.
Note that this message is also printed on 'normal' stdio UART (without DMA).
*/
puts("DMA is working");
return 0;
}

View File

@ -0,0 +1,18 @@
#!/usr/bin/env python3
# Copyright (C) 2019 Inria
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import sys
from testrunner import run
def testfunc(child):
child.expect_exact('DMA is working')
if __name__ == "__main__":
sys.exit(run(testfunc))