/* * POSIX.4 Timers tests & examples * * Written by J. Vidal * Copyright (C) Dec, 2002 OCERA Consortium. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * published by the Free Software Foundation version 2. * */ This directory contains 40 test programs, divided into three categories. In order to run them, please place in the desired directory, type make test and press enter. This will automatically load the test programs and show you the results. Next a brief description of each test is given: -self_buit: Self built tests. There are five test in this directory: -accuracity.c : Measures timers resolution for both absolute and relative specs. -signals_bandwidth.c: Measures RTLinux POSIX.1 signals bandwidth. -test.c: Test timers real-time constraints. Schedules a set of tasks with timers + signals or with RTLinux API (pthread_make_periodic_np, pthread_wait_np). Also allows to prove timers with system clock on mode periodic and one shot. -timers.c: Two threads programing the same timer. -simple_test.c: Basic test for timers API. -posixtestsuite: Open POSIX test suite timers tests, slightly modified to run on RTLinux. This tests are divided into four directories. Each one corresponding with the functionality to test (timer_create,timer_delete, timer_settime, timer_gettime). -hrt_test: Linux high resolution timers project tests, slightly modified to run on RTLinux. In the simple directory, two simple programs showing basic timers functionality are provided. The first one, implements periodic threads using signals and timers, while the second uses a timers to avoid machine hang up due to huge quantity of calculations. The bug directory solves a bug found in time_spec_add_ns function. Further information can be found in the README file placed in each directory.