summaryrefslogtreecommitdiffstats
path: root/ue3/mycpu/test
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-05-14 18:15:28 +0200
committermanuel <manuel@nc8430.lan>2009-05-14 18:15:28 +0200
commitad6ca84f6e93f983de926ae71f31f42325986f61 (patch)
treea28df3e6aa600fc7eec4194bc81dbda930de6c8f /ue3/mycpu/test
parent9e7c204525a50f36ba7aa7563f1a9702d0bb6f44 (diff)
downloadooprog-ad6ca84f6e93f983de926ae71f31f42325986f61.tar.gz
ooprog-ad6ca84f6e93f983de926ae71f31f42325986f61.tar.bz2
ooprog-ad6ca84f6e93f983de926ae71f31f42325986f61.zip
* making cdisplay a template
* adding some asserts * adding classdiagramm and protokoll * fixing protokoll.pdf in ue1
Diffstat (limited to 'ue3/mycpu/test')
-rw-r--r--ue3/mycpu/test/memory11
-rw-r--r--ue3/mycpu/test/program113
-rwxr-xr-xue3/mycpu/test/test.sh4
3 files changed, 3 insertions, 15 deletions
diff --git a/ue3/mycpu/test/memory1 b/ue3/mycpu/test/memory1
deleted file mode 100644
index 209e3ef..0000000
--- a/ue3/mycpu/test/memory1
+++ /dev/null
@@ -1 +0,0 @@
120
diff --git a/ue3/mycpu/test/program1 b/ue3/mycpu/test/program1
deleted file mode 100644
index ae5e9d2..0000000
--- a/ue3/mycpu/test/program1
+++ /dev/null
@@ -1,13 +0,0 @@
1# set R2 = 10
2LOAD R2, R1
3
4# start of loop
5label Loop:
6inc R3
7sub R4, R3, R2
8test R4
9jumpz EndLoop
10write WDEZ, R3
11jumpa Loop
12
13label EndLoop:
diff --git a/ue3/mycpu/test/test.sh b/ue3/mycpu/test/test.sh
index ad2ae4d..ff1076c 100755
--- a/ue3/mycpu/test/test.sh
+++ b/ue3/mycpu/test/test.sh
@@ -32,9 +32,11 @@ do
32 if [ "$md5_1" != "$md5_2" ] 32 if [ "$md5_1" != "$md5_2" ]
33 then 33 then
34 echo " ERROR: output and $reffile differ" 34 echo " ERROR: output and $reffile differ"
35 diff -Nau $reffile $tmpfile 35 diff -Naur "$reffile" "$tmpfile"
36 rm -rf "$tmpfile"
36 exit 1 37 exit 1
37 else 38 else
38 echo " SUCCESS" 39 echo " SUCCESS"
39 fi 40 fi
41 rm -rf "$tmpfile"
40done 42done