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>
This commit is contained in:
17
tests/Makefile.am
Normal file
17
tests/Makefile.am
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
Reference in New Issue
Block a user