This commit is contained in:
Shigeru KANEMOTO 2015-07-01 18:03:02 +09:00
parent 3f781bc877
commit edc28a01e7
2 changed files with 16 additions and 3 deletions

2
.gitignore vendored
View File

@ -34,7 +34,7 @@ gps-sdr-sim-lut
*.dSYM/ *.dSYM/
# Output # Output
gpssim.bin *.bin
# Temporary files # Temporary files
*.swp *.swp

View File

@ -1,6 +1,6 @@
# Makefile for Linux etc. # Makefile for Linux etc.
.PHONY: all clean .PHONY: all clean test test-lut test-nolut
all: gps-sdr-sim gps-sdr-sim-lut all: gps-sdr-sim gps-sdr-sim-lut
SHELL=/bin/bash SHELL=/bin/bash
@ -18,4 +18,17 @@ gpssim-lut.o: gpssim.c
${CC} -c -D_SINE_LUT ${CFLAGS} $< -o $@ ${CC} -c -D_SINE_LUT ${CFLAGS} $< -o $@
clean: clean:
rm -f gpssim.o gpssim-lut.o gps-sdr-sim gps-sdr-sim-lut rm -f gpssim.o gpssim-lut.o gps-sdr-sim gps-sdr-sim-lut *.bin
test: test-lut
test-lut: gps-sdr-sim-lut
time ./gps-sdr-sim-lut -e brdc3540.14n -u circle.csv -b 8
test "$$(md5sum gpssim.bin | awk '{print $$1}')" == "39a577af659440605c4ebbe178f4c4e3"
time ./gps-sdr-sim-lut -e brdc3540.14n -u circle.csv -b 16
test "$$(md5sum gpssim.bin | awk '{print $$1}')" == "bdd460893ad73b19412fc1757e62ccf9"
test-nolut: gps-sdr-sim
time ./gps-sdr-sim -e brdc3540.14n -u circle.csv -b 8
test "$$(md5sum gpssim.bin | awk '{print $$1}')" == "f4beb0857f82038d0465eb9934009edd"
time ./gps-sdr-sim -e brdc3540.14n -u circle.csv -b 16
test "$$(md5sum gpssim.bin | awk '{print $$1}')" == "10403720cb3483515f470fdea09e02ed"