mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-17 03:08:08 +02:00
* dbus/dbus-auth.c (handle_server_data_external_mech): args to dbus_credentials_match were backward * dbus/dbus-auth-script.c (_dbus_auth_script_run): support NO_CREDENTIALS and ROOT_CREDENTIALS * dbus/dbus-auth.c (_dbus_auth_do_work): move get_state() routine into here. Never process more commands after we've reached an end state; store further data as unused bytes. * test/data/auth/*: add more auth tests * dbus/dbus-auth-script.c (_dbus_auth_script_run): support EXPECT command to match exact string and EXPECT_UNUSED to match unused bytes * test/Makefile.am (dist-hook): fix to dist all the test stuff
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
|
|
INCLUDES=-I$(top_srcdir) $(DBUS_TEST_CFLAGS)
|
|
|
|
if DBUS_BUILD_TESTS
|
|
TEST_BINARIES=echo-client echo-server unbase64 bus-test break-loader
|
|
else
|
|
TEST_BINARIES=
|
|
endif
|
|
|
|
noinst_PROGRAMS= $(TEST_BINARIES)
|
|
|
|
echo_client_SOURCES= \
|
|
echo-client.c \
|
|
watch.c \
|
|
watch.h
|
|
|
|
echo_server_SOURCES= \
|
|
echo-server.c \
|
|
watch.c \
|
|
watch.h
|
|
|
|
unbase64_SOURCES= \
|
|
unbase64.c
|
|
|
|
|
|
bus_test_SOURCES = \
|
|
bus-test.c
|
|
|
|
break_loader_SOURCES= \
|
|
break-loader.c
|
|
|
|
TEST_LIBS=$(DBUS_TEST_LIBS) $(top_builddir)/dbus/libdbus-convenience.la $(top_builddir)/dbus/libdbus-1.la
|
|
|
|
echo_client_LDADD=$(TEST_LIBS)
|
|
echo_server_LDADD=$(TEST_LIBS)
|
|
unbase64_LDADD=$(TEST_LIBS)
|
|
break_loader_LDADD= $(TEST_LIBS)
|
|
bus_test_LDADD=$(TEST_LIBS) $(top_builddir)/bus/libdbus-daemon.la
|
|
|
|
dist-hook: \
|
|
DIRS="data data/valid-messages data/invalid-messages data/incomplete-messages data/auth" ; \
|
|
for D in $$DIRS; do \
|
|
test -d $(distdir)/$$D || mkdir $(distdir)/$$D ; \
|
|
done ; \
|
|
FILES=`find -name "*.message" -o -name "*.message-raw" -o -name "*.auth-script"` ; \
|
|
for F in $$FILES; do \
|
|
echo '-- Disting file '$$F ; \
|
|
cp $$F $(distdir)/$$F ; \
|
|
done
|