diff --git a/test.sh b/test.sh index 68d1c20..e5f7b19 100755 --- a/test.sh +++ b/test.sh @@ -1,19 +1,17 @@ -#!/usr/bin/env bash - -set -euxo pipefail +#!/bin/sh echo "Python Tests" echo "Running Python Reverse Words Test" -echo 'load py tests/python/test.py\ninspect\ncall reverse_words("hello world")\nexit' | metacall | grep "dlrow olleh" +echo 'load py tests/python/test.py\ninspect\ncall reverse_words("hello world")\nexit' | metacall | grep "dlrow olleh" || exit 1 echo "Running Python Factorial Test" -echo "load py tests/python/test.py\ninspect\ncall factorial(3)\nexit" | metacall | grep "6" +echo "load py tests/python/test.py\ninspect\ncall factorial(3)\nexit" | metacall | grep "6" || exit 1 echo "NodeJS Tests" echo "Running NodeJS Reverse Words Test" -echo 'load node tests/node/test.js\ninspect\ncall reverseWord("hello world")\nexit' | metacall | grep "dlrow olleh" +echo 'load node tests/node/test.js\ninspect\ncall reverseWord("hello world")\nexit' | metacall | grep "dlrow olleh" || exit 1 echo "Running NodeJS Factorial Test" -echo "load node tests/node/test.js\ninspect\ncall factorial(3)\nexit" | metacall | grep "6" +echo "load node tests/node/test.js\ninspect\ncall factorial(3)\nexit" | metacall | grep "6" || exit 1