Browse Source

Add test_sinefit makefile target

tags/nilmtools-1.4.10
Jim Paris 8 years ago
parent
commit
13ceb91999
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      Makefile

+ 9
- 1
Makefile View File

@@ -5,7 +5,7 @@ all: test

test:
ifeq ($(INSIDE_EMACS), t)
@make test_trainola3
@make test_sinefit
else
@echo 'No test suite for nilmtools. Try "make install"'
endif
@@ -58,6 +58,14 @@ test_prep: /tmp/raw.dat
nilmtools/prep.py -c 2 /test/raw /test/sinefit /test/prep
nilmtool extract -s min -e max /test/prep | head -20

test_sinefit:
make install >/dev/null 2>&1
-nilmtool destroy -R /test/sinefit
nilmtool create /test/sinefit float32_3
nilmtools/sinefit.py -c 5 -s '2013/03/25 09:11:00' \
-e '2013/03/25 10:11:00' /sharon/raw /test/sinefit
nilmtool extract -s min -e max /test/sinefit | head -20

test_decimate:
-@nilmtool destroy /lees-compressor/no-leak/raw/4 || true
-@nilmtool destroy /lees-compressor/no-leak/raw/16 || true


Loading…
Cancel
Save