Unit tests now #include the relevant source files to prevent symbol visibility
authorJean-Marc Valin <jean-marc.valin@octasic.com>
Tue, 23 Dec 2008 14:31:39 +0000 (09:31 -0500)
committerJean-Marc Valin <jean-marc.valin@octasic.com>
Tue, 23 Dec 2008 14:31:39 +0000 (09:31 -0500)
problems when building shared libraries only.

tests/Makefile.am
tests/cwrs32-test.c
tests/dft-test.c
tests/ectest.c
tests/laplace-test.c
tests/mdct-test.c
tests/real-fft-test.c

index 36ced45..5655845 100644 (file)
@@ -14,6 +14,3 @@ laplace_test_SOURCES = laplace-test.c
 mdct_test_SOURCES = mdct-test.c
 #rotation_test_SOURCES = rotation-test.c
 mathops_test_SOURCES = mathops-test.c
-
-AM_LDFLAGS = -static
-LDADD = $(top_builddir)/libcelt/libcelt.la
index b6ef23d..22f40ea 100644 (file)
@@ -5,6 +5,14 @@
 #include <stdio.h>
 #include "cwrs.h"
 #include <string.h>
+
+#include "../libcelt/cwrs.c"
+#include "../libcelt/rangeenc.c"
+#include "../libcelt/rangedec.c"
+#include "../libcelt/entenc.c"
+#include "../libcelt/entdec.c"
+#include "../libcelt/entcode.c"
+
 #define NMAX (10)
 #define MMAX (9)
 
index 4e9c0ab..348746c 100644 (file)
@@ -5,6 +5,9 @@
 #include <stdio.h>
 #include "kiss_fft.h"
 
+#include "../libcelt/kiss_fft.c"
+
+
 #ifndef M_PI
 #define M_PI 3.141592653
 #endif
index 49d39a1..3972518 100644 (file)
@@ -9,6 +9,12 @@
 #include "entenc.h"
 #include "entdec.h"
 
+#include "../libcelt/rangeenc.c"
+#include "../libcelt/rangedec.c"
+#include "../libcelt/entenc.c"
+#include "../libcelt/entdec.c"
+#include "../libcelt/entcode.c"
+
 #ifndef M_LOG2E
 # define M_LOG2E    1.4426950408889634074
 #endif
index de10b82..b797c1a 100644 (file)
@@ -7,6 +7,14 @@
 #include "laplace.h"
 #include "stack_alloc.h"
 
+#include "../libcelt/rangeenc.c"
+#include "../libcelt/rangedec.c"
+#include "../libcelt/entenc.c"
+#include "../libcelt/entdec.c"
+#include "../libcelt/entcode.c"
+#include "../libcelt/laplace.c"
+
+
 int main(void)
 {
    int i;
index cd6acae..6a9393d 100644 (file)
@@ -6,6 +6,9 @@
 #include "mdct.h"
 #include "stack_alloc.h"
 
+#include "../libcelt/kiss_fft.c"
+#include "../libcelt/mdct.c"
+
 #ifndef M_PI
 #define M_PI 3.141592653
 #endif
index aa9c395..9f49795 100644 (file)
@@ -7,6 +7,9 @@
 #include <stdio.h>
 #include <string.h>
 
+#include "../libcelt/kiss_fft.c"
+#include "../libcelt/kiss_fftr.c"
+
 int ret=0;
 
 static