loom
1#!/bin/bash
2
3# Тест работы интерпретатора SBL (проверка операций и их простых ошибочных применений)
4
5echo "Тест работы интерпретатора SBL ====================================" > test/tmp/test-interpret-simodo-script-check.out
6
7for file in test/source/engine/check/*.s-script
8do
9echo "--- ${file} :" >> test/tmp/test-interpret-simodo-script-check.out
10cat ${file} >> test/tmp/test-interpret-simodo-script-check.out
11echo "--- interpret :" >> test/tmp/test-interpret-simodo-script-check.out
12bin/simodo-interpret -m math ${file} >> test/tmp/test-interpret-simodo-script-check.out
13done
14
15echo "Тест работы анализатора SBL ====================================" >> test/tmp/test-interpret-simodo-script-check.out
16
17for file in test/source/engine/check/*.s-script
18do
19echo "--- ${file} :" >> test/tmp/test-interpret-simodo-script-check.out
20cat ${file} >> test/tmp/test-interpret-simodo-script-check.out
21echo "--- interpret :" >> test/tmp/test-interpret-simodo-script-check.out
22bin/simodo-interpret -m math ${file} -p a >> test/tmp/test-interpret-simodo-script-check.out
23done
24
25exit 0
26