blob: 71a16c20ba581fe66ed7523c78040e1de265a9d1 [file] [log] [blame]
Andreas Huber401cd162016-08-26 10:40:30 -07001base=/system
2export CLASSPATH=$base/framework/hidl_test_java.jar
3
4# Test native server with Java client
5hidl_test_java_native -s &
6sleep 1
7NATIVE_PID=$!
8(app_process $base/bin com.android.commands.hidl_test_java.HidlTestJava -c \
9 && echo "Java client => native server PASS") \
10 || echo "Java client => native server FAIL"
11
12kill $NATIVE_PID
13
14# Test Java server with native client
15app_process $base/bin com.android.commands.hidl_test_java.HidlTestJava -s &
16NATIVE_PID=$!
17sleep 1
18(hidl_test_java_native -c && echo "native client => Java server PASS") \
19 || echo "native client => Java server FAIL"
20
21kill $NATIVE_PID