summaryrefslogtreecommitdiffstats
path: root/tests/top2049/002-at89c2051dip20.test
blob: 50fa8e6d3312c506e489dc626a442d375788297b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"
}
bues.ch cgit interface