Files
libiscsi/tests/Makefile.am
Ronnie Sahlberg e8a2296f94 Initial test branch for adding tests to libiscsi
These tests depends on not yet released version on TGTD to allow running
both TGTD and TGTADM as unprivileged users to set up and configure
targets to test against during make test.
Update TGTD to tip of master before running these tests.

See STGT mailinglist for patches.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2015-04-13 14:58:30 -07:00

18 lines
416 B
Makefile

AM_CPPFLAGS = -I../include "-D_U_=__attribute__((unused))" \
"-D_R_(A,B)=__attribute__((format(printf,A,B)))"
AM_CFLAGS = $(WARN_CFLAGS)
LDADD = ../lib/libiscsi.la
noinst_PROGRAMS = prog_reconnect prog_reconnect_timeout
T = `ls test_*.sh`
test: $(noinst_PROGRAMS)
for TEST in $(T); do \
echo "Running $$TEST"; \
echo "--------------"; \
sh $$TEST || exit 1; \
echo "--------------"; \
echo; \
done