2017-09-08 13:24:57 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-11-22 14:42:32 +03:00
|
|
|
set -e; # will make the script stop if there are any errors
|
|
|
|
|
2017-09-08 13:24:57 +03:00
|
|
|
stack build;
|
2017-11-21 13:53:32 +03:00
|
|
|
stack install;
|
2017-09-08 13:24:57 +03:00
|
|
|
|
2017-11-21 13:53:32 +03:00
|
|
|
carp ./examples/basics.carp;
|
|
|
|
carp ./examples/deleters.carp;
|
|
|
|
carp ./examples/copying.carp;
|
|
|
|
carp ./examples/polymorphic.carp;
|
|
|
|
carp ./examples/selection.carp;
|
|
|
|
carp ./examples/functor.carp;
|
|
|
|
carp ./examples/vec2.carp;
|
|
|
|
carp ./examples/array.carp;
|
|
|
|
carp ./examples/updating.carp;
|
|
|
|
carp ./examples/external_struct.carp;
|
2017-11-22 18:25:05 +03:00
|
|
|
carp ./examples/strings.carp -x;
|
2017-11-25 12:39:49 +03:00
|
|
|
carp ./examples/interfaces.carp -x;
|
2017-09-08 13:24:57 +03:00
|
|
|
|
2017-11-22 16:12:09 +03:00
|
|
|
carp ./test/double_math.carp -b; ./out/a.out;
|
|
|
|
carp ./test/float_math.carp -b; ./out/a.out;
|
|
|
|
carp ./test/int_math.carp -b; ./out/a.out;
|
2017-11-24 16:14:46 +03:00
|
|
|
carp ./test/long_math.carp -b; ./out/a.out;
|
2017-11-22 16:12:09 +03:00
|
|
|
carp ./test/safe_artihmetic.carp -b; ./out/a.out;
|
|
|
|
carp ./test/statistics.carp -b; ./out/a.out;
|
|
|
|
carp ./test/vector2.carp -b; ./out/a.out;
|
|
|
|
carp ./test/vector3.carp -b; ./out/a.out;
|
|
|
|
carp ./test/vectorn.carp -b; ./out/a.out;
|
2017-12-12 23:42:50 +03:00
|
|
|
carp ./test/control_flow.carp -b; ./out/a.out;
|
2017-11-21 13:53:32 +03:00
|
|
|
|
|
|
|
carp ./examples/game.carp -b;
|
2017-12-14 00:09:12 +03:00
|
|
|
|
|
|
|
echo "ALL TESTS DONE."
|