1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-10-24 03:48:58 +03:00
Files
libssh2/tests/Makefile.am
Viktor Szakats 2ded2f95c5 tidy-up: prefer term 'container' over 'docker'
To reflect the support for multiple container engines, and to make
terminology more consistent and implementation-agnostic.

Also:
- add FIXME for `docker-machine ip` command that has been dropped
  upstream.

Follow-up to 9bd1f16dc2 #2605

Closes #2609
2026-09-13 11:54:32 +02:00

57 lines
1.4 KiB
Makefile

# Copyright (C) The libssh2 project and its contributors.
# SPDX-License-Identifier: BSD-3-Clause
SUBDIRS = ossfuzz
AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src -I$(top_srcdir)/include
AM_CPPFLAGS += -DLIBSSH2_TESTS
# This might hold -Werror
AM_CFLAGS = @LIBSSH2_CFLAG_EXTRAS@
# Get CONTAINER_TESTS, CONTAINER_TESTS_STATIC, STANDALONE_TESTS, STANDALONE_TESTS_STATIC, SSHD_TESTS,
# librunner_la_SOURCES, EXTRA_DIST variables and *_LDFLAGS for statically linked tests.
include Makefile.inc
if HAVE_LIB_STATIC
CONTAINER_TESTS += $(CONTAINER_TESTS_STATIC)
STANDALONE_TESTS += $(STANDALONE_TESTS_STATIC)
endif
# Some tests rely on the 'srcdir' env. Set by autotools automatically.
TESTS_ENVIRONMENT =
# Tests to run
TESTS =
if RUN_DOCKER_TESTS
TESTS += $(CONTAINER_TESTS)
endif
TESTS += $(STANDALONE_TESTS)
# TAP tests
TEST_EXTENSIONS = .test
# 'TEST' in 'TEST_LOG_DRIVER' is the test extension in uppercase.
TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/tap-driver.sh
TESTS_ENVIRONMENT += EXEEXT=$(EXEEXT)
if RUN_SSHD_TESTS
if SSHD
TESTS += test_sshd.test
TESTS_ENVIRONMENT += SSHD="$(SSHD)"
endif
endif
if RUN_DOCKER_TESTS
TESTS += test_read_algos.test
endif
# Tests to build
check_PROGRAMS = $(CONTAINER_TESTS) $(STANDALONE_TESTS) $(SSHD_TESTS)
# Internal library used by tests
LDADD = librunner.la
check_LTLIBRARIES = librunner.la
# This must be last in the list so it resolves symbols in previous libraries
LDADD += ../src/libssh2.la