View source for Testing scripts

From Openmoko

Jump to: navigation, search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Administrators.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page:

Return to Testing scripts.

Personal tools

Install the testing_scripts package (opkg install openmoko-qa-scripts) to get access to the following commands:

  • test_kernel => print the kernel version
  • test_bt on|off => turn bluetooth on or off
  • test_rotation 0|1|2|3 => rotate the screen
  • test_loop cmd loop_count => repeat the command "cmd" loop_count times


Other helpful tools:

  • cat file => print a file on the screen (cat /proc/cpuinfo)
  • mkdir/rmdir => creates/removes a directory
  • grep word => search for word in a given text (cat /proc/cpuinfo | grep name)
  • xrandr => rotate the screen


Useful commands:

  • cmd 1 && cmd 2 => if cmd1 coompleted successfully run the second command (date && test_bt on && test_bt off)
  • cmd1; cmd2 => run all commands no matter the result (date; test_bt on; test_bt off)
  • cmd > file => save the output of the command in the file (overwrites existing file)
  • cmd >> file => save the output of the command in the file (appends to existing file or creates a new file)