Mercurial > hg > piper-vamp-js
changeset 133:2255741a934c
Add test target
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 11 Nov 2016 11:08:10 +0000 |
parents | 8b135ec57c64 |
children | c0256c2debf5 |
files | Makefile.inc |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.inc Fri Nov 11 11:08:05 2016 +0000 +++ b/Makefile.inc Fri Nov 11 11:08:10 2016 +0000 @@ -7,6 +7,8 @@ @echo @echo "$$ make em" @echo " - build Javascript module using Emscripten" + @echo "$$ make test" + @echo " - run simple load test of Javascript module using node.js" @echo "$$ make linux" @echo " - build native-code module on Linux (currently this is mostly for testing)" @echo "$$ make clean" @@ -106,6 +108,9 @@ $(SO_MODULE): $(OBJECTS) $(CXX) -o $@ $^ $(LDFLAGS) +test: em + node $(MY_DIR)/test/node-load-test.js $(shell pwd)/$(EM_MODULE) + clean: rm -f $(OBJECTS)