From ba996a58eed43b0924cbaaa4d44d06aa0696e11c Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Sun, 16 Jan 2011 01:42:05 +0100 Subject: Add unit-test support Signed-off-by: Michael Buesch --- tests/run-tests.sh | 4 ++-- tests/top2049/004-hm62256dip28.test | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'tests') 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 } -- cgit v1.2.3