mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
add a trivial test application for libstb-hal
Origin commit data
------------------
Branch: master
Commit: 2e80e46c7b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-02-05 (Sun, 05 Feb 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
noinst_LIBRARIES = libstb-hal.a
|
noinst_LIBRARIES = libstb-hal.a
|
||||||
libstb_hal_a_SOURCES =
|
libstb_hal_a_SOURCES =
|
||||||
SUBDIRS = common
|
SUBDIRS = common
|
||||||
|
bin_PROGRAMS = libstb-hal-test
|
||||||
|
|
||||||
libstb_hal_a_LIBADD = \
|
libstb_hal_a_LIBADD = \
|
||||||
common/lt_debug.o
|
common/lt_debug.o
|
||||||
|
|
||||||
|
libstb_hal_test_SOURCES = libtest.cpp
|
||||||
|
libstb_hal_test_LDADD = \
|
||||||
|
libstb-hal.a \
|
||||||
|
@DIRECTFB_LIBS@
|
||||||
|
|
||||||
# there has to be a better way to do this...
|
# there has to be a better way to do this...
|
||||||
if BOXTYPE_TRIPLE
|
if BOXTYPE_TRIPLE
|
||||||
SUBDIRS += libtriple
|
SUBDIRS += libtriple
|
||||||
|
25
libtest.cpp
Normal file
25
libtest.cpp
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/* minimal test program for libstb-hal
|
||||||
|
* (C) 2012 Stefan Seyfried
|
||||||
|
* License: GPL v2 or later
|
||||||
|
*
|
||||||
|
* this does just test the input converter thread for now...
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <include/init_td.h>
|
||||||
|
|
||||||
|
int main(int argc, char ** argv)
|
||||||
|
{
|
||||||
|
init_td_api();
|
||||||
|
while (1) {
|
||||||
|
sleep(1);
|
||||||
|
if (! access("/tmp/endtest", R_OK))
|
||||||
|
{
|
||||||
|
unlink("/tmp/endtest");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
shutdown_td_api();
|
||||||
|
return 0;
|
||||||
|
}
|
Reference in New Issue
Block a user