c@29: #!/bin/bash c@29: c@30: clean="" c@30: if [ "$1" = "clean" ]; then c@30: clean=yes c@30: fi c@30: c@29: set -eu c@29: c@29: for x in *; do c@30: if [ -d "$x" ] && [ -f "$x/Makefile" ]; then c@30: if [ -n "$clean" ]; then c@30: make -C "$x" clean c@30: fi c@30: make -C "$x" em c@29: fi c@29: done c@29: c@29: echo "Compiled:" c@29: ls -l */*.js c@30: c@30: for x in *; do c@30: if [ -d "$x" ] && [ -f "$x/Makefile" ]; then c@30: echo c@30: js=$(echo "$x"/*.js) c@30: if [ ! -f "$js" ]; then c@30: echo "Problem running test for $x: more than one js file? (js=$js)" c@30: else c@30: node ../piper-vamp-js/test/node-load-test.js "$(pwd)/$js" && \ c@30: echo "Successfully ran basic load-test on $js" c@30: fi c@30: fi c@30: done c@30: c@30: echo c@30: echo "All done" c@30: