[COMMIT osv master] tests: do not include tst-solaris-taskq.so as part of ROFS image

3 views
Skip to first unread message

Commit Bot

unread,
Dec 27, 2021, 1:02:08 AM12/27/21
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

tests: do not include tst-solaris-taskq.so as part of ROFS image

With the commit https://github.com/cloudius-systems/osv/commit/d7a627484b34aa8254d8fe444972aa18fe007ca7
the ZFS part of the bsd/ tree is no longer part of the kernel.
The unit test tst-solaris-taskq.so that exercises code that is now
part of the libsolaris.so library should only get included and run
as part of the ZFS image of the tests.

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/modules/tests/Makefile b/modules/tests/Makefile
--- a/modules/tests/Makefile
+++ b/modules/tests/Makefile
@@ -91,7 +91,7 @@ rofs-only-tests := rofs/tst-chdir.so rofs/tst-symlink.so rofs/tst-readdir.so \
rofs/tst-concurrent-read.so

zfs-only-tests := tst-readdir.so tst-fallocate.so tst-fs-link.so \
- tst-concurrent-read.so
+ tst-concurrent-read.so misc-zfs-io.so tst-solaris-taskq.so

specific-fs-tests := $($(fs_type)-only-tests)

@@ -222,8 +222,6 @@ solaris-tests := tst-solaris-taskq.so
zfs-tests := misc-zfs-io.so
solaris-tests += $(zfs-tests)

-tests += $(solaris-tests)
-
$(zfs-tests:%=$(out)/tests/%): COMMON+= \
-DBUILDING_ZFS \
-I$(src)/bsd/sys/cddl/contrib/opensolaris/uts/common/fs/zfs \
@@ -268,7 +266,7 @@ common.manifest: build_all_tests $(lastword $(MAKEFILE_LIST)) usr.manifest.skel
"aarch64"*) ./add_aarch64_boost_libraries.sh $(OSV_BASE) >> $@ ;; \
*) LD_LIBRARY_PATH=$(boost-lib-dir) ldd $(addprefix $(out)/tests/,$(boost-tests)) | grep libboost | sed 's/ *[^ ] *\(.*\) => \(.*\) .*/\/usr\/lib\/\1: \2/' | sort | uniq >> $@ ;; \
esac
- @echo $(common-tests) $(solaris-tests) | tr ' ' '\n' | awk '{print "/tests/" $$0 ": ./tests/" $$0}' >> $@
+ @echo $(common-tests) | tr ' ' '\n' | awk '{print "/tests/" $$0 ": ./tests/" $$0}' >> $@

fs.manifest: build_all_tests $(lastword $(MAKEFILE_LIST)) FORCE
@echo " generating modules/tests/fs.manifest"
Reply all
Reply to author
Forward
0 new messages