diff options
| author | Petteri.Aimonen <Petteri.Aimonen@gmail.com> | 2012-08-29 14:38:36 +0000 |
|---|---|---|
| committer | Petteri.Aimonen <Petteri.Aimonen@gmail.com> | 2012-08-29 14:38:36 +0000 |
| commit | 543e39f42d00fbaa3dfd7a2ed19e3ea84e4f19ee (patch) | |
| tree | fe1dab9907b4679feefb25da84da5b69722d80c5 /unittests/Makefile | |
| parent | cb1744b88691fbb6db938d702c87dd40929efb42 (diff) | |
| download | libfixmath-543e39f42d00fbaa3dfd7a2ed19e3ea84e4f19ee.tar.gz | |
Added to/from string conversion functions, and testcases for them.
Diffstat (limited to 'unittests/Makefile')
| -rw-r--r-- | unittests/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/unittests/Makefile b/unittests/Makefile index cb5dbb4..14dac10 100644 --- a/unittests/Makefile +++ b/unittests/Makefile @@ -5,10 +5,10 @@ CC = gcc CFLAGS = -g -O0 -I../libfixmath -Wall -Wextra -Werror # The files required for tests -FIX16_SRC = ../libfixmath/fix16.c ../libfixmath/fix16_sqrt.c \ +FIX16_SRC = ../libfixmath/fix16.c ../libfixmath/fix16_sqrt.c ../libfixmath/fix16_str.c \ ../libfixmath/fix16_exp.c ../libfixmath/fix16.h -all: run_fix16_unittests run_fix16_exp_unittests +all: run_fix16_unittests run_fix16_exp_unittests run_fix16_str_unittests clean: rm -f fix16_unittests_???? @@ -55,3 +55,11 @@ run_fix16_exp_unittests: fix16_exp_unittests fix16_exp_unittests: fix16_exp_unittests.c $(FIX16_SRC) $(CC) $(CFLAGS) $(DEFINES) -o $@ $^ -lm + +# Tests for string conversion, run only in default config +run_fix16_str_unittests: fix16_str_unittests + ./fix16_str_unittests > /dev/null + +fix16_str_unittests: fix16_str_unittests.c $(FIX16_SRC) + $(CC) $(CFLAGS) $(DEFINES) -o $@ $^ -lm + |
