You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

67 lines
1.8 KiB

  1. #URL="http://bucket.mit.edu:8080/nilmdb"
  2. URL="http://localhost/nilmdb"
  3. all:
  4. ifeq ($(INSIDE_EMACS), t)
  5. @make test
  6. else
  7. @echo "Try 'make install'"
  8. endif
  9. test: test_cleanup
  10. test_cleanup:
  11. src/cleanup.py -e extras/cleanup.cfg
  12. src/cleanup.py extras/cleanup.cfg
  13. test_insert:
  14. @make install >/dev/null
  15. src/insert.py --file --dry-run /test/foo </dev/null
  16. test_copy:
  17. @make install >/dev/null
  18. src/copy_wildcard.py -U "http://nilmdb.com/bucket/" -D /lees*
  19. test_prep:
  20. @make install >/dev/null
  21. -nilmtool destroy -R /test/raw
  22. -nilmtool destroy -R /test/sinefit
  23. -nilmtool destroy -R /test/prep
  24. nilmtool create /test/raw float32_2
  25. nilmtool create /test/sinefit float32_3
  26. nilmtool create /test/prep float32_8
  27. nilmtool insert -s '@0' -t -r 8000 /test/raw /tmp/raw.dat
  28. src/sinefit.py -c 1 /test/raw /test/sinefit
  29. src/prep.py -c 2 /test/raw /test/sinefit /test/prep
  30. nilmtool extract -s min -e max /test/prep | head -20
  31. test_decimate:
  32. -@nilmtool destroy /lees-compressor/no-leak/raw/4 || true
  33. -@nilmtool destroy /lees-compressor/no-leak/raw/16 || true
  34. -@nilmtool create /lees-compressor/no-leak/raw/4 float32_18 || true
  35. -@nilmtool create /lees-compressor/no-leak/raw/16 float32_18 || true
  36. time python src/decimate.py -s '2013-02-04 18:10:00' -e '2013-02-04 18:11:00' /lees-compressor/no-leak/raw/1 /lees-compressor/no-leak/raw/4
  37. python src/decimate.py -s '2013-02-04 18:10:00' -e '2013-02-04 18:11:00' /lees-compressor/no-leak/raw/4 /lees-compressor/no-leak/raw/16
  38. version:
  39. python setup.py version
  40. dist: sdist
  41. sdist:
  42. python setup.py sdist
  43. install:
  44. python setup.py install
  45. develop:
  46. python setup.py develop
  47. clean::
  48. find . -name '*pyc' | xargs rm -f
  49. rm -rf nilmtools.egg-info/ build/ MANIFEST.in
  50. gitclean::
  51. git clean -dXf
  52. .PHONY: all version dist sdist install clean gitclean