Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 147: Test command: "C:\Program Files\Git\usr\bin\bash.exe" "D:/GitHub/dailyprophet-ar/corrade/src/Corrade/TestSuite/AdbRunner.sh" "D:/GitHub/dailyprophet-ar/build-arm-android/magnum/src/Magnum/TextureTools/Test" "TextureToolsDistanceFieldGLTest " "D:/GitHub/dailyprophet-ar/magnum/src/Magnum/TextureTools/Test/DistanceFieldGLTestFiles/input.tga@DistanceFieldGLTestFiles/input.tga" "D:/GitHub/dailyprophet-ar/magnum/src/Magnum/TextureTools/Test/DistanceFieldGLTestFiles/output.tga@DistanceFieldGLTestFiles/output.tga"
- 147: Test timeout computed to be: 10000000
- 147:
- 147: # Usage:
- 147: # ./AdbRunner.sh /path/to/test/binary/dir executable-name-and-args additional files...
- 147: binary_dir=$1
- 147: filename_and_args=$2
- 147: filename=${filename_and_args%% *}
- 147: # So the additional files are available in $@
- 147: shift && shift
- 147:
- 147: if [ "$(adb get-state | tr -d '\r\n')" != "device" ]; then
- 147: echo "ERROR: no device connected"
- 147: exit 1
- 147: fi
- 147:
- 147: # Propagate relevant test environment variables. If CORRADE_TEST_COLOR is not
- 147: # set, detect isatty() on client-side and pass it through
- 147: test_env=
- 147: if [ ! -z ${CORRADE_TEST_COLOR+x} ]; then
- 147: test_env="$test_env CORRADE_TEST_COLOR=$CORRADE_TEST_COLOR"
- 147: elif [ -t 1 ]; then
- 147: test_env="$test_env CORRADE_TEST_COLOR=ON"
- 147: else
- 147: test_env="$test_env CORRADE_TEST_COLOR=OFF"
- 147: fi
- 147: if [ ! -z ${CORRADE_TEST_SKIP_TESTS+x} ]; then
- 147: test_env="$test_env CORRADE_TEST_SKIP_TESTS=$CORRADE_TEST_SKIP_TESTS"
- 147: fi
- 147: if [ ! -z ${CORRADE_TEST_SKIP_BENCHMARKS+x} ]; then
- 147: test_env="$test_env CORRADE_TEST_SKIP_BENCHMARKS=$CORRADE_TEST_SKIP_BENCHMARKS"
- 147: fi
- 147: if [ ! -z ${CORRADE_TEST_SHUFFLE+x} ]; then
- 147: test_env="$test_env CORRADE_TEST_SHUFFLE=$CORRADE_TEST_SHUFFLE"
- 147: fi
- 147: if [ ! -z ${CORRADE_TEST_REPEAT_EVERY+x} ]; then
- 147: test_env="$test_env CORRADE_TEST_REPEAT_EVERY=$CORRADE_TEST_REPEAT_EVERY"
- 147: fi
- 147: if [ ! -z ${CORRADE_TEST_REPEAT_ALL+x} ]; then
- 147: test_env="$test_env CORRADE_TEST_REPEAT_ALL=$CORRADE_TEST_REPEAT_ALL"
- 147: fi
- 147: if [ ! -z ${CORRADE_TEST_ABORT_ON_FAIL+x} ]; then
- 147: test_env="$test_env CORRADE_TEST_ABORT_ON_FAIL=$CORRADE_TEST_ABORT_ON_FAIL"
- 147: fi
- 147: if [ ! -z ${CORRADE_TEST_NO_XFAIL+x} ]; then
- 147: test_env="$test_env CORRADE_TEST_NO_XFAIL=$CORRADE_TEST_NO_XFAIL"
- 147: fi
- 147: if [ ! -z ${CORRADE_BENCHMARK+x} ]; then
- 147: test_env="$test_env CORRADE_BENCHMARK=$CORRADE_BENCHMARK"
- 147: fi
- 147: if [ ! -z ${CORRADE_BENCHMARK_DISCARD+x} ]; then
- 147: test_env="$test_env CORRADE_BENCHMARK_DISCARD=$CORRADE_BENCHMARK_DISCARD"
- 147: fi
- 147: if [ ! -z ${CORRADE_BENCHMARK_YELLOW+x} ]; then
- 147: test_env="$test_env CORRADE_BENCHMARK_YELLOW=$CORRADE_BENCHMARK_YELLOW"
- 147: fi
- 147: if [ ! -z ${CORRADE_BENCHMARK_RED+x} ]; then
- 147: test_env="$test_env CORRADE_BENCHMARK_RED=$CORRADE_BENCHMARK_RED"
- 147: fi
- 147:
- 147: # Create a local temporary directory. Android doesn't have mktemp, so we have
- 147: # to assume that there is ever only one computer connected to a device /
- 147: # emulator and so mktemp always returns unique value.
- 147: tmpdir=$(mktemp -d /tmp/corrade-testsuite-$filename-XXXXX)
- 147: remote_tmpdir=/data/local$tmpdir
- 147:
- 147: # The device / emulator might have stale temporary directories that could clash
- 147: # with the newly created one. But given the above they should not be used
- 147: # anymore so we remove them and then recreate the directory.
- 147: adb shell 'rm -rf '$remote_tmpdir'; mkdir '$remote_tmpdir
- 147:
- 147: # Push the test executable and also all required files to the remote temporary
- 147: # directory, preserving directory structure
- 147: adb push "$binary_dir/$filename" $remote_tmpdir | tail -n 1
- 147: D:/GitHub/dailyprophet-ar/build-arm-android/magnum/src/Magnum/TextureTools/Test/TextureToolsDistanceFieldGLTest: 0 files pushed. 6.3 MB/s (65528 bytes in 0.010s)
- 147: for file in "$@"; do
- 147: # TODO: this will probably break horribly when the filenames contain spaces
- 147: # and/or multiple @ characters (only the last should be taken). Sorry about
- 147: # that, if you fix it and provide a patch, I'll be *very* happy.
- 147: file_pair=(${file//@/ })
- 147: dir=$(dirname ${file_pair[1]})
- 147: adb shell "mkdir -p $remote_tmpdir/$dir"
- 147: adb push "${file_pair[0]}" "$remote_tmpdir/${file_pair[1]}" | tail -n 1
- 147: done
- 147: D:/GitHub/dailyprophet-ar/magnum/src/Magnum/TextureTools/Test/DistanceFieldGLTestFiles/input.tga: 0 files pushed. 4.5 MB/s (65528 bytes in 0.014s)
- 147: D:/GitHub/dailyprophet-ar/magnum/src/Magnum/TextureTools/Test/DistanceFieldGLTestFiles/output.tga: 0 files pushed. 0.4 MB/s (4114 bytes in 0.010s)
- 147:
- 147: # No comment. http://web.archive.org/web/20160806094132/https://code.google.com/p/android/issues/detail?id=3254
- 147: adb shell 'cd '$remote_tmpdir' && '$test_env' ./'$filename_and_args' 2>&1; echo -n ADB_IS_SHIT:$?' | tee $tmpdir/adb.retval | grep -v ADB_IS_SHIT
- 147: /system/bin/sh: ./TextureToolsDistanceFieldGLTest: not found
- 147: returncode=$(grep ADB_IS_SHIT $tmpdir/adb.retval | cut -d':' -f2)
- 147:
- 147: # Clean up after ourselves -- remove the temporary directories both on local
- 147: # machine and device / emulator. This is not done if any of the above fails,
- 147: # but that's okay -- it should stay there to be able to debug the problems
- 147: if [ "$returncode" -eq "0" ]; then
- 147: adb shell 'rm -r '$remote_tmpdir
- 147: fi
- 147: rm -r $tmpdir
- 147:
- 147: # Propagate the return code
- 147: exit $returncode
- 33/33 Test #147: TextureToolsDistanceFieldGLTest .....***Failed 0.99 sec
- 0% tests passed, 33 tests failed out of 33
- Total Test time (real) = 33.78 sec
- The following tests FAILED:
- 48 - DebugToolsTextureImageGLTest (Failed)
- 49 - DebugToolsBufferDataGLTest (Failed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement