Commit 6e59c2af authored by Bastien Nocera's avatar Bastien Nocera
Browse files

2008-04-10 Bastien Nocera <hadess@hadess.net>

	* Makefile.am: error out when one of the tests fails

	* freedesktop.org.xml.in: Fix matchlet for application/x-java,
	patch by David Faure <faure@kde.org> (Closes: #10334)

	* tests/helloworld.java (helloworld), (helloworld.main):
	* tests/list:
	* tests/test.class: Add test case for Class and Java source files
parent 7139b5c4
2008-04-10 Bastien Nocera <hadess@hadess.net>
* Makefile.am: error out when one of the tests fails
* freedesktop.org.xml.in: Fix matchlet for application/x-java,
patch by David Faure <faure@kde.org> (Closes: #10334)
* tests/helloworld.java (helloworld), (helloworld.main):
* tests/list:
* tests/test.class: Add test case for Class and Java source files
2008-04-10 Bastien Nocera <hadess@hadess.net>
* freedesktop.org.xml.in:
......
......@@ -59,18 +59,20 @@ uninstall-hook:
all: check
check:
if test -n $(XMLLINT) ; then \
@if test -n $(XMLLINT) ; then \
xmllint --noout --valid $(srcdir)/freedesktop.org.xml; \
fi
if test -d CVS/ && test -x ../xdgmime/src/test-mime-data ; then \
@if test -d CVS/ && test -x ../xdgmime/src/test-mime-data ; then \
mkdir -p $(builddir)/temp-mime-dir/mime/packages ; \
cp -a $(builddir)/freedesktop.org.xml $(builddir)/temp-mime-dir/mime/packages/ ; \
XDG_DATA_DIRS="$(builddir)/temp-mime-dir/" $(builddir)/update-mime-database "$(builddir)/temp-mime-dir/mime/" ; \
XDG_DATA_DIRS="$(builddir)/temp-mime-dir/" ../xdgmime/src/test-mime-data -v tests/list; \
XDG_DATA_DIRS="$(builddir)/temp-mime-dir/" ../xdgmime/src/test-mime-data -v tests/list || exit 1; \
rm -rf "$(builddir)/temp-mime-dir/" ; \
fi
if `grep comment $(srcdir)/freedesktop.org.xml.in | grep -v _comment | grep -q -v '<!'` ; then \
echo "Some comments are not marked as translatable, fix before committing" ; \
@if `grep comment $(srcdir)/freedesktop.org.xml.in | grep -v _comment | grep -q -v '<!'` ; then \
echo "***************************************************************************" ; \
echo "*** Some comments are not marked as translatable, fix before committing ***" ; \
echo "***************************************************************************" ; \
exit 1 ; \
fi
......@@ -1406,9 +1406,7 @@ command to generate the output files.
<mime-type type="application/x-java">
<_comment>Java class</_comment>
<magic priority="50">
<match type="host16" value="0xcafe" offset="0">
<match type="host16" value="0xbabe" offset="2"/>
</match>
<match type="big32" value="0xcafebabe" offset="0"/>
</magic>
<glob pattern="*.class"/>
</mime-type>
......
class helloworld
{
public static void main(String args[])
{
System.out.println("Hello World!");
}
}
......@@ -80,6 +80,7 @@ registry-nt.reg text/x-ms-regedit
test.ext,v text/plain ox
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=14329
test.fl application/x-fluid
helloworld.java text/x-java ox
# xml subtypes
test.ttx application/x-font-ttx
......@@ -87,6 +88,8 @@ test.ttx application/x-font-ttx
# Archives
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=14909
test.alz application/x-alz
# Copied from /usr/share/gettext/javaversion.class
test.class application/x-java
# other
text.pdf application/pdf
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment