#!/bin/bash

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

VALID_FILES=${DIR}/valid/*.js

for f in $VALID_FILES
do
    validate-asm $f
    if [ $? -ne 0 ]; then
        exit 1
    fi
done

INVALID_FILES=${DIR}/invalid/*.js

for f in $INVALID_FILES
do
    validate-asm $f
    if [ $? -ne 1 ]; then
        exit 1
    fi
done

#!/bin/bash

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

VALID_FILES=${DIR}/valid/*.js

for f in $VALID_FILES
do
    ./bin/validate-asm $f
    if [ $? -ne 0 ]; then
        exit 1
    fi
done

INVALID_FILES=${DIR}/invalid/*.js

for f in $INVALID_FILES
do
    ./bin/validate-asm $f
    if [ $? -ne 1 ]; then
        exit 1
    fi
done

Use relative path to bin in test
Use relative path to bin in test
