yanglint TEST for --ext-data by schema mount
diff --git a/tools/lint/tests/data/modsm.xml b/tools/lint/tests/data/modsm.xml
new file mode 100644
index 0000000..bb0793c
--- /dev/null
+++ b/tools/lint/tests/data/modsm.xml
@@ -0,0 +1,3 @@
+<root xmlns="urn:yanglint:modsm">
+ <lfl xmlns="urn:yanglint:modleaf">7</lfl>
+</root>
diff --git a/tools/lint/tests/data/modsm2.xml b/tools/lint/tests/data/modsm2.xml
new file mode 100644
index 0000000..ff6f103
--- /dev/null
+++ b/tools/lint/tests/data/modsm2.xml
@@ -0,0 +1,4 @@
+<root xmlns="urn:yanglint:modsm">
+ <lfl xmlns="urn:yanglint:modleaf">7</lfl>
+ <alf xmlns="urn:yanglint:modsm-augment">str</alf>
+</root>
diff --git a/tools/lint/tests/data/modsm_ctx_ext.xml b/tools/lint/tests/data/modsm_ctx_ext.xml
new file mode 100644
index 0000000..e80141a
--- /dev/null
+++ b/tools/lint/tests/data/modsm_ctx_ext.xml
@@ -0,0 +1,20 @@
+<yang-library xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-library">
+ <module-set>
+ <name>test-set</name>
+ <module>
+ <name>modleaf</name>
+ <namespace>urn:yanglint:modleaf</namespace>
+ </module>
+ </module-set>
+ <content-id>1</content-id>
+</yang-library>
+<modules-state xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-library">
+ <module-set-id>1</module-set-id>
+</modules-state>
+<schema-mounts xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-schema-mount">
+ <mount-point>
+ <module>modsm</module>
+ <label>root</label>
+ <inline></inline>
+ </mount-point>
+</schema-mounts>
diff --git a/tools/lint/tests/data/modsm_ctx_main.xml b/tools/lint/tests/data/modsm_ctx_main.xml
new file mode 100644
index 0000000..5405d4d
--- /dev/null
+++ b/tools/lint/tests/data/modsm_ctx_main.xml
@@ -0,0 +1,17 @@
+<yang-library xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-library">
+ <module-set>
+ <name>main-set</name>
+ <module>
+ <name>modsm</name>
+ <namespace>urn:yanglint:modsm</namespace>
+ </module>
+ <module>
+ <name>modsm-augment</name>
+ <namespace>urn:yanglint:modsm-augment</namespace>
+ </module>
+ </module-set>
+ <content-id>1</content-id>
+</yang-library>
+<modules-state xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-library">
+ <module-set-id>1</module-set-id>
+</modules-state>