mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
lib: Rename test-utils -> unit-tests.
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -471,7 +471,7 @@ Makefile.in
|
||||
/src/structs-free.c
|
||||
/src/structs-print.c
|
||||
/src/structs-print.h
|
||||
/src/test-utils
|
||||
/src/unit-tests
|
||||
/stamp-h1
|
||||
/sysprep/.depend
|
||||
/sysprep/stamp-script1.sh
|
||||
|
||||
@@ -259,9 +259,9 @@ src/structs-compare.c
|
||||
src/structs-copy.c
|
||||
src/structs-free.c
|
||||
src/structs-print.c
|
||||
src/test-utils.c
|
||||
src/tmpdirs.c
|
||||
src/umask.c
|
||||
src/unit-tests.c
|
||||
src/utils.c
|
||||
src/wait.c
|
||||
src/whole-file.c
|
||||
|
||||
@@ -357,9 +357,9 @@ src/structs-compare.c
|
||||
src/structs-copy.c
|
||||
src/structs-free.c
|
||||
src/structs-print.c
|
||||
src/test-utils.c
|
||||
src/tmpdirs.c
|
||||
src/umask.c
|
||||
src/unit-tests.c
|
||||
src/utils.c
|
||||
src/wait.c
|
||||
src/whole-file.c
|
||||
|
||||
@@ -257,25 +257,24 @@ libvirt_is_version_CFLAGS = \
|
||||
endif
|
||||
|
||||
# Tests: main tests are in tests/c-api. Here we just have some
|
||||
# internal tests of utility functions. Note we don't just test what's
|
||||
# in utils.c, we can test other functions as well here.
|
||||
# internal tests of utility functions.
|
||||
|
||||
TESTS_ENVIRONMENT = $(top_builddir)/run --test
|
||||
LOG_COMPILER = $(VG)
|
||||
|
||||
TESTS = test-utils
|
||||
check_PROGRAMS = test-utils
|
||||
TESTS = unit-tests
|
||||
check_PROGRAMS = unit-tests
|
||||
|
||||
test_utils_SOURCES = test-utils.c
|
||||
test_utils_CPPFLAGS = \
|
||||
unit_tests_SOURCES = unit-tests.c
|
||||
unit_tests_CPPFLAGS = \
|
||||
-I$(top_srcdir)/gnulib/lib -I$(top_builddir)/gnulib/lib \
|
||||
-I$(top_srcdir)/src -I.
|
||||
test_utils_CFLAGS = \
|
||||
unit_tests_CFLAGS = \
|
||||
$(WARN_CFLAGS) $(WERROR_CFLAGS)
|
||||
# We have to link this to libguestfs, but because we want to test
|
||||
# non-exported functions we have to link with the objects not the
|
||||
# library.
|
||||
test_utils_LDADD = \
|
||||
unit_tests_LDADD = \
|
||||
$(libguestfs_la_OBJECTS) \
|
||||
$(libguestfs_la_LIBADD)
|
||||
|
||||
|
||||
@@ -19,9 +19,6 @@
|
||||
/**
|
||||
* Unit tests of internal functions.
|
||||
*
|
||||
* This is not just a test of F<src/utils.c>. We can test other
|
||||
* internal functions here too.
|
||||
*
|
||||
* These tests may use a libguestfs handle, but must not launch the
|
||||
* handle. Also, avoid long-running tests.
|
||||
*/
|
||||
Reference in New Issue
Block a user