Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 61fbdddb660c5944ac23b820754a7c4cf4eee097 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 8 Jun 2018 19:29:03 -0700 |
| 4 | Subject: [PATCH] tests: Include entcode.c into test sources to provide |
| 5 | definitions of functions e.g. ec_ilog() |
| 6 | |
| 7 | Fixes link errors in tests |
| 8 | | /usr/src/debug/celt051/0.5.1.3+gitAUTOINC+5555aae843-r0/git/tests/../libcelt/rangedec.c:202: undefined reference to `ec_ilog' |
| 9 | |
| 10 | Upstream-Status: Pending |
| 11 | |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 13 | --- |
| 14 | tests/cwrs32-test.c | 1 + |
| 15 | tests/ectest.c | 2 +- |
| 16 | tests/laplace-test.c | 1 + |
| 17 | 3 files changed, 3 insertions(+), 1 deletion(-) |
| 18 | |
| 19 | diff --git a/tests/cwrs32-test.c b/tests/cwrs32-test.c |
| 20 | index 3a95df2..a159ab3 100644 |
| 21 | --- a/tests/cwrs32-test.c |
| 22 | +++ b/tests/cwrs32-test.c |
| 23 | @@ -8,6 +8,7 @@ |
| 24 | #include "rangeenc.c" |
| 25 | #include "rangedec.c" |
| 26 | #include "cwrs.c" |
| 27 | +#include "entcode.c" |
| 28 | #include <string.h> |
| 29 | #define NMAX (10) |
| 30 | #define MMAX (9) |
| 31 | diff --git a/tests/ectest.c b/tests/ectest.c |
| 32 | index aa35453..94eb9a3 100644 |
| 33 | --- a/tests/ectest.c |
| 34 | +++ b/tests/ectest.c |
| 35 | @@ -5,7 +5,7 @@ |
| 36 | #include <stdlib.h> |
| 37 | #include <stdio.h> |
| 38 | #include <math.h> |
| 39 | -#include "entcode.h" |
| 40 | +#include "entcode.c" |
| 41 | #include "entenc.c" |
| 42 | #include "entdec.c" |
| 43 | #include "rangeenc.c" |
| 44 | diff --git a/tests/laplace-test.c b/tests/laplace-test.c |
| 45 | index 3f98ab3..8e1fb4e 100644 |
| 46 | --- a/tests/laplace-test.c |
| 47 | +++ b/tests/laplace-test.c |
| 48 | @@ -6,6 +6,7 @@ |
| 49 | #include <stdlib.h> |
| 50 | #include "laplace.c" |
| 51 | #include "stack_alloc.h" |
| 52 | +#include "entcode.c" |
| 53 | #include "entenc.c" |
| 54 | #include "entdec.c" |
| 55 | #include "rangeenc.c" |