| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # | 2 # |
| 3 # libjingle | 3 # libjingle |
| 4 # Copyright 2013 Google Inc. | 4 # Copyright 2013 Google Inc. |
| 5 # | 5 # |
| 6 # Redistribution and use in source and binary forms, with or without | 6 # Redistribution and use in source and binary forms, with or without |
| 7 # modification, are permitted provided that the following conditions are met: | 7 # modification, are permitted provided that the following conditions are met: |
| 8 # | 8 # |
| 9 # 1. Redistributions of source code must retain the above copyright notice, | 9 # 1. Redistributions of source code must retain the above copyright notice, |
| 10 # this list of conditions and the following disclaimer. | 10 # this list of conditions and the following disclaimer. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 echo "LD_PRELOAD isn't set. It should be set to something like " | 39 echo "LD_PRELOAD isn't set. It should be set to something like " |
| 40 echo "/usr/lib/x86_64-linux-gnu/libpulse.so.0. I will now refuse to run " | 40 echo "/usr/lib/x86_64-linux-gnu/libpulse.so.0. I will now refuse to run " |
| 41 echo "to protect you from the consequences of your folly." | 41 echo "to protect you from the consequences of your folly." |
| 42 exit 1 | 42 exit 1 |
| 43 fi | 43 fi |
| 44 | 44 |
| 45 export CLASSPATH=`pwd`/junit-4.11.jar | 45 export CLASSPATH=`pwd`/junit-4.11.jar |
| 46 CLASSPATH=$CLASSPATH:`pwd`/libjingle_peerconnection_test.jar | 46 CLASSPATH=$CLASSPATH:`pwd`/libjingle_peerconnection_test.jar |
| 47 CLASSPATH=$CLASSPATH:`pwd`/libjingle_peerconnection.jar | 47 CLASSPATH=$CLASSPATH:`pwd`/libjingle_peerconnection.jar |
| 48 | 48 |
| 49 # This sets java.library.path so our lookup of libpeerconnection.so works. | 49 # This sets java.library.path so lookup of libjingle_peerconnection_so.so works. |
| 50 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`:`pwd`/lib:`pwd`/lib.target | 50 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`:`pwd`/lib:`pwd`/lib.target |
| 51 | 51 |
| 52 # The RHS value is replaced by the build action that copies this script to | 52 # The RHS value is replaced by the build action that copies this script to |
| 53 # <(PRODUCT_DIR), using search-and-replace by the build action. | 53 # <(PRODUCT_DIR), using search-and-replace by the build action. |
| 54 export JAVA_HOME=GYP_JAVA_HOME | 54 export JAVA_HOME=GYP_JAVA_HOME |
| 55 | 55 |
| 56 ${JAVA_HOME}/bin/java -Xcheck:jni -classpath $CLASSPATH \ | 56 ${JAVA_HOME}/bin/java -Xcheck:jni -classpath $CLASSPATH \ |
| 57 junit.textui.TestRunner org.webrtc.PeerConnectionTestJava | 57 junit.textui.TestRunner org.webrtc.PeerConnectionTestJava |
| OLD | NEW |