Skip to content

Commit

Permalink
ws: drop test-server
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonkarlitskaya committed Jul 4, 2024
1 parent 47fa75c commit 2383815
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 2,147 deletions.
40 changes: 0 additions & 40 deletions src/ws/Makefile-ws.am
Original file line number Diff line number Diff line change
Expand Up @@ -57,46 +57,6 @@ pam_cockpit_cert_so_LDADD = -lpam
pam_cockpit_cert_so_LDFLAGS = -shared
pam_cockpit_cert_so_SOURCES = src/ws/pam_cockpit_cert.c

# -----------------------------------------------------------------------------
# test-server: server for running the html/browser unit tests against

check_PROGRAMS += test-server

test_server_CPPFLAGS = $(libcockpit_ws_a_CPPFLAGS) $(TEST_CPP)
test_server_LDADD = $(libcockpit_ws_a_LIBS) $(TEST_LIBS)

test_server_SOURCES = \
src/ws/mock-service.c \
src/ws/mock-service.h \
src/ws/test-server.c \
$(NULL)

test_server_CPPFLAGS += -I$(top_builddir)/src/ws
nodist_test_server_SOURCES = $(GDBUS_CODEGEN_GENERATED)

BUILT_SOURCES += $(GDBUS_CODEGEN_GENERATED)
CLEANFILES += $(GDBUS_CODEGEN_GENERATED)
GDBUS_CODEGEN_GENERATED = \
src/ws/mock-dbus-tests.h \
src/ws/mock-dbus-tests.c \
$(NULL)

EXTRA_DIST += $(GDBUS_CODEGEN_XML)
GDBUS_CODEGEN_XML = $(srcdir)/src/ws/com.redhat.Cockpit.DBusTests.xml

GDBUS_CODEGEN_INVOCATION = \
$(AM_V_GEN) gdbus-codegen \
--interface-prefix com.redhat.Cockpit.DBusTests \
--c-namespace Test \
--c-generate-object-manager \
$(NULL)

src/ws/mock-dbus-tests.h: $(GDBUS_CODEGEN_XML)
$(GDBUS_CODEGEN_INVOCATION) --header --output $@ $<

src/ws/mock-dbus-tests.c: $(GDBUS_CODEGEN_XML)
$(GDBUS_CODEGEN_INVOCATION) --body --output $@ $<

# -----------------------------------------------------------------------------
# Unit tests

Expand Down
180 changes: 0 additions & 180 deletions src/ws/com.redhat.Cockpit.DBusTests.xml

This file was deleted.

Loading

0 comments on commit 2383815

Please sign in to comment.