Files
libite/test/Makefile.am
T
Joachim Wiberg 92bb0ca399 runbg: new helper function inspired by the Infix project
The runbg() function is a delayed execvp() that has double-forked to the
background (to not create zombies).  It is useful for running commands
in the background for APIs that need to return a reply, e.g. a NETCONF
RPC to reboot the system.

Compared to the original in Infix, this version double forks to reparent
itself to PID 1 (init), closes all open files, including stdio.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2023-09-17 11:00:09 +02:00

43 lines
1.2 KiB
Makefile

# Ignore warnings about unused result, in e.g. write()
AM_CFLAGS = -W -Wall -Wextra -Wno-unused-result
AM_CPPFLAGS = -D_GNU_SOURCE
AM_LDFLAGS = -L../src/ ../src/libite.la -static
EXTRA_DIST = check.h data/fexist/dir/.placeholder data/fexist/executable
EXTRA_DIST += data/fexist/link data/fexist/regular data/lfile/fstab
EXTRA_DIST += data/lfile/group data/lfile/passwd data/lfile/protocols
EXTRA_DIST += data/lfile/services data/which/executable
EXTRA_DIST += data/which/executable-link data/which/regular
CLEANFILES = *~ *.trs *.log
TESTS_ENVIRONMENT = ([ -d data ] || ln -sf $(srcdir)/data) &&
clean-local:
-find -type l -name data -exec rm {} \;
TESTS =
TESTS += chomp
TESTS += copyfile
TESTS += dir
TESTS += fexist
TESTS += fisdir
TESTS += fopenf
TESTS += fsendfile
TESTS += lfile
TESTS += makepath
TESTS += pidfile
TESTS += printhdr
TESTS += progress
TESTS += rsync
TESTS += runbg
TESTS += str
TESTS += strmatch
TESTS += systemf
TESTS += touch
TESTS += tempfile
TESTS += which
TESTS += yorn
check_PROGRAMS = $(TESTS)