#!/bin/sh

echo TESTING UNCIC / UNCI-TRANSLATE
echo KNOWN BUGS AND WEAKNESSES
echo SHOULD FAIL---vector doesnt support stream output '(check error msg)'
./uncic tests/vector-eq.u
echo SHOULD FAIL---misspelled for
./uncic tests/misspelled-for.u
echo SHOULD COMPILE---or give helpful error message
./uncic tests/Card-equal.u
echo SHOULD FAIL---with message about == not being defined
./uncic tests/Point-vector.u
echo SHOULD FAIL---with message about missing suite name
./uncic tests/omitted-suite-name.u
echo SHOULD COMPILE---if no fixture, tests: should be optional
./uncic tests/missing-tests-no-fixture.u
echo SHOULD FAIL---with message about missing semicolon or other helpful msg
./uncic tests/missing-semicolon.u
echo SHOULD COMPILE---init using c++11 unified init
./uncic tests/cpp11-init.u
echo SHOULD COMPILE---init of vec using c++11 unified init
./uncic tests/cpp11-vec-init.u


echo
echo WORKED LAST I CHECKED
echo SHOULD COMPILE---init of vector using = and aggregate
./uncic tests/vec-init-eq.u
echo SHOULD FAIL---no init
./uncic tests/no-init.u
echo SHOULD COMPILE---string and concatted string literal in == comparison
./uncic tests/concatted-strings.u
echo SHOULD COMPILE---size_t return, literal int expected
./uncic tests/size-return.u
echo SHOULD COMPILE---long return, literal int expected
./uncic tests/size-return.u
echo MAY FAIL---int and bool not directly ==able on line 6 '(check err msg)'
./uncic tests/int-and-bool.u
echo SHOULD COMPILE---string and string literal in == comparison
./uncic tests/strings-and-cstrings.u
echo SHOULD FAIL---bad identifier on line 9, column 19 '(check col num)'
./uncic tests/indentation.u
echo SHOULD FAIL---test started inside test, missing close '(check err msg)'
./uncic tests/test-in-test.u
echo SHOULD FAIL---bad included file on line 1 '(check line num)'
./uncic tests/prologue-error.u
echo SHOULD FAIL---omits test suite header on line 5
./uncic tests/bad-start.u
echo SHOULD FAIL---omits word fixture on line 7
./uncic tests/skips-fixture-label.u
echo SHOULD FAIL---missing close curly at eof
./uncic tests/early-end.u
echo SHOULD FAIL---missing word tests
./uncic tests/missing-tests.u
echo SHOULD FAIL---extra return stmt after tests
./uncic tests/extra-after-tests.u

echo
echo TESTING COMPILE SCRIPT:
echo SHOULD FAIL:
./compile 
echo SHOULD FAIL:
./compile -c
echo SHOULD SUCCEED:
./compile tests/Point_test.u tests/Point.cpp
echo SHOULD SUCCEED:
./compile -c tests/Point_test.u
echo SHOULD SUCCEED:
./compile -c tests/Point_test.u tests/Point.cpp
echo SHOULD SUCCEED:
./compile -c tests/Point.cpp
echo SHOULD SUCCEED:
./compile -c tests/hello.cpp
echo SHOULD SUCCEED:
./compile tests/hello.cpp


