diff --git a/tests/ssp/Makefile b/tests/ssp/Makefile index 3ce3b24077814f13c6427be8253681f08908028e..d4f6e12b4c9a33f12a33afaf06c0fbee1e3cd0fe 100644 --- a/tests/ssp/Makefile +++ b/tests/ssp/Makefile @@ -12,3 +12,6 @@ USEMODULE += ssp CFLAGS += -DDEVELHELP include $(RIOTBASE)/Makefile.include + +test: + tests/01-run.py diff --git a/tests/ssp/tests/01-run.py b/tests/ssp/tests/01-run.py new file mode 100755 index 0000000000000000000000000000000000000000..6de5ad714732ec827ef5e98e340892274c37972c --- /dev/null +++ b/tests/ssp/tests/01-run.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 + +# Copyright (C) 2017 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 os +import sys + +sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner')) +import testrunner + + +def testfunc(child): + child.expect_exact('calling stack corruption function') + child.expect('.*stack smashing detected.*') + +if __name__ == "__main__": + sys.exit(testrunner.run(testfunc))