summaryrefslogtreecommitdiffstats
path: root/tests/top2049/001-atmega32dip40.test
blob: ccaac4fedaebff3e760bf847d7651301158c0d2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

function test_init
{
	request_DUT "atmega32dip40" || return 1
	return 0
}

function test_run
{
	local args="--bitfile atmega32dip40 -I bin -O bin"

	# Check signature
	toprammer $args --read-sig "$tmpfile"
	compare_file_to_hex $tmpfile "1E9502" || die "signature mismatch"

	toprammer $args --erase

	# Check progmem
	toprammer $args --write-prog "$testfile_32k"
	toprammer $args --read-prog "$tmpfile"
	compare_files "$testfile_32k" "$tmpfile" || die "progmem mismatch"

	# Check EEPROM
	toprammer $args --write-eeprom "$testfile_1k"
	toprammer $args --read-eeprom "$tmpfile"
	compare_files "$testfile_1k" "$tmpfile" || die "EEPROM mismatch"
}
bues.ch cgit interface