From 209c6e1d726f1405e177038125375a52a3aa889a Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Sun, 7 Mar 2010 16:46:33 +0100 Subject: Add at89c2051dip20 support Signed-off-by: Michael Buesch --- tests/top2049/002-at89c2051dip20.test | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/top2049/002-at89c2051dip20.test (limited to 'tests') diff --git a/tests/top2049/002-at89c2051dip20.test b/tests/top2049/002-at89c2051dip20.test new file mode 100644 index 0000000..50fa8e6 --- /dev/null +++ b/tests/top2049/002-at89c2051dip20.test @@ -0,0 +1,23 @@ +#!/bin/bash + +function test_init +{ + request_DUT "at89c2051dip20" || return 1 + return 0 +} + +function test_run +{ + local args="--bitfile at89c2051dip20 -I bin -O bin" + + # Check signature + toprammer $args --read-sig "$tmpfile" + compare_file_to_hex $tmpfile "1E21" || die "signature mismatch" + + toprammer $args --erase + + # Check progmem + toprammer $args --write-prog "$testfile_2k" + toprammer $args --read-prog "$tmpfile" + compare_files "$testfile_2k" "$tmpfile" || die "progmem mismatch" +} -- cgit v1.2.3