Advertisement
Guest User

Android Test Result Failure

a guest
Mar 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.79 KB | None | 0 0
  1. 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"
  2. 147: Test timeout computed to be: 10000000
  3. 147:
  4. 147: # Usage:
  5. 147: #  ./AdbRunner.sh /path/to/test/binary/dir executable-name-and-args additional files...
  6. 147: binary_dir=$1
  7. 147: filename_and_args=$2
  8. 147: filename=${filename_and_args%% *}
  9. 147: # So the additional files are available in $@
  10. 147: shift && shift
  11. 147:
  12. 147: if [ "$(adb get-state | tr -d '\r\n')" != "device" ]; then
  13. 147:     echo "ERROR: no device connected"
  14. 147:     exit 1
  15. 147: fi
  16. 147:
  17. 147: # Propagate relevant test environment variables. If CORRADE_TEST_COLOR is not
  18. 147: # set, detect isatty() on client-side and pass it through
  19. 147: test_env=
  20. 147: if [ ! -z ${CORRADE_TEST_COLOR+x} ]; then
  21. 147:     test_env="$test_env CORRADE_TEST_COLOR=$CORRADE_TEST_COLOR"
  22. 147: elif [ -t 1 ]; then
  23. 147:     test_env="$test_env CORRADE_TEST_COLOR=ON"
  24. 147: else
  25. 147:     test_env="$test_env CORRADE_TEST_COLOR=OFF"
  26. 147: fi
  27. 147: if [ ! -z ${CORRADE_TEST_SKIP_TESTS+x} ]; then
  28. 147:     test_env="$test_env CORRADE_TEST_SKIP_TESTS=$CORRADE_TEST_SKIP_TESTS"
  29. 147: fi
  30. 147: if [ ! -z ${CORRADE_TEST_SKIP_BENCHMARKS+x} ]; then
  31. 147:     test_env="$test_env CORRADE_TEST_SKIP_BENCHMARKS=$CORRADE_TEST_SKIP_BENCHMARKS"
  32. 147: fi
  33. 147: if [ ! -z ${CORRADE_TEST_SHUFFLE+x} ]; then
  34. 147:     test_env="$test_env CORRADE_TEST_SHUFFLE=$CORRADE_TEST_SHUFFLE"
  35. 147: fi
  36. 147: if [ ! -z ${CORRADE_TEST_REPEAT_EVERY+x} ]; then
  37. 147:     test_env="$test_env CORRADE_TEST_REPEAT_EVERY=$CORRADE_TEST_REPEAT_EVERY"
  38. 147: fi
  39. 147: if [ ! -z ${CORRADE_TEST_REPEAT_ALL+x} ]; then
  40. 147:     test_env="$test_env CORRADE_TEST_REPEAT_ALL=$CORRADE_TEST_REPEAT_ALL"
  41. 147: fi
  42. 147: if [ ! -z ${CORRADE_TEST_ABORT_ON_FAIL+x} ]; then
  43. 147:     test_env="$test_env CORRADE_TEST_ABORT_ON_FAIL=$CORRADE_TEST_ABORT_ON_FAIL"
  44. 147: fi
  45. 147: if [ ! -z ${CORRADE_TEST_NO_XFAIL+x} ]; then
  46. 147:     test_env="$test_env CORRADE_TEST_NO_XFAIL=$CORRADE_TEST_NO_XFAIL"
  47. 147: fi
  48. 147: if [ ! -z ${CORRADE_BENCHMARK+x} ]; then
  49. 147:     test_env="$test_env CORRADE_BENCHMARK=$CORRADE_BENCHMARK"
  50. 147: fi
  51. 147: if [ ! -z ${CORRADE_BENCHMARK_DISCARD+x} ]; then
  52. 147:     test_env="$test_env CORRADE_BENCHMARK_DISCARD=$CORRADE_BENCHMARK_DISCARD"
  53. 147: fi
  54. 147: if [ ! -z ${CORRADE_BENCHMARK_YELLOW+x} ]; then
  55. 147:     test_env="$test_env CORRADE_BENCHMARK_YELLOW=$CORRADE_BENCHMARK_YELLOW"
  56. 147: fi
  57. 147: if [ ! -z ${CORRADE_BENCHMARK_RED+x} ]; then
  58. 147:     test_env="$test_env CORRADE_BENCHMARK_RED=$CORRADE_BENCHMARK_RED"
  59. 147: fi
  60. 147:
  61. 147: # Create a local temporary directory. Android doesn't have mktemp, so we have
  62. 147: # to assume that there is ever only one computer connected to a device /
  63. 147: # emulator and so mktemp always returns unique value.
  64. 147: tmpdir=$(mktemp -d /tmp/corrade-testsuite-$filename-XXXXX)
  65. 147: remote_tmpdir=/data/local$tmpdir
  66. 147:
  67. 147: # The device / emulator might have stale temporary directories that could clash
  68. 147: # with the newly created one. But given the above they should not be used
  69. 147: # anymore so we remove them and then recreate the directory.
  70. 147: adb shell 'rm -rf '$remote_tmpdir'; mkdir '$remote_tmpdir
  71. 147:
  72. 147: # Push the test executable and also all required files to the remote temporary
  73. 147: # directory, preserving directory structure
  74. 147: adb push "$binary_dir/$filename" $remote_tmpdir | tail -n 1
  75. 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)
  76. 147: for file in "$@"; do
  77. 147:     # TODO: this will probably break horribly when the filenames contain spaces
  78. 147:     # and/or multiple @ characters (only the last should be taken). Sorry about
  79. 147:     # that, if you fix it and provide a patch, I'll be *very* happy.
  80. 147:     file_pair=(${file//@/ })
  81. 147:     dir=$(dirname ${file_pair[1]})
  82. 147:     adb shell "mkdir -p $remote_tmpdir/$dir"
  83. 147:     adb push "${file_pair[0]}" "$remote_tmpdir/${file_pair[1]}" | tail -n 1
  84. 147: done
  85. 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)
  86. 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)
  87. 147:
  88. 147: # No comment. http://web.archive.org/web/20160806094132/https://code.google.com/p/android/issues/detail?id=3254
  89. 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
  90. 147: /system/bin/sh: ./TextureToolsDistanceFieldGLTest: not found
  91. 147: returncode=$(grep ADB_IS_SHIT $tmpdir/adb.retval | cut -d':' -f2)
  92. 147:
  93. 147: # Clean up after ourselves -- remove the temporary directories both on local
  94. 147: # machine and device / emulator. This is not done if any of the above fails,
  95. 147: # but that's okay -- it should stay there to be able to debug the problems
  96. 147: if [ "$returncode" -eq "0" ]; then
  97. 147:     adb shell 'rm -r '$remote_tmpdir
  98. 147: fi
  99. 147: rm -r $tmpdir
  100. 147:
  101. 147: # Propagate the return code
  102. 147: exit $returncode
  103. 33/33 Test #147: TextureToolsDistanceFieldGLTest .....***Failed    0.99 sec
  104.  
  105. 0% tests passed, 33 tests failed out of 33
  106.  
  107. Total Test time (real) =  33.78 sec
  108.  
  109. The following tests FAILED:
  110.          48 - DebugToolsTextureImageGLTest (Failed)
  111.          49 - DebugToolsBufferDataGLTest (Failed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement