mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 04:37:47 +00:00
Unify example apps across all example platforms. (#215)
This commit is contained in:
@@ -54,7 +54,7 @@ class Node:
|
||||
""" Initialize a simulation node. """
|
||||
if "top_builddir" in os.environ.keys():
|
||||
srcdir = os.environ['top_builddir']
|
||||
cmd = '%s/examples/posix/app/cli/ot-cli' % srcdir
|
||||
cmd = '%s/examples/apps/cli/ot-cli' % srcdir
|
||||
else:
|
||||
cmd = './ot-cli'
|
||||
cmd += ' %d' % nodeid
|
||||
|
||||
+27
-27
@@ -32,60 +32,60 @@ include $(abs_top_nlbuild_autotools_dir)/automake/pre.am
|
||||
# Local headers to build against and distribute but not to install
|
||||
# since they are not part of the package.
|
||||
#
|
||||
noinst_HEADERS = \
|
||||
test_util.h \
|
||||
test_util.hpp \
|
||||
test_vector.h \
|
||||
noinst_HEADERS = \
|
||||
test_util.h \
|
||||
test_util.hpp \
|
||||
test_vector.h \
|
||||
$(NULL)
|
||||
|
||||
#
|
||||
# Other files we do want to distribute with the package.
|
||||
#
|
||||
EXTRA_DIST = \
|
||||
EXTRA_DIST = \
|
||||
$(NULL)
|
||||
|
||||
if OPENTHREAD_BUILD_TESTS
|
||||
# C preprocessor option flags that will apply to all compiled objects in this
|
||||
# makefile.
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_srcdir)/src/core \
|
||||
-I$(top_srcdir)/third_party/mbedtls/repo/include \
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_srcdir)/src/core \
|
||||
-I$(top_srcdir)/third_party/mbedtls/repo/include \
|
||||
$(NULL)
|
||||
|
||||
COMMON_LDADD = \
|
||||
$(top_builddir)/src/core/libopenthread.a \
|
||||
$(top_builddir)/examples/posix/platform/libopenthread-posix.a \
|
||||
$(top_builddir)/third_party/mbedtls/libmbedcrypto.a \
|
||||
-lpthread \
|
||||
COMMON_LDADD = \
|
||||
$(top_builddir)/src/core/libopenthread.a \
|
||||
$(top_builddir)/examples/platforms/posix/libopenthread-posix.a \
|
||||
$(top_builddir)/third_party/mbedtls/libmbedcrypto.a \
|
||||
-lpthread \
|
||||
$(NULL)
|
||||
|
||||
# Test applications that should be run when the 'check' target is run.
|
||||
|
||||
check_PROGRAMS = \
|
||||
test-aes \
|
||||
test-hmac-sha256 \
|
||||
test-lowpan \
|
||||
test-link-quality \
|
||||
test-mac-frame \
|
||||
test-message \
|
||||
test-timer \
|
||||
test-toolchain \
|
||||
check_PROGRAMS = \
|
||||
test-aes \
|
||||
test-hmac-sha256 \
|
||||
test-lowpan \
|
||||
test-link-quality \
|
||||
test-mac-frame \
|
||||
test-message \
|
||||
test-timer \
|
||||
test-toolchain \
|
||||
$(NULL)
|
||||
|
||||
# Test applications and scripts that should be built and run when the
|
||||
# 'check' target is run.
|
||||
|
||||
TESTS = \
|
||||
$(check_PROGRAMS) \
|
||||
TESTS = \
|
||||
$(check_PROGRAMS) \
|
||||
$(NULL)
|
||||
|
||||
# The additional environment variables and their values that will be
|
||||
# made available to all programs and scripts in TESTS.
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
TESTS_ENVIRONMENT = \
|
||||
$(NULL)
|
||||
|
||||
# Source, compiler, and linker options for test programs.
|
||||
|
||||
Reference in New Issue
Block a user