@@ -8,5 +8,4 @@ AC_CONFIG_FILES([test/Makefile
test/performance/Makefile
test/validation/Makefile
test/validation/api/Makefile
- test/validation/api/pktio/Makefile
- test/validation/api/traffic_mngr/Makefile])
+ test/validation/api/pktio/Makefile])
@@ -30,3 +30,4 @@ system_main
thread_main
time_main
timer_main
+traffic_mngr_main
@@ -1,6 +1,5 @@
ODP_MODULES = \
- pktio \
- traffic_mngr
+ pktio
SUBDIRS = $(ODP_MODULES)
@@ -35,7 +34,8 @@ test_PROGRAMS = \
system_main \
thread_main \
time_main \
- timer_main
+ timer_main \
+ traffic_mngr_main
noinst_LTLIBRARIES = libtestipsec.la
libtestipsec_la_SOURCES = \
@@ -81,6 +81,11 @@ thread_main_SOURCES = thread.c
thread_main_LDADD = $(LDADD) $(LIBTHRMASK_COMMON)
time_main_SOURCES = time.c
timer_main_SOURCES = timer.c
+traffic_mngr_main_SOURCES = traffic_mngr.c
+traffic_mngr_main_LDADD = $(LDADD) -lm
+
+dist_check_SCRIPTS = traffic_mngr.sh
+test_SCRIPTS = $(dist_check_SCRIPTS)
classification_main_SOURCES = \
classification_basic.c \
@@ -92,6 +97,7 @@ classification_main_SOURCES = \
classification.h
TESTS_ENVIRONMENT += TEST_DIR=${top_builddir}/test/validation
+TEST_EXTENSIONS = .sh
TESTS = \
atomic_main$(EXEEXT) \
@@ -123,7 +129,7 @@ TESTS = \
thread_main$(EXEEXT) \
time_main$(EXEEXT) \
timer_main$(EXEEXT) \
- traffic_mngr/traffic_mngr.sh
+ traffic_mngr.sh
TESTNAME = validation
similarity index 100%
rename from test/validation/api/traffic_mngr/traffic_mngr.c
rename to test/validation/api/traffic_mngr.c
similarity index 90%
rename from test/validation/api/traffic_mngr/traffic_mngr.sh
rename to test/validation/api/traffic_mngr.sh
@@ -12,8 +12,8 @@
# -in the validation when running standalone (./traffic_mngr) intree.
# -in the current directory.
# running stand alone out of tree requires setting PATH
-PATH=${TEST_DIR}/api/traffic_mngr:$PATH
-PATH=$(dirname $0)/../../../../validation/api/traffic_mngr:$PATH
+PATH=${TEST_DIR}/api:$PATH
+PATH=$(dirname $0)/../../../../validation/api:$PATH
PATH=$(dirname $0):$PATH
PATH=`pwd`:$PATH
deleted file mode 100644
@@ -1 +0,0 @@
-traffic_mngr_main
deleted file mode 100644
@@ -1,10 +0,0 @@
-include ../Makefile.inc
-
-TESTS_ENVIRONMENT += TEST_DIR=${builddir}
-
-test_PROGRAMS = traffic_mngr_main
-traffic_mngr_main_SOURCES = traffic_mngr.c
-LDADD += -lm
-
-dist_check_SCRIPTS = traffic_mngr.sh
-test_SCRIPTS = $(dist_check_SCRIPTS)