MCE Test Scripts
From MCEWiki
The following test scripts are found in SVN in the /mce_script/test_suite directory. The scripts are as follows:
Bash Scripts
- addressing.scr
- biasing.scr
- hw_auto_cc
- hw_auto_cc_sram
- hw_man_cc_2slotbp
- hw_man_mce
- mce_check
- sram_test
- sys_auto_mce
- test_suite
- test_suite_library.bash
Python Scripts
To install the Emacs template file for python, type the following:
sudo apt-get install python-mode
Here is a sample starter script for the MCE:
mce@mce-ubc-2:~$ python Python 2.4.3 (#2, Mar 7 2008, 01:58:20) [GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.system('mce_cmd -x rb cc fw_rev') This is mce_cmd version MAS/trunk/230 Line 0 : ok : 0x400000b Processed 0 lines, exiting. 0 >>>
When creating a python script, for the script to be executable, you must put the following line of code at the top:
#!/bin/python
And you must change the permissions of the file to the following:
chmod a+x <python_script_name>