|
| 1 | +package org.gstreamer; |
| 2 | + |
| 3 | +public class TestAll { |
| 4 | + public static void main(String[] args) { |
| 5 | + |
| 6 | + if (com.sun.jna.Platform.isMac()) { |
| 7 | + // Load GStreamer libraries in MacOSX. Assuming the binaries from David Liu's installer: |
| 8 | + // http://www.itee.uq.edu.au/~davel/gstreamer/ |
| 9 | + final String jnaLibraryPath = System.getProperty("jna.library.path"); |
| 10 | + final StringBuilder newJnaLibraryPath = new StringBuilder(jnaLibraryPath != null ? (jnaLibraryPath + ":") : ""); |
| 11 | + newJnaLibraryPath.append("/System/Library/Frameworks/GStreamer.framework/Versions/0.10-" + (com.sun.jna.Platform.is64Bit() ? "x64" : "i386") + "/lib:"); |
| 12 | + System.setProperty("jna.library.path", newJnaLibraryPath.toString()); |
| 13 | + } |
| 14 | + |
| 15 | + System.out.println("Testing StreamInfoTest..."); |
| 16 | + |
| 17 | + StreamInfoTest test; |
| 18 | + test = new StreamInfoTest(); |
| 19 | + |
| 20 | + try { |
| 21 | + System.out.println(" setUpBeforeClass()"); |
| 22 | + StreamInfoTest.setUpBeforeClass(); |
| 23 | + } catch (Exception e) { |
| 24 | + e.printStackTrace(); |
| 25 | + } |
| 26 | + |
| 27 | + try { |
| 28 | + System.out.println(" setUp()"); |
| 29 | + test.setUp(); |
| 30 | + } catch (Exception e) { |
| 31 | + e.printStackTrace(); |
| 32 | + } |
| 33 | + |
| 34 | + try { |
| 35 | + System.out.println(" testGetStreamType()"); |
| 36 | + test.testGetStreamType(); |
| 37 | + } catch (Exception e) { |
| 38 | + e.printStackTrace(); |
| 39 | + } |
| 40 | + |
| 41 | + |
| 42 | + try { |
| 43 | + System.out.println(" testGetMute()"); |
| 44 | + test.testGetMute(); |
| 45 | + } catch (Exception e) { |
| 46 | + e.printStackTrace(); |
| 47 | + } |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + try { |
| 52 | + System.out.println(" testGetCaps()"); |
| 53 | + test.testGetCaps(); |
| 54 | + } catch (Exception e) { |
| 55 | + e.printStackTrace(); |
| 56 | + } |
| 57 | + |
| 58 | + |
| 59 | +/* |
| 60 | + try { |
| 61 | + System.out.println(" testStreamInfoGC()"); |
| 62 | + test.testStreamInfoGC(); |
| 63 | + } catch (Exception e) { |
| 64 | + e.printStackTrace(); |
| 65 | + } |
| 66 | +*/ |
| 67 | + |
| 68 | + try { |
| 69 | + System.out.println(" testUseStreamInfoAfterBinStop()"); |
| 70 | + test.testUseStreamInfoAfterBinStop(); |
| 71 | + } catch (Exception e) { |
| 72 | + e.printStackTrace(); |
| 73 | + } |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + try { |
| 79 | + System.out.println(" tearDownAfterClass()"); |
| 80 | + StreamInfoTest.tearDownAfterClass(); |
| 81 | + } catch (Exception e) { |
| 82 | + e.printStackTrace(); |
| 83 | + } |
| 84 | + |
| 85 | + System.out.println("Done"); |
| 86 | + |
| 87 | + } |
| 88 | +} |
0 commit comments