summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2011-01-16 01:42:05 +0100
committerMichael Buesch <mb@bu3sch.de>2011-01-16 01:42:05 +0100
commitba996a58eed43b0924cbaaa4d44d06aa0696e11c (patch)
treeecd24d5c39867d33537382cf9074d1a03e764c03 /tests
parent16e78c6f773c5a0188fd0b89723e5d0bb3b1c543 (diff)
downloadtoprammer-ba996a58eed43b0924cbaaa4d44d06aa0696e11c.tar.xz
toprammer-ba996a58eed43b0924cbaaa4d44d06aa0696e11c.zip
Add unit-test support
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-tests.sh4
-rw-r--r--tests/top2049/004-hm62256dip28.test4
2 files changed, 3 insertions, 5 deletions
diff --git a/tests/run-tests.sh b/tests/run-tests.sh
index 3592a83..b18d352 100755
--- a/tests/run-tests.sh
+++ b/tests/run-tests.sh
@@ -52,8 +52,8 @@ function toprammer
local args="$@"
local logfile="$tmpdir/toprammer.log"
- [ -n "$current_chipid" ] && args="$args --chip-id $current_chipid"
- args="$args -B -I bin -O bin"
+ [ -n "$current_chipid" ] && args="--chip-id $current_chipid $args"
+ args="-B -I bin -O bin $args"
echo " toprammer $args"
cd "$basedir/.." || die "Failed to chdir"
diff --git a/tests/top2049/004-hm62256dip28.test b/tests/top2049/004-hm62256dip28.test
index 84a7279..06c1354 100644
--- a/tests/top2049/004-hm62256dip28.test
+++ b/tests/top2049/004-hm62256dip28.test
@@ -8,7 +8,5 @@ function test_init
function test_run
{
- toprammer --write-ram "$testfile_32k"
- toprammer --read-ram "$tmpfile"
- compare_files "$testfile_32k" "$tmpfile" || die "RAM mismatch"
+ toprammer --test
}
bues.ch cgit interface