-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Expand file tree
/
Copy pathtest_all.sh
More file actions
executable file
·30 lines (23 loc) · 907 Bytes
/
test_all.sh
File metadata and controls
executable file
·30 lines (23 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -e # Exit immediately if a command exits with a non-zero status.
for p in $(cat projects.conf); do
echo
echo
echo Running unit and Android tests in $p
echo "====================================================================="
pushd $p > /dev/null # Silent pushd
./gradlew $@ testDebug | sed "s@^@$p @" # Prefix every line with directory
if [ "$p" == "unit/BasicNativeAndroidTest" ]; then
./gradlew $@ nexusOneApi30CoreDebugAndroidTest --info | sed "s@^@$p @" # Prefix every line with directory
./gradlew $@ nexusOneApi30NativeTestDebugAndroidTest --info | sed "s@^@$p @"
else
./gradlew $@ nexusOneApi30DebugAndroidTest --info | sed "s@^@$p @" # Prefix every line with directory
fi
code=${PIPESTATUS[0]}
if [ "$code" -ne "0" ]; then
exit $code
fi
popd > /dev/null # Silent popd
done
echo
echo "ALL TESTS PASS"