at89c2051dip20.test 390 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. test_init()
  3. {
  4. request_DUT "at89c2051dip20" || return 1
  5. return 0
  6. }
  7. test_run()
  8. {
  9. # Check signature
  10. toprammer --read-sig "$tmpfile"
  11. compare_file_to_hex $tmpfile "1E21" || die "signature mismatch"
  12. toprammer --erase
  13. # Check progmem
  14. toprammer --write-prog "$testfile_2k"
  15. toprammer --read-prog "$tmpfile"
  16. compare_files "$testfile_2k" "$tmpfile" || die "progmem mismatch"
  17. }