aboutsummaryrefslogtreecommitdiff
path: root/tests/stack_machine_store
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-09-08 17:27:48 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-09-08 17:27:48 +0200
commitcbc2686373a5fe81b6b28f845edc323d4cae56e5 (patch)
treef53d38cbb32f441450f8d33ff315566f1e98ce5f /tests/stack_machine_store
parent0a49a2c1496888f0014cf09feb425d9cc47a75ba (diff)
downloadAGH-engineering-thesis-cbc2686373a5fe81b6b28f845edc323d4cae56e5.tar.gz
AGH-engineering-thesis-cbc2686373a5fe81b6b28f845edc323d4cae56e5.zip
modernize the build (test) system
Diffstat (limited to 'tests/stack_machine_store')
-rw-r--r--tests/stack_machine_store/Makefile10
-rw-r--r--[-rwxr-xr-x]tests/stack_machine_store/instructions.s.tcl4
2 files changed, 10 insertions, 4 deletions
diff --git a/tests/stack_machine_store/Makefile b/tests/stack_machine_store/Makefile
new file mode 100644
index 0000000..e662a5f
--- /dev/null
+++ b/tests/stack_machine_store/Makefile
@@ -0,0 +1,10 @@
+DEPENDS = instructions.mem words_to_verify.mem slave.v stack_machine.v div.v \
+ messages.vh
+
+IVFLAGS = \
+ -DINSTRUCTIONS_COUNT=$(call FILE_LINES,instructions.mem) \
+ -DWORDS_TO_VERIFY_COUNT=$(call FILE_LINES,words_to_verify.mem)
+
+TOP = stack_machine_test
+
+include ../../Makefile.test
diff --git a/tests/stack_machine_store/instructions.s.tcl b/tests/stack_machine_store/instructions.s.tcl
index f35461d..662912c 100755..100644
--- a/tests/stack_machine_store/instructions.s.tcl
+++ b/tests/stack_machine_store/instructions.s.tcl
@@ -1,7 +1,3 @@
-#!/usr/bin/env tclsh
-
-source tclasm.tcl
-
### simple test - write value hDEADBEEF to address h3ABCD;
### then, write value h900DDEED to address FFBCE, but use operand addressing
### (i.e. with hFFBBD in im and h00011 in r0)