Mercurial > hg > icedtea7
view test/standalone/RH1195203.java @ 2879:2fbb359cc3c7
PR3115: Add check for elliptic curve cryptography implementation.
2015-05-20 Andrew John Hughes <gnu_andrew@member.fsf.org>
PR3115: Add check for elliptic curve
cryptography implementation.
* TestCryptoLevel.java: Moved to
test/standalone.
* rewriter/agpl-3.0.txt: Moved to
root directory.
* test/RH1195203.java: Likewise.
* Makefile.am:
(ECC_CHECK_BUILD_DIR): Added.
(CRYPTO_CHECK_SRCS): Update TestCryptoLevel.java
path.
(ECC_CHECK_SRCS): Added.
(MIME_TYPE_CHECK_SRCS): Update path.
(EXTRA_DIST): Add ECC_CHECK_SRCS.
(check-local): Add check-ecc.
(clean-tests): Add clean-check-ecc.
(clean-local): Add clean-ecccheck.
(ecccheck): Build ECC check test.
(clean-ecccheck): Cleanup ECC check test.
(check-ecc): Run ECC check test.
(clean-check-ecc): Cleanup run of ECC check test.
* NEWS: Updated.
* agpl-3.0.txt: Moved from rewriter as also
applies to tests.
* test/standalone/RH1195203.java: Moved from test.
* test/standalone/TestCryptoLevel.java: Moved from
root directory.
* test/standalone/TestEllipticCurveCryptoSupport.java:
Add check for elliptic curve cryptography support.
author | Andrew John Hughes <gnu_andrew@member.fsf.org> |
---|---|
date | Thu, 28 Jul 2016 03:46:39 +0100 |
parents | test/RH1195203.java@ff1876b84749 |
children |
line wrap: on
line source
/* RH1195203 -- Check correct recognition of mime types. Copyright (C) 2015 Red Hat, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program 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 Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ import javax.activation.MimetypesFileTypeMap; public class RH1195203 { public static void main(String[] args) { if (args.length == 0) { System.err.println("No file specified."); System.exit(-1); } System.out.println(MimetypesFileTypeMap.getDefaultFileTypeMap().getContentType(args[0])); } }