File: runtest

package info (click to toggle)
mcu8051ide 1.4.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 18,820 kB
  • sloc: tcl: 94,956; xml: 2,122; sh: 2,113; asm: 246; ansic: 96; awk: 18; makefile: 5
file content (23 lines) | stat: -rwxr-xr-x 755 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/bash

# --------------------------------------------------------------------------
#
# MCU 8051 IDE assembler regression testing
#
# This script defines what and how is suppose to be tested and runs the tests.
# See README files for more information.
#
# --------------------------------------------------------------------------


## Prepare regression testing environment
source "$(dirname $0)/../rte.lib.sh"	# Load regression test environment
RTE_TEST_NAME="Simulator engine"	# Set name of the tested subject

# Set other things ...
readonly SIMULATOR_COMMAND="tclsh ../../../lib/main.tcl --simulator"
set -o pipefail

function rte_perform_test() {
	m4 -D TESTCASE="${1}" "../testcases/${1}.in" | $SIMULATOR_COMMAND &> "${1}.out" || return 1
}