Test
This commit is contained in:
parent
3f781bc877
commit
edc28a01e7
2
.gitignore
vendored
2
.gitignore
vendored
@ -34,7 +34,7 @@ gps-sdr-sim-lut
|
||||
*.dSYM/
|
||||
|
||||
# Output
|
||||
gpssim.bin
|
||||
*.bin
|
||||
|
||||
# Temporary files
|
||||
*.swp
|
||||
|
17
Makefile
17
Makefile
@ -1,6 +1,6 @@
|
||||
# Makefile for Linux etc.
|
||||
|
||||
.PHONY: all clean
|
||||
.PHONY: all clean test test-lut test-nolut
|
||||
all: gps-sdr-sim gps-sdr-sim-lut
|
||||
|
||||
SHELL=/bin/bash
|
||||
@ -18,4 +18,17 @@ gpssim-lut.o: gpssim.c
|
||||
${CC} -c -D_SINE_LUT ${CFLAGS} $< -o $@
|
||||
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user