the project root directory, which is still to be fixed; and *I think* known-failing tests which I don't intend to fix immediately should be marked in some way.
29 lines
615 B
Bash
Executable file
29 lines
615 B
Bash
Executable file
#!/bin/bash
|
|
|
|
result=0
|
|
|
|
echo -n "$0: progn with one form... "
|
|
expected='5'
|
|
actual=`echo "(progn (add 2 3))" | target/psse 2>/dev/null | tail -1`
|
|
|
|
if [ "${expected}" = "${actual}" ]
|
|
then
|
|
echo "OK"
|
|
else
|
|
echo "Fail: expected '${expected}', got '${actual}'"
|
|
result=`echo "${result} + 1" | bc`
|
|
fi
|
|
|
|
echo -n "$0: progn with two forms... "
|
|
expected='"foo"'
|
|
actual=`echo "(progn (add 2.5 3) \"foo\")" | target/psse 2>/dev/null | tail -1`
|
|
|
|
if [ "${expected}" = "${actual}" ]
|
|
then
|
|
echo "OK"
|
|
else
|
|
echo "Fail: expected '${expected}', got '${actual}'"
|
|
result=`echo "${result} + 1" | bc`
|
|
fi
|
|
|
|
exit ${result}
|