/** * @return true if "require.lzo.tests" system property is set or if native * lzo libraries are loaded. */ static public boolean okToRunLzoTests(Configuration conf) throws IOException { if (Boolean.parseBoolean(System.getProperty("require.lzo.tests"))) { return true; } try { return LzoCodec.isNativeLzoLoaded(conf); } catch (UnsatisfiedLinkError e) { LOG.warn("Unable to load native LZO, skipping tests that require it.", e); } return false; } }