aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--configure.ac1
-rw-r--r--tests/Makefile.am1
-rw-r--r--tests/Transceiver52M/Makefile.am17
-rw-r--r--tests/Transceiver52M/convolve_test.c (renamed from utils/convolvetest/main.c)0
-rw-r--r--tests/Transceiver52M/convolve_test.ok (renamed from utils/convolvetest/convtest.ok)0
-rw-r--r--tests/testsuite.at6
-rw-r--r--utils/convolvetest/Makefile18
8 files changed, 26 insertions, 18 deletions
diff --git a/.gitignore b/.gitignore
index bc6c036..2cc1b8f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,6 +15,7 @@ tests/CommonLibs/TimevalTest
tests/CommonLibs/URLEncodeTest
tests/CommonLibs/VectorTest
tests/CommonLibs/PRBSTest
+tests/Transceiver52M/convolve_test
# automake/autoconf
*.in
diff --git a/configure.ac b/configure.ac
index 3ad4b41..5cee4a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -174,6 +174,7 @@ AC_CONFIG_FILES([\
Transceiver52M/x86/Makefile \
tests/Makefile \
tests/CommonLibs/Makefile \
+ tests/Transceiver52M/Makefile \
])
AC_OUTPUT
diff --git a/tests/Makefile.am b/tests/Makefile.am
index c18bef3..d4589a4 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,5 +1,6 @@
SUBDIRS = \
CommonLibs \
+ Transceiver52M \
$(NULL)
# The `:;' works around a Bash 3.2 bug when the output is not writeable.
diff --git a/tests/Transceiver52M/Makefile.am b/tests/Transceiver52M/Makefile.am
new file mode 100644
index 0000000..79f73c6
--- /dev/null
+++ b/tests/Transceiver52M/Makefile.am
@@ -0,0 +1,17 @@
+include $(top_srcdir)/Makefile.common
+
+AM_CFLAGS = -Wall -I$(top_srcdir)/Transciever52 $(STD_DEFINES_AND_INCLUDES) -g
+
+EXTRA_DIST = convolve_test.ok
+
+noinst_PROGRAMS = \
+ convolve_test
+
+convolve_test_SOURCES = convolve_test.c
+convolve_test_LDADD = $(COMMON_LA) $(ARCH_LA)
+if HAVE_SSE3
+convolve_test_CFLAGS = $(AM_CFLAGS) $(SIMD_FLAGS)
+endif
+if HAVE_SSE4_1
+convolve_test_CFLAGS = $(AM_CFLAGS) $(SIMD_FLAGS)
+endif
diff --git a/utils/convolvetest/main.c b/tests/Transceiver52M/convolve_test.c
index f4a76c3..f4a76c3 100644
--- a/utils/convolvetest/main.c
+++ b/tests/Transceiver52M/convolve_test.c
diff --git a/utils/convolvetest/convtest.ok b/tests/Transceiver52M/convolve_test.ok
index 5766252..5766252 100644
--- a/utils/convolvetest/convtest.ok
+++ b/tests/Transceiver52M/convolve_test.ok
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 00e6002..c6ca848 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -43,3 +43,9 @@ AT_KEYWORDS([VectorTest])
cat $abs_srcdir/CommonLibs/VectorTest.ok > expout
AT_CHECK([$abs_top_builddir/tests/CommonLibs/VectorTest], [], [expout], [])
AT_CLEANUP
+
+AT_SETUP([convolve_test])
+AT_KEYWORDS([convolve_test])
+cat $abs_srcdir/Transceiver52M/convolve_test.ok > expout
+AT_CHECK([$abs_top_builddir/tests/Transceiver52M/convolve_test], [], [expout], [])
+AT_CLEANUP
diff --git a/utils/convolvetest/Makefile b/utils/convolvetest/Makefile
deleted file mode 100644
index 1163d67..0000000
--- a/utils/convolvetest/Makefile
+++ /dev/null
@@ -1,18 +0,0 @@
-all: main.o convolve_base.o convolve.o convolve_sse_3.o
- gcc -g -Wall ./*.o -o convtest
-
-clean:
- rm -f ./*.o
- rm -f ./convtest
-
-main.o: main.c
- gcc -g -Wall -c main.c
-
-convolve_base.o: ../../Transceiver52M/common/convolve_base.c
- gcc -std=c99 -c ../../Transceiver52M/common/convolve_base.c
-
-convolve.o: ../../Transceiver52M/x86/convolve.c
- gcc -std=c99 -c ../../Transceiver52M/x86/convolve.c -I ../../Transceiver52M/common/ -msse3 -DHAVE_SSE3
-
-convolve_sse_3.o: ../../Transceiver52M/x86/convolve_sse_3.c
- gcc -std=c99 -c ../../Transceiver52M/x86/convolve_sse_3.c -I ../../Transceiver52M/common/ -msse3 -DHAVE_SSE3