ENABLE_TESTING()
ADD_TEST(test_switch1 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_switch1')")
ADD_TEST(test_switch2 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_switch2')")
ADD_TEST(test_switch3 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_switch3')")
ADD_TEST(test_switch4 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_switch4')")
ADD_TEST(test_switch5 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_switch5')")
ADD_TEST(test_switch6 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_switch6')")
ADD_TEST(test_switch7 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_switch7')")
ADD_TEST(test_switch8 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_switch8')")
ADD_TEST(test_if1 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_if1')")
ADD_TEST(test_if2 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_if2')")
ADD_TEST(test_if3 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_if3')")
ADD_TEST(test_if4 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_if4')")
ADD_TEST(test_while1 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_while1')")
ADD_TEST(test_while2 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_while2')")
ADD_TEST(test_while3 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_while3')")
ADD_TEST(test_for1 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_for1')")
ADD_TEST(test_for2 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_for2')")
ADD_TEST(test_for3 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_for3')")
ADD_TEST(test_for4 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_for4')")
ADD_TEST(test_continue1 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_continue1')")
ADD_TEST(test_lasterr1 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_lasterr1')")
ADD_TEST(test_error1 ${FreeMat_Loc} "-e" "-nogui" "-t" "-nogreet" "-p" "${CMAKE_SOURCE_DIR}/tests/flow" "-f" "wrap_test('test_error1')")
