Origen-SDK / origen_testers

Origen drivers/APIs for ATE tester platforms
http://origen-sdk.org/testers
MIT License
11 stars 23 forks source link

V93k tmm_console utility useful for creating test method libraries automatically #70

Open info-rchitect opened 6 years ago

info-rchitect commented 6 years ago

Hi,

There is a command on the V93K tester tmm_console tool:

/opt/hp93000/soc/testmethod/bin/tmm_console -e dump types

If you redirect it to an ASCII file you will get a file that looks like this:

testmethod 1 -- ccf_tml.CCT_SYNC
  location name: "CCT_SYNC.cpp:CCT_SYNC"
  shared lib path: "/opt/hp93000/soc/segments/tml/sh_lib/preload/libccf_tml.so"
  source project path: ""
  compiled with SmarTest version: "7.3.2.11, 05-Jul-16"
  parameter ids:
    CCF_ContextType :string, Synchronized
    CCF_FocusedPins :ContextPins, 
    CCF_AnalogRFSetName :string, 
    mIsRetest :string, 
  limit ids:
  testnumber ids:
testmethod 2 -- ccf_tml.CCRetest
  location name: "CCRetest.cpp:CCRetest"
  shared lib path: "/opt/hp93000/soc/segments/tml/sh_lib/preload/libccf_tml.so"
  source project path: ""
  compiled with SmarTest version: "7.3.2.11, 05-Jul-16"
  parameter ids:
    maxRepeatCountOn :string, OFF
    maxRepeatCount :int, 0
    SMC_SYNC_ON :string, OFF
  limit ids:
  testnumber ids:

I wrote a parser for the ASCII file that automatically creates the test method library hash required by the V93K test interface:

tml_hash = import_v93k_tml(@client_version, tml: /ccf\.*93k/)
add_tml :amd93k, tml_hash

It allows users to filter out some desired test method using regular expressions. Do you think this would be a good PR for origen_testers?

thx

info-rchitect commented 6 years ago

@rlaj @ginty @redxeth @coreyeng

ginty commented 6 years ago

Yep, I think that would be a good addition