[subset] Add tests for collecting name_ids from STAT and FeatureParams
diff --git a/test/subset/data/Makefile.am b/test/subset/data/Makefile.am
index 5eee057..864db2d 100644
--- a/test/subset/data/Makefile.am
+++ b/test/subset/data/Makefile.am
@@ -67,6 +67,7 @@
 	expected/instance_comp_glyph_empty_child \
 	expected/post_apply_mvar_delta \
 	expected/apply_cvar_delta \
+	expected/collect_name_ids \
 	fonts \
 	profiles \
 	$(NULL)
diff --git a/test/subset/data/Makefile.sources b/test/subset/data/Makefile.sources
index 6fbb6ff..6437c00 100644
--- a/test/subset/data/Makefile.sources
+++ b/test/subset/data/Makefile.sources
@@ -58,6 +58,7 @@
 	tests/instance_comp_glyph_empty_child.tests \
 	tests/post_apply_mvar_delta.tests \
 	tests/apply_cvar_delta.tests \
+	tests/collect_name_ids.tests \
 	$(NULL)
 
 # TODO: re-enable once colrv1 subsetting is stabilized.
diff --git a/test/subset/data/expected/collect_name_ids/SourceSerif4Variable-Roman_subset.keep-all-layout-features.retain-all-codepoint.otf b/test/subset/data/expected/collect_name_ids/SourceSerif4Variable-Roman_subset.keep-all-layout-features.retain-all-codepoint.otf
new file mode 100644
index 0000000..c375eaa
--- /dev/null
+++ b/test/subset/data/expected/collect_name_ids/SourceSerif4Variable-Roman_subset.keep-all-layout-features.retain-all-codepoint.otf
Binary files differ
diff --git a/test/subset/data/fonts/SourceSerif4Variable-Roman_subset.otf b/test/subset/data/fonts/SourceSerif4Variable-Roman_subset.otf
new file mode 100644
index 0000000..e3a9f7b
--- /dev/null
+++ b/test/subset/data/fonts/SourceSerif4Variable-Roman_subset.otf
Binary files differ
diff --git a/test/subset/data/tests/collect_name_ids.tests b/test/subset/data/tests/collect_name_ids.tests
new file mode 100644
index 0000000..06b5cf7
--- /dev/null
+++ b/test/subset/data/tests/collect_name_ids.tests
@@ -0,0 +1,11 @@
+FONTS:
+SourceSerif4Variable-Roman_subset.otf
+
+PROFILES:
+keep-all-layout-features.txt
+
+SUBSETS:
+*
+
+OPTIONS:
+no_fonttools
diff --git a/test/subset/meson.build b/test/subset/meson.build
index cf3e80b..4f360a3 100644
--- a/test/subset/meson.build
+++ b/test/subset/meson.build
@@ -60,6 +60,7 @@
   'instance_comp_glyph_empty_child',
   'post_apply_mvar_delta',
   'apply_cvar_delta',
+  'collect_name_ids',
 ]
 
 repack_tests = [