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