summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-07-29 20:52:31 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-07-30 19:51:21 -0400
commit03be0d7237c7f250e01b785af4e4e4e8724a3e8f (patch)
tree1e623e5858b7e506eb278b851e2f9d71e96cd59e /tests
parentaa196c60df8bbe6f8e998780579b12863098107f (diff)
Move markup parse tests to the test framework
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am8
-rw-r--r--tests/markup-test.c214
-rw-r--r--tests/markups/expected-137
-rw-r--r--tests/markups/expected-106
-rw-r--r--tests/markups/expected-113
-rw-r--r--tests/markups/expected-251
-rw-r--r--tests/markups/expected-361
-rw-r--r--tests/markups/expected-429
-rw-r--r--tests/markups/expected-54
-rw-r--r--tests/markups/expected-66
-rw-r--r--tests/markups/expected-74
-rw-r--r--tests/markups/expected-85
-rw-r--r--tests/markups/expected-93
-rw-r--r--tests/markups/fail-1.gmarkup0
-rw-r--r--tests/markups/fail-10.gmarkup2
-rw-r--r--tests/markups/fail-11.gmarkup4
-rw-r--r--tests/markups/fail-12.gmarkup1
-rw-r--r--tests/markups/fail-13.gmarkup1
-rw-r--r--tests/markups/fail-14.gmarkup2
-rw-r--r--tests/markups/fail-15.gmarkup3
-rw-r--r--tests/markups/fail-16.gmarkup1
-rw-r--r--tests/markups/fail-17.gmarkup1
-rw-r--r--tests/markups/fail-18.gmarkup1
-rw-r--r--tests/markups/fail-19.gmarkup1
-rw-r--r--tests/markups/fail-2.gmarkup1
-rw-r--r--tests/markups/fail-20.gmarkup1
-rw-r--r--tests/markups/fail-21.gmarkup1
-rw-r--r--tests/markups/fail-22.gmarkup1
-rw-r--r--tests/markups/fail-23.gmarkup2
-rw-r--r--tests/markups/fail-24.gmarkup1
-rw-r--r--tests/markups/fail-25.gmarkup1
-rw-r--r--tests/markups/fail-26.gmarkup1
-rw-r--r--tests/markups/fail-27.gmarkup1
-rw-r--r--tests/markups/fail-28.gmarkup1
-rw-r--r--tests/markups/fail-29.gmarkup1
-rw-r--r--tests/markups/fail-3.gmarkup49
-rw-r--r--tests/markups/fail-30.gmarkup1
-rw-r--r--tests/markups/fail-31.gmarkup1
-rw-r--r--tests/markups/fail-32.gmarkup1
-rw-r--r--tests/markups/fail-33.gmarkup1
-rw-r--r--tests/markups/fail-34.gmarkup1
-rw-r--r--tests/markups/fail-35.gmarkup1
-rw-r--r--tests/markups/fail-36.gmarkup1
-rw-r--r--tests/markups/fail-37.gmarkup1
-rw-r--r--tests/markups/fail-38.gmarkup1
-rw-r--r--tests/markups/fail-39.gmarkup1
-rw-r--r--tests/markups/fail-4.gmarkup1
-rw-r--r--tests/markups/fail-40.gmarkup1
-rw-r--r--tests/markups/fail-5.gmarkup2
-rw-r--r--tests/markups/fail-6.gmarkup2
-rw-r--r--tests/markups/fail-7.gmarkup2
-rw-r--r--tests/markups/fail-8.gmarkup2
-rw-r--r--tests/markups/fail-9.gmarkup2
-rw-r--r--tests/markups/valid-1.gmarkup9
-rw-r--r--tests/markups/valid-10.gmarkup6
-rw-r--r--tests/markups/valid-11.gmarkup2
-rw-r--r--tests/markups/valid-2.gmarkup49
-rw-r--r--tests/markups/valid-3.gmarkup10
-rw-r--r--tests/markups/valid-4.gmarkup8
-rw-r--r--tests/markups/valid-5.gmarkup2
-rw-r--r--tests/markups/valid-6.gmarkup4
-rw-r--r--tests/markups/valid-7.gmarkup2
-rw-r--r--tests/markups/valid-8.gmarkup1
-rw-r--r--tests/markups/valid-9.gmarkup2
-rwxr-xr-xtests/run-markup-tests.sh41
65 files changed, 2 insertions, 665 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index fe4799798..6d5c102da 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -112,9 +112,9 @@ test_programs = \
unicode-caseconv \
unicode-encoding
-test_scripts = run-markup-tests.sh run-collate-tests.sh run-bookmark-test.sh run-assert-msg-test.sh
+test_scripts = run-collate-tests.sh run-bookmark-test.sh run-assert-msg-test.sh
-test_script_support_programs = markup-test unicode-collate bookmarkfile-test
+test_script_support_programs = unicode-collate bookmarkfile-test
check_PROGRAMS = $(test_programs) $(test_script_support_programs)
@@ -141,7 +141,6 @@ gio_test_LDADD = $(progs_ldadd)
iochannel_test_LDADD = $(progs_ldadd)
list_test_LDADD = $(progs_ldadd)
mainloop_test_LDADD = $(thread_ldadd)
-markup_test_LDADD = $(progs_ldadd)
mapping_test_LDADD = $(progs_ldadd)
module_test_LDADD = $(module_ldadd) $(module_test_exp)
module_test_LDFLAGS = $(G_MODULE_LDFLAGS)
@@ -180,9 +179,6 @@ dist-hook: $(BUILT_EXTRA_DIST)
for f in $$files; do \
if test -f $$f; then d=.; else d=$(srcdir); fi; \
cp $$d/$$f $(distdir) || exit 1; done
- mkdir $(distdir)/markups; \
- for f in $(srcdir)/markups/* ; do \
- cp $$f $(distdir)/markups; done
mkdir $(distdir)/collate; \
for f in $(srcdir)/collate/* ; do \
if test -f $$f; then cp $$f $(distdir)/collate; fi; done
diff --git a/tests/markup-test.c b/tests/markup-test.c
deleted file mode 100644
index 6d5f44b65..000000000
--- a/tests/markup-test.c
+++ /dev/null
@@ -1,214 +0,0 @@
-#undef G_DISABLE_ASSERT
-#undef G_LOG_DOMAIN
-
-#include <stdio.h>
-#include <glib.h>
-
-static int depth = 0;
-
-static void
-indent (int extra)
-{
- int i = 0;
- while (i < depth)
- {
- fputs (" ", stdout);
- ++i;
- }
-}
-
-static void
-start_element_handler (GMarkupParseContext *context,
- const gchar *element_name,
- const gchar **attribute_names,
- const gchar **attribute_values,
- gpointer user_data,
- GError **error)
-{
- int i;
-
- indent (0);
- printf ("ELEMENT '%s'\n", element_name);
-
- i = 0;
- while (attribute_names[i] != NULL)
- {
- indent (1);
-
- printf ("%s=\"%s\"\n",
- attribute_names[i],
- attribute_values[i]);
-
- ++i;
- }
-
- ++depth;
-}
-
-static void
-end_element_handler (GMarkupParseContext *context,
- const gchar *element_name,
- gpointer user_data,
- GError **error)
-{
- --depth;
- indent (0);
- printf ("END '%s'\n", element_name);
- }
-
-static void
-text_handler (GMarkupParseContext *context,
- const gchar *text,
- gsize text_len,
- gpointer user_data,
- GError **error)
-{
- indent (0);
- printf ("TEXT '%.*s'\n", (int)text_len, text);
-}
-
-
-static void
-passthrough_handler (GMarkupParseContext *context,
- const gchar *passthrough_text,
- gsize text_len,
- gpointer user_data,
- GError **error)
-{
- indent (0);
-
- printf ("PASS '%.*s'\n", (int)text_len, passthrough_text);
-}
-
-static void
-error_handler (GMarkupParseContext *context,
- GError *error,
- gpointer user_data)
-{
- fprintf (stderr, " %s\n", error->message);
-}
-
-static const GMarkupParser parser = {
- start_element_handler,
- end_element_handler,
- text_handler,
- passthrough_handler,
- error_handler
-};
-
-static const GMarkupParser silent_parser = {
- NULL,
- NULL,
- NULL,
- NULL,
- error_handler
-};
-
-static int
-test_in_chunks (const gchar *contents,
- gint length,
- gint chunk_size)
-{
- GMarkupParseContext *context;
- int i = 0;
-
- context = g_markup_parse_context_new (&silent_parser, 0, NULL, NULL);
-
- while (i < length)
- {
- int this_chunk = MIN (length - i, chunk_size);
-
- if (!g_markup_parse_context_parse (context,
- contents + i,
- this_chunk,
- NULL))
- {
- g_markup_parse_context_free (context);
- return 1;
- }
-
- i += this_chunk;
- }
-
- if (!g_markup_parse_context_end_parse (context, NULL))
- {
- g_markup_parse_context_free (context);
- return 1;
- }
-
- g_markup_parse_context_free (context);
-
- return 0;
-}
-
-static int
-test_file (const gchar *filename)
-{
- gchar *contents;
- gsize length;
- GError *error;
- GMarkupParseContext *context;
-
- error = NULL;
- if (!g_file_get_contents (filename,
- &contents,
- &length,
- &error))
- {
- fprintf (stderr, "%s\n", error->message);
- g_error_free (error);
- return 1;
- }
-
- context = g_markup_parse_context_new (&parser, 0, NULL, NULL);
-
- if (!g_markup_parse_context_parse (context, contents, length, NULL))
- {
- g_markup_parse_context_free (context);
- return 1;
- }
-
- if (!g_markup_parse_context_end_parse (context, NULL))
- {
- g_markup_parse_context_free (context);
- return 1;
- }
-
- g_markup_parse_context_free (context);
-
- /* A byte at a time */
- if (test_in_chunks (contents, length, 1) != 0)
- return 1;
-
- /* 2 bytes */
- if (test_in_chunks (contents, length, 2) != 0)
- return 1;
-
- /*5 bytes */
- if (test_in_chunks (contents, length, 5) != 0)
- return 1;
-
- /* 12 bytes */
- if (test_in_chunks (contents, length, 12) != 0)
- return 1;
-
- /* 1024 bytes */
- if (test_in_chunks (contents, length, 1024) != 0)
- return 1;
-
- return 0;
-}
-
-int
-main (int argc,
- char *argv[])
-{
- if (argc > 1)
- return test_file (argv[1]);
- else
- {
- fprintf (stderr, "Give a markup file on the command line\n");
- return 1;
- }
-}
-
diff --git a/tests/markups/expected-1 b/tests/markups/expected-1
deleted file mode 100644
index 8b6cdd77c..000000000
--- a/tests/markups/expected-1
+++ /dev/null
@@ -1,37 +0,0 @@
-PASS '<!-- Comment -->'
-PASS '<?PI ?>'
-ELEMENT 'foobar'
- TEXT '
-'
- ELEMENT 'e1'
- TEXT 'Hi & this is some text inside an element Two 'E' chars as character refs: E E and some 'J': J J'
- END 'e1'
- TEXT '
-'
- ELEMENT 'e2:foo'
- TEXT ' Text '
- ELEMENT 'childfree'
- END 'childfree'
- TEXT ' with some '
- ELEMENT 'nested'
- TEXT 'nested elements'
- END 'nested'
- TEXT ' and entities "& < >> ' and whitespace '
- END 'e2:foo'
- TEXT '
-'
- ELEMENT 'tag'
- ab="fo<o"
- bar="foo"
- baz="blah"
- TEXT 'This element has attributes'
- END 'tag'
- TEXT '
-'
- ELEMENT 'nochildren'
- a="b"
- xyz="qrs"
- END 'nochildren'
- TEXT '
-'
-END 'foobar'
diff --git a/tests/markups/expected-10 b/tests/markups/expected-10
deleted file mode 100644
index e7b8af84b..000000000
--- a/tests/markups/expected-10
+++ /dev/null
@@ -1,6 +0,0 @@
-ELEMENT 'foo'
-bar="baz"
-bar2="baz2"
-bar3="baz3"
- TEXT 'data'
-END 'foo'
diff --git a/tests/markups/expected-11 b/tests/markups/expected-11
deleted file mode 100644
index 781039429..000000000
--- a/tests/markups/expected-11
+++ /dev/null
@@ -1,3 +0,0 @@
-ELEMENT 'foo'
- TEXT 'data'
-END 'foo'
diff --git a/tests/markups/expected-2 b/tests/markups/expected-2
deleted file mode 100644
index 82a531ad6..000000000
--- a/tests/markups/expected-2
+++ /dev/null
@@ -1,51 +0,0 @@
-ELEMENT 'foobar'
- TEXT '
-Παν語
-
-This is a list of ways to say hello in various languages. Its purpose is to illustrate a number of scripts.
-
-(Converted into UTF-8)
-
----------------------------------------------------------
-Arabic السلام عليكم
-Czech (česky) Dobrý den
-Danish (Dansk) Hej, Goddag
-English Hello
-Esperanto Saluton
-Estonian Tere, Tervist
-FORTRAN PROGRAM
-Finnish (Suomi) Hei
-French (Français) Bonjour, Salut
-German (Deutsch Nord) Guten Tag
-German (Deutsch Süd) Grüß Gott
-Greek (Ελληνικά) Γειά σας
-Hebrew שלום
-Hindi नमस्ते, नमस्कार।
-Italiano Ciao, Buon giorno
-Maltese Ċaw, Saħħa
-Nederlands, Vlaams Hallo, Dag
-Norwegian (Norsk) Hei, God dag
-Polish Dzień dobry, Hej
-Russian (Русский) Здравствуйте!‎
-Slovak Dobrý deň
-Spanish (Español) ‎¡Hola!‎
-Swedish (Svenska) Hej, Goddag
-Thai (ภาษาไทย) สวัสดีครับ, สวัสดีค่ะ
-Turkish (Türkçe) Merhaba
-Vietnamese (Tiếng Việt) Xin Chào
-Yiddish (ײַדישע) דאָס הײַזעלע
-
-Japanese (日本語) こんにちは, コンニチハ
-Chinese (中文,普通话,汉语) 你好
-Cantonese (粵語,廣東話) 早晨, 你好
-Korean (한글) 안녕하세요, 안녕하십니까
-
-Difference among chinese characters in GB, JIS, KSC, BIG5:‎
- GB -- 元气 开发
- JIS -- 元気 開発
- KSC -- 元氣 開發
- BIG5 -- 元氣 開發
-
-
-'
-END 'foobar'
diff --git a/tests/markups/expected-3 b/tests/markups/expected-3
deleted file mode 100644
index 9b4465347..000000000
--- a/tests/markups/expected-3
+++ /dev/null
@@ -1,61 +0,0 @@
-ELEMENT 'foo'
- TEXT '
-'
- ELEMENT 'bar'
- a="1"
- END 'bar'
- TEXT '
-'
- ELEMENT 'bar'
- a="1"
- b="2"
- END 'bar'
- TEXT '
-'
- ELEMENT 'bar'
- a="1"
- b="2"
- c="3"
- END 'bar'
- TEXT '
-'
- ELEMENT 'bar'
- a="1"
- b="2"
- c="3"
- d="4"
- END 'bar'
- TEXT '
-'
- ELEMENT 'bar'
- a="1"
- b="2"
- c="3"
- d="4"
- e="5"
- END 'bar'
- TEXT '
-'
- ELEMENT 'bar'
- a="1"
- b="2"
- c="3"
- d="4"
- e="5"
- f="6"
- END 'bar'
- TEXT '
-'
- ELEMENT 'bar'
- a="1"
- b="2"
- c="3"
- END 'bar'
- TEXT '
-'
- ELEMENT 'bar'
- a="1"
- END 'bar'
- TEXT '
-'
-END 'foo'
diff --git a/tests/markups/expected-4 b/tests/markups/expected-4
deleted file mode 100644
index 395f453b7..000000000
--- a/tests/markups/expected-4
+++ /dev/null
@@ -1,29 +0,0 @@
-ELEMENT 'foo'
- TEXT '
-'
- ELEMENT 'bar'
- a="1"
- END 'bar'
- TEXT '
-'
- ELEMENT 'bar'
- a="2"
- END 'bar'
- TEXT '
-'
- ELEMENT 'bar'
- a="3""
- END 'bar'
- TEXT '
-'
- ELEMENT 'bar'
- a="4'"
- END 'bar'
- TEXT '
-'
- ELEMENT 'bar'
- a="5''''"
- END 'bar'
- TEXT '
-'
-END 'foo'
diff --git a/tests/markups/expected-5 b/tests/markups/expected-5
deleted file mode 100644
index 12d05c895..000000000
--- a/tests/markups/expected-5
+++ /dev/null
@@ -1,4 +0,0 @@
-PASS '<?xml version="1.0" ?>'
-ELEMENT 'foo'
- TEXT ''
-END 'foo'
diff --git a/tests/markups/expected-6 b/tests/markups/expected-6
deleted file mode 100644
index bfb41cefc..000000000
--- a/tests/markups/expected-6
+++ /dev/null
@@ -1,6 +0,0 @@
-PASS '<!DOCTYPE foo "foo" [
-<!ELEMENT foo ANY >
-]>'
-ELEMENT 'foo'
- TEXT ''
-END 'foo'
diff --git a/tests/markups/expected-7 b/tests/markups/expected-7
deleted file mode 100644
index 2fe197564..000000000
--- a/tests/markups/expected-7
+++ /dev/null
@@ -1,4 +0,0 @@
-PASS '<!-- a comment -->'
-ELEMENT 'foo'
- TEXT ''
-END 'foo'
diff --git a/tests/markups/expected-8 b/tests/markups/expected-8
deleted file mode 100644
index 5bbda0421..000000000
--- a/tests/markups/expected-8
+++ /dev/null
@@ -1,5 +0,0 @@
-ELEMENT 'foo'
- TEXT ''
- PASS '<![CDATA[ some <<<<>>>> CDATA ]]>'
- TEXT ''
-END 'foo'
diff --git a/tests/markups/expected-9 b/tests/markups/expected-9
deleted file mode 100644
index 781039429..000000000
--- a/tests/markups/expected-9
+++ /dev/null
@@ -1,3 +0,0 @@
-ELEMENT 'foo'
- TEXT 'data'
-END 'foo'
diff --git a/tests/markups/fail-1.gmarkup b/tests/markups/fail-1.gmarkup
deleted file mode 100644
index e69de29bb..000000000
--- a/tests/markups/fail-1.gmarkup
+++ /dev/null
diff --git a/tests/markups/fail-10.gmarkup b/tests/markups/fail-10.gmarkup
deleted file mode 100644
index fe16558d2..000000000
--- a/tests/markups/fail-10.gmarkup
+++ /dev/null
@@ -1,2 +0,0 @@
-<foo>
-</|foo> \ No newline at end of file
diff --git a/tests/markups/fail-11.gmarkup b/tests/markups/fail-11.gmarkup
deleted file mode 100644
index 216f40ccf..000000000
--- a/tests/markups/fail-11.gmarkup
+++ /dev/null
@@ -1,4 +0,0 @@
-<foo>
-<bar>
-</foo>
-</bar> \ No newline at end of file
diff --git a/tests/markups/fail-12.gmarkup b/tests/markups/fail-12.gmarkup
deleted file mode 100644
index a64029968..000000000
--- a/tests/markups/fail-12.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-</foo> \ No newline at end of file
diff --git a/tests/markups/fail-13.gmarkup b/tests/markups/fail-13.gmarkup
deleted file mode 100644
index a71928806..000000000
--- a/tests/markups/fail-13.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-</foo|> \ No newline at end of file
diff --git a/tests/markups/fail-14.gmarkup b/tests/markups/fail-14.gmarkup
deleted file mode 100644
index ed52a60c2..000000000
--- a/tests/markups/fail-14.gmarkup
+++ /dev/null
@@ -1,2 +0,0 @@
-<foo>
-< \ No newline at end of file
diff --git a/tests/markups/fail-15.gmarkup b/tests/markups/fail-15.gmarkup
deleted file mode 100644
index c3b59e0d7..000000000
--- a/tests/markups/fail-15.gmarkup
+++ /dev/null
@@ -1,3 +0,0 @@
-<foo>
-<bar>
-</bar> \ No newline at end of file
diff --git a/tests/markups/fail-16.gmarkup b/tests/markups/fail-16.gmarkup
deleted file mode 100644
index 20f0148d3..000000000
--- a/tests/markups/fail-16.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo/ \ No newline at end of file
diff --git a/tests/markups/fail-17.gmarkup b/tests/markups/fail-17.gmarkup
deleted file mode 100644
index 9f4093ee6..000000000
--- a/tests/markups/fail-17.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<fo \ No newline at end of file
diff --git a/tests/markups/fail-18.gmarkup b/tests/markups/fail-18.gmarkup
deleted file mode 100644
index e9d02b30e..000000000
--- a/tests/markups/fail-18.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo bar \ No newline at end of file
diff --git a/tests/markups/fail-19.gmarkup b/tests/markups/fail-19.gmarkup
deleted file mode 100644
index a253adf46..000000000
--- a/tests/markups/fail-19.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo \ No newline at end of file
diff --git a/tests/markups/fail-2.gmarkup b/tests/markups/fail-2.gmarkup
deleted file mode 100644
index c7e4a54df..000000000
--- a/tests/markups/fail-2.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-ν語
diff --git a/tests/markups/fail-20.gmarkup b/tests/markups/fail-20.gmarkup
deleted file mode 100644
index 39fcbad3a..000000000
--- a/tests/markups/fail-20.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo bar= \ No newline at end of file
diff --git a/tests/markups/fail-21.gmarkup b/tests/markups/fail-21.gmarkup
deleted file mode 100644
index 7ae8c6e9a..000000000
--- a/tests/markups/fail-21.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo bar="fdsf \ No newline at end of file
diff --git a/tests/markups/fail-22.gmarkup b/tests/markups/fail-22.gmarkup
deleted file mode 100644
index 9e20df031..000000000
--- a/tests/markups/fail-22.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo> \ No newline at end of file
diff --git a/tests/markups/fail-23.gmarkup b/tests/markups/fail-23.gmarkup
deleted file mode 100644
index b57a25b05..000000000
--- a/tests/markups/fail-23.gmarkup
+++ /dev/null
@@ -1,2 +0,0 @@
-<foo>
-<fo \ No newline at end of file
diff --git a/tests/markups/fail-24.gmarkup b/tests/markups/fail-24.gmarkup
deleted file mode 100644
index 778547fb8..000000000
--- a/tests/markups/fail-24.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<!-- dfklsjdf;kljsdf;ljk document ends here \ No newline at end of file
diff --git a/tests/markups/fail-25.gmarkup b/tests/markups/fail-25.gmarkup
deleted file mode 100644
index a3674e622..000000000
--- a/tests/markups/fail-25.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<? document ending unexpectedly \ No newline at end of file
diff --git a/tests/markups/fail-26.gmarkup b/tests/markups/fail-26.gmarkup
deleted file mode 100644
index 10e01505a..000000000
--- a/tests/markups/fail-26.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>&;</foo> \ No newline at end of file
diff --git a/tests/markups/fail-27.gmarkup b/tests/markups/fail-27.gmarkup
deleted file mode 100644
index ab00615bf..000000000
--- a/tests/markups/fail-27.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>&|;</foo> \ No newline at end of file
diff --git a/tests/markups/fail-28.gmarkup b/tests/markups/fail-28.gmarkup
deleted file mode 100644
index 3baf17202..000000000
--- a/tests/markups/fail-28.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>&am|;</foo> \ No newline at end of file
diff --git a/tests/markups/fail-29.gmarkup b/tests/markups/fail-29.gmarkup
deleted file mode 100644
index 4e6912fad..000000000
--- a/tests/markups/fail-29.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>&bar;</foo> \ No newline at end of file
diff --git a/tests/markups/fail-3.gmarkup b/tests/markups/fail-3.gmarkup
deleted file mode 100644
index 0eba18ab3..000000000
--- a/tests/markups/fail-3.gmarkup
+++ /dev/null
@@ -1,49 +0,0 @@
-<foobar>
-Παν語
-
-This is a list of ways to say hello in various languages. Its purpose is to illustrate a number of scripts.
-
-(Converted into UTF-8)
-
----------------------------------------------------------
-Arabic السلام عليكم
-Czech (česky) Dobrý den
-Danish (Dansk) Hej, Goddag
-English Hello
-Esperanto Saluton
-Estonian Tere, Tervist
-FORTRAN PROGRAM
-Finnish (Suomi) Hei
-French (Français) Bonjour, Salut
-German (Deutsch Nord) Guten Tag
-German (Deutsch Süd) Grüß Gott
-Greek (Ελληνικά) Γειά σας
-Hebrew שלום
-Hindi नमस्ते, मस्कार।
-Italiano Ciao, Buon giorno
-Maltese Ċaw, Saħħa
-Nederlands, Vlaams Hallo, Dag
-Norwegian (Norsk) Hei, God dag
-Polish Dzień dobry, Hej
-Russian (Русский) Здравствуйте!‎
-Slovak Dobrý deň
-Spanish (Español) ‎¡Hola!‎
-Swedish (Svenska) Hej, Goddag
-Thai (ภาษาไทย) สวัสดีครับ, สวัสดีค่ะ
-Turkish (Türkçe) Merhaba
-Vietnamese (Tiếng Việt) Xin Chào
-Yiddish (ײַדישע) דאָס הײַזעלע
-
-Japanese (日本語) こんにちは, コンニチハ
-Chinese (中文,普通话,汉语) 你好
-Cantonese (粵語,廣東話) 早晨, 你好
-Korean (한글) 안녕하세요, 안녕하십니까
-
-Difference among chinese characters in GB, JIS, KSC, BIG5:‎
- GB -- 元气 开发
- JIS -- 元気 開発
- KSC -- 元氣 開發
- BIG5 -- 元氣 開發
-
-
-</foobar> \ No newline at end of file
diff --git a/tests/markups/fail-30.gmarkup b/tests/markups/fail-30.gmarkup
deleted file mode 100644
index c8968a808..000000000
--- a/tests/markups/fail-30.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>&sdfkljsdsdfsdfsdfsdf</foo>
diff --git a/tests/markups/fail-31.gmarkup b/tests/markups/fail-31.gmarkup
deleted file mode 100644
index cde190d7a..000000000
--- a/tests/markups/fail-31.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>&#34592348345343453453455645765736575865767;</foo> \ No newline at end of file
diff --git a/tests/markups/fail-32.gmarkup b/tests/markups/fail-32.gmarkup
deleted file mode 100644
index 5e865d026..000000000
--- a/tests/markups/fail-32.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>&#x0;</foo>
diff --git a/tests/markups/fail-33.gmarkup b/tests/markups/fail-33.gmarkup
deleted file mode 100644
index 2cc33f497..000000000
--- a/tests/markups/fail-33.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>&#;</foo> \ No newline at end of file
diff --git a/tests/markups/fail-34.gmarkup b/tests/markups/fail-34.gmarkup
deleted file mode 100644
index f5523e41a..000000000
--- a/tests/markups/fail-34.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>&#234234</foo> \ No newline at end of file
diff --git a/tests/markups/fail-35.gmarkup b/tests/markups/fail-35.gmarkup
deleted file mode 100644
index d7f35120a..000000000
--- a/tests/markups/fail-35.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>gedit&</foo>
diff --git a/tests/markups/fail-36.gmarkup b/tests/markups/fail-36.gmarkup
deleted file mode 100644
index 4e90be4ba..000000000
--- a/tests/markups/fail-36.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>�</foo><^$non-carriage-null-fail|>
diff --git a/tests/markups/fail-37.gmarkup b/tests/markups/fail-37.gmarkup
deleted file mode 100644
index 95b7155f2..000000000
--- a/tests/markups/fail-37.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-< foo>
diff --git a/tests/markups/fail-38.gmarkup b/tests/markups/fail-38.gmarkup
deleted file mode 100644
index b7d37df8d..000000000
--- a/tests/markups/fail-38.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>data< /foo>
diff --git a/tests/markups/fail-39.gmarkup b/tests/markups/fail-39.gmarkup
deleted file mode 100644
index 7cf2e2a27..000000000
--- a/tests/markups/fail-39.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo>data</ foo>
diff --git a/tests/markups/fail-4.gmarkup b/tests/markups/fail-4.gmarkup
deleted file mode 100644
index 191028156..000000000
--- a/tests/markups/fail-4.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-foo \ No newline at end of file
diff --git a/tests/markups/fail-40.gmarkup b/tests/markups/fail-40.gmarkup
deleted file mode 100644
index f4c1a7025..000000000
--- a/tests/markups/fail-40.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<bla>&unknownentityname;</bla>
diff --git a/tests/markups/fail-5.gmarkup b/tests/markups/fail-5.gmarkup
deleted file mode 100644
index 41d8a3e11..000000000
--- a/tests/markups/fail-5.gmarkup
+++ /dev/null
@@ -1,2 +0,0 @@
-<|foo>
-</|foo>
diff --git a/tests/markups/fail-6.gmarkup b/tests/markups/fail-6.gmarkup
deleted file mode 100644
index 4c63568bc..000000000
--- a/tests/markups/fail-6.gmarkup
+++ /dev/null
@@ -1,2 +0,0 @@
-<foo|>
-</foo> \ No newline at end of file
diff --git a/tests/markups/fail-7.gmarkup b/tests/markups/fail-7.gmarkup
deleted file mode 100644
index 5585bd630..000000000
--- a/tests/markups/fail-7.gmarkup
+++ /dev/null
@@ -1,2 +0,0 @@
-<foo bar}"baz">
-</foo> \ No newline at end of file
diff --git a/tests/markups/fail-8.gmarkup b/tests/markups/fail-8.gmarkup
deleted file mode 100644
index b355951fb..000000000
--- a/tests/markups/fail-8.gmarkup
+++ /dev/null
@@ -1,2 +0,0 @@
-<foo/}>
-</foo> \ No newline at end of file
diff --git a/tests/markups/fail-9.gmarkup b/tests/markups/fail-9.gmarkup
deleted file mode 100644
index edd559685..000000000
--- a/tests/markups/fail-9.gmarkup
+++ /dev/null
@@ -1,2 +0,0 @@
-<foo bar={baz">
-</foo> \ No newline at end of file
diff --git a/tests/markups/valid-1.gmarkup b/tests/markups/valid-1.gmarkup
deleted file mode 100644
index 6745c5ca6..000000000
--- a/tests/markups/valid-1.gmarkup
+++ /dev/null
@@ -1,9 +0,0 @@
- <!-- Comment -->
-<?PI ?>
-<foobar>
-<e1>Hi &amp; this is some text inside an element Two 'E' chars as character refs: &#69; &#x45; and some 'J': &#74; &#x4A;</e1>
-<e2:foo> Text <childfree/> with some <nested>nested elements</nested> and entities &quot;&amp; &lt; &gt;&gt; &apos; and whitespace </e2:foo>
-<tag ab="fo&lt;o" bar="foo" baz="blah">This element has attributes</tag>
-<nochildren a="b" xyz="qrs"/>
-</foobar>
- \ No newline at end of file
diff --git a/tests/markups/valid-10.gmarkup b/tests/markups/valid-10.gmarkup
deleted file mode 100644
index cbeb68e43..000000000
--- a/tests/markups/valid-10.gmarkup
+++ /dev/null
@@ -1,6 +0,0 @@
-<foo
- bar="baz"
-bar2 = "baz2"
-bar3 =
-"baz3"
->data</foo>
diff --git a/tests/markups/valid-11.gmarkup b/tests/markups/valid-11.gmarkup
deleted file mode 100644
index fe1cc4e73..000000000
--- a/tests/markups/valid-11.gmarkup
+++ /dev/null
@@ -1,2 +0,0 @@
-<foo
->data</foo>
diff --git a/tests/markups/valid-2.gmarkup b/tests/markups/valid-2.gmarkup
deleted file mode 100644
index 4a3fa6939..000000000
--- a/tests/markups/valid-2.gmarkup
+++ /dev/null
@@ -1,49 +0,0 @@
-<foobar>
-Παν語
-
-This is a list of ways to say hello in various languages. Its purpose is to illustrate a number of scripts.
-
-(Converted into UTF-8)
-
----------------------------------------------------------
-Arabic السلام عليكم
-Czech (česky) Dobrý den
-Danish (Dansk) Hej, Goddag
-English Hello
-Esperanto Saluton
-Estonian Tere, Tervist
-FORTRAN PROGRAM
-Finnish (Suomi) Hei
-French (Français) Bonjour, Salut
-German (Deutsch Nord) Guten Tag
-German (Deutsch Süd) Grüß Gott
-Greek (Ελληνικά) Γειά σας
-Hebrew שלום
-Hindi नमस्ते, नमस्कार।
-Italiano Ciao, Buon giorno
-Maltese Ċaw, Saħħa
-Nederlands, Vlaams Hallo, Dag
-Norwegian (Norsk) Hei, God dag
-Polish Dzień dobry, Hej
-Russian (Русский) Здравствуйте!‎
-Slovak Dobrý deň
-Spanish (Español) ‎¡Hola!‎
-Swedish (Svenska) Hej, Goddag
-Thai (ภาษาไทย) สวัสดีครับ, สวัสดีค่ะ
-Turkish (Türkçe) Merhaba
-Vietnamese (Tiếng Việt) Xin Chào
-Yiddish (ײַדישע) דאָס הײַזעלע
-
-Japanese (日本語) こんにちは, コンニチハ
-Chinese (中文,普通话,汉语) 你好
-Cantonese (粵語,廣東話) 早晨, 你好
-Korean (한글) 안녕하세요, 안녕하십니까
-
-Difference among chinese characters in GB, JIS, KSC, BIG5:‎
- GB -- 元气 开发
- JIS -- 元気 開発
- KSC -- 元氣 開發
- BIG5 -- 元氣 開發
-
-
-</foobar> \ No newline at end of file
diff --git a/tests/markups/valid-3.gmarkup b/tests/markups/valid-3.gmarkup
deleted file mode 100644
index aed984e2f..000000000
--- a/tests/markups/valid-3.gmarkup
+++ /dev/null
@@ -1,10 +0,0 @@
-<foo>
-<bar a="1"/>
-<bar a="1" b="2"/>
-<bar a="1" b="2" c="3"/>
-<bar a="1" b="2" c="3" d="4"/>
-<bar a="1" b="2" c="3" d="4" e="5"/>
-<bar a="1" b="2" c="3" d="4" e="5" f="6"/>
-<bar a="1" b="2" c="3"/>
-<bar a="1"/>
-</foo>
diff --git a/tests/markups/valid-4.gmarkup b/tests/markups/valid-4.gmarkup
deleted file mode 100644
index 20361623f..000000000
--- a/tests/markups/valid-4.gmarkup
+++ /dev/null
@@ -1,8 +0,0 @@
-<foo>
-<bar a='1'/>
-<bar a="2"/>
-<bar a='3"'/>
-<bar a="4'"/>
-<bar a="5''''"/>
-</foo>
-
diff --git a/tests/markups/valid-5.gmarkup b/tests/markups/valid-5.gmarkup
deleted file mode 100644
index 3b861de5a..000000000
--- a/tests/markups/valid-5.gmarkup
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" ?>
-<foo></foo>
diff --git a/tests/markups/valid-6.gmarkup b/tests/markups/valid-6.gmarkup
deleted file mode 100644
index d7c065a32..000000000
--- a/tests/markups/valid-6.gmarkup
+++ /dev/null
@@ -1,4 +0,0 @@
-<!DOCTYPE foo "foo" [
-<!ELEMENT foo ANY >
-]>
-<foo></foo>
diff --git a/tests/markups/valid-7.gmarkup b/tests/markups/valid-7.gmarkup
deleted file mode 100644
index 832445d6d..000000000
--- a/tests/markups/valid-7.gmarkup
+++ /dev/null
@@ -1,2 +0,0 @@
-<!-- a comment -->
-<foo></foo>
diff --git a/tests/markups/valid-8.gmarkup b/tests/markups/valid-8.gmarkup
deleted file mode 100644
index a75aee055..000000000
--- a/tests/markups/valid-8.gmarkup
+++ /dev/null
@@ -1 +0,0 @@
-<foo><![CDATA[ some <<<<>>>> CDATA ]]></foo>
diff --git a/tests/markups/valid-9.gmarkup b/tests/markups/valid-9.gmarkup
deleted file mode 100644
index 90a99a042..000000000
--- a/tests/markups/valid-9.gmarkup
+++ /dev/null
@@ -1,2 +0,0 @@
-<foo>data</foo
->
diff --git a/tests/run-markup-tests.sh b/tests/run-markup-tests.sh
deleted file mode 100755
index 38074cc7c..000000000
--- a/tests/run-markup-tests.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#! /bin/sh
-
-fail ()
-{
- echo "Test failed: $*"
- exit 1
-}
-
-echo_v ()
-{
- if [ "$verbose" = "1" ]; then
- echo "$*"
- fi
-}
-
-error_out=/dev/null
-if [ "$1" = "-v" ]; then
- verbose=1
- error_out=/dev/stderr
-fi
-for I in ${srcdir:-.}/markups/fail-*.gmarkup; do
- echo_v "Parsing $I, should fail"
- ./markup-test $I > /dev/null 2> $error_out && fail "failed to generate error on $I"
- if test "$?" != "1"; then
- fail "unexpected error on $I"
- fi
-done
-
-I=1
-while test $I -lt 100 ; do
- F=${srcdir:-.}/markups/valid-$I.gmarkup
- if [ -f $F ] ; then
- echo_v "Parsing $F, should succeed"
- ./markup-test $F > actual 2> $error_out || fail "failed on $F"
- diff ${srcdir:-.}/markups/expected-$I actual || fail "unexpected output on $F"
- rm actual
- fi
- I=`expr $I + 1`
-done
-
-echo_v "All tests passed."