Git Product home page Git Product logo

blts-watchdog's Introduction

Overview
========

This package contains several Watchdog functionality tests for generic
Linux-y mobile platforms.


Software Requirements
=====================

Building the package requires
  * linux >= 2.6.28
  * GNU libc >= 2.1
  * libbltscommon-dev >= 0.3.4

Running the tests in the package requires
  * linux >= 2.6.28
  * GNU libc >= 2.1
  * libbltscommon >= 0.3.4

Hardware requirements
=====================

Running the tests requires
  * One DUT

Building the package
====================

The package should build cleanly with GCC 4.x with the mentioned libraries.
The preferred way is to use Autotools for configuration and makefile generation.

The package builds (from the source tree root) with

 $ ./autogen.sh
 $ ./configure
 $ make

To build debian package

 $ dpkg-buildpackage -rfakeroot

To build RPM package

 $ ./pack.sh

Test cases
==========
   * Watchdog presence check: simple existence check for watchdog
   * Open and close watchdog: open watchdog device node, query information
   * Send keepalive messages: set keepalive timeout, send keepalive messages to
     watchdog for ten second. Note that the device should reboot after the test
     case finishes.

Running the tests
=================

Run as root:

 $ blts-watchdog-tests

Troubleshooting:
 * Ensure that /dev/watchdog exists ('ls -l /dev/watchdog').
   It is possible that the watchdog kernel module is not loaded, so you may need
   to modprobe it (the module is hardware specific).
 * Only one process can access /dev/watchog at a time.
   If you see this message from blts-watchdog-tests;
   '/dev/watchdog seems to exist, but is in use by some other process.'
   There might be some watchdog daemon or some other process using the
   watchdog. To run the tests this daemon/some other process must not be
   running. Use 'lsof /dev/watchdog' to find out who is using the watchdog.
   (Usually this means that you need to tweak init scripts. Just forcibly
   killing the process is not a good idea, as the watchdog will reset the
   device.)

To see other options for blts-watchdog-tests

 $ blts-watchdog-tests -h

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.