summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2010-06-04 18:30:15 +0300
committerElie Roux <elie.roux@telecom-bretagne.eu>2010-06-04 18:30:15 +0300
commit075ef195bf5c129ea9d7006e29d035a749f8fec1 (patch)
treef8b77c601de8b9c356155080cf46c736bf4d384b
parent3f931d6ada8fed6bfab060f660e938efbab3c5bb (diff)
downloadluaotfload-075ef195bf5c129ea9d7006e29d035a749f8fec1.tar.gz
Adding a test file for fonts.conf configuration
-rw-r--r--tests/fontconfig_conf_reading.tex6
-rw-r--r--tests/fonts.conf.test19
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/fontconfig_conf_reading.tex b/tests/fontconfig_conf_reading.tex
new file mode 100644
index 0000000..dbbbc3c
--- /dev/null
+++ b/tests/fontconfig_conf_reading.tex
@@ -0,0 +1,6 @@
+\directlua{
+require("lualibs")
+require("otfl-font-nms.lua")
+texio.write_nl(table.serialize(fonts.names.read_fonts_conf("fonts.conf.test", {})))
+}
+\bye
diff --git a/tests/fonts.conf.test b/tests/fonts.conf.test
new file mode 100644
index 0000000..0e5b961
--- /dev/null
+++ b/tests/fonts.conf.test
@@ -0,0 +1,19 @@
+<!-- this is a comment -->
+<!-- this is a comment with the <dir>test 0 failed!</dir> -->
+<!---->
+<!--
+this is a comment -->
+<!--
+this is a comment
+-->
+<!--
+this is a comment
+<dir>test -1 failed!</dir>
+-->
+<dir>test 1 ok</dir>
+<dir>test 2 ok</dir><dir>test 3 ok</dir>
+<dir>test 4 ok</dir><!-- comment--><dir>test 5 ok</dir>
+<!-- this starts to be more debian-specific... change it to fit your system -->
+<include>/etc/fonts/conf.d</include><!-- this is a dir -->
+<include>/etc/fonts/fonts.conf</include>
+<include ignore_missing="no">/etc/fonts/conf.d/69-unifont.conf</include>