#!/bin/bash set -e WASMS="$@" [ -z "$WASMS" ] && echo "Usage: $0 .wasm..." && exit 1 PROFILE="debug" PROG=$(basename $0 .sh) BASE_DIR=$(dirname $0)/.. BIN="$BASE_DIR/../../target/$PROFILE/examples/$PROG" if [ "$PROFILE" = "release" ]; then cargo build --release --features iterator --example $PROG else cargo build --features iterator --example $PROG fi for W in $@; do echo -n "Checking $(basename "$W")... " $BIN $W done