diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2006-11-29 13:03:47 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2006-11-29 13:03:47 +0000 |
commit | e4483eb452b7108e0a38f46335c5800e0486a4f9 (patch) | |
tree | 24bd69d1aa0fb1c1df279263c6cbcafb2c3b746a /test | |
parent | d60075ae705cc109bb1e30b0bb63bf84c0d7a904 (diff) |
Makefile: improve make check process, generate C as well as Python
Diffstat (limited to 'test')
-rw-r--r-- | test/input/.git-darcs-dir | 0 | ||||
-rw-r--r-- | test/input/_Test.xml | 44 | ||||
-rw-r--r-- | test/input/all.xml | 25 | ||||
-rw-r--r-- | test/input/errors.xml | 33 |
4 files changed, 102 insertions, 0 deletions
diff --git a/test/input/.git-darcs-dir b/test/input/.git-darcs-dir new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/input/.git-darcs-dir diff --git a/test/input/_Test.xml b/test/input/_Test.xml new file mode 100644 index 00000000..66c64f8e --- /dev/null +++ b/test/input/_Test.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" ?> +<node name="/_Test" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"> + <tp:copyright> + Copyright (C) 2006 Collabora Limited + </tp:copyright> + <tp:license> + This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + </tp:license> + <interface name="org.freedesktop.Telepathy.SpecAutoGenTest" tp:name-const="TEST_INTERFACE"> + <method name="DoStuff"> + <arg direction="in" name="badger" type="b"/> + <arg direction="in" name="mushroom" type="a{sv}"/> + <arg direction="in" name="snake" type="s"/> + <arg direction="out" type="asa(uv)"/> + <tp:docstring> + Does stuff. + </tp:docstring> + </method> + <signal name="StuffHappened"> + <arg name="stoat" type="ay"/> + <arg name="ferret" type="s"/> + <arg name="weasel" type="b"/> + <tp:docstring> + Emitted when stuff happened. + </tp:docstring> + </signal> + <tp:docstring> + A test case for the spec processing. + </tp:docstring> + </interface> +</node> +<!-- vim:set sw=2 sts=2 et ft=xml: --> diff --git a/test/input/all.xml b/test/input/all.xml new file mode 100644 index 00000000..f18e8066 --- /dev/null +++ b/test/input/all.xml @@ -0,0 +1,25 @@ +<tp:spec + xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0" + xmlns:xi="http://www.w3.org/2001/XInclude"> + +<tp:version>0.1.2</tp:version> + +<tp:docstring> +Copyright (C) 2006 Collabora Limited + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. +</tp:docstring> + +<xi:include href="_Test.xml"/> + +<xi:include href="errors_test.xml"/> + +</tp:spec> diff --git a/test/input/errors.xml b/test/input/errors.xml new file mode 100644 index 00000000..b201926c --- /dev/null +++ b/test/input/errors.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" ?> +<tp:errors xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"> + <tp:error name="org.freedesktop.Telepathy.SpecAutoGenTest.MiscError" python="MiscError"> + <tp:docstring> + Raised whenever appropriate. + </tp:docstring> + </tp:error> + + <tp:error name="org.freedesktop.Telepathy.SpecAutoGenTest.OtherError" python="OtherError"> + <tp:docstring> + Raised at all other times. + </tp:docstring> + </tp:error> + + <tp:copyright> + Copyright (C) 2006 Collabora Limited + </tp:copyright> + <tp:license> + This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + </tp:license> +</tp:errors> |