mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 12:16:41 +02:00
Add crash_reporter functionality
BUG=2616,2617 Review URL: http://codereview.chromium.org/1702008
This commit is contained in:
parent
a5351aa563
commit
f915104513
@ -30,7 +30,7 @@ fi
|
||||
# Die on error; print commands
|
||||
set -e
|
||||
|
||||
TEST_DIRS="pam_google window_manager cryptohome"
|
||||
TEST_DIRS="crash pam_google window_manager cryptohome"
|
||||
|
||||
sudo TEST_DIRS="${TEST_DIRS}" \
|
||||
emerge-${FLAGS_board} chromeos-base/chromeos-unittests
|
||||
|
||||
16
run_tests.sh
16
run_tests.sh
@ -36,13 +36,25 @@ LD_LIBRARY_PATH=/build/${FLAGS_board}/lib:/build/${FLAGS_board}/usr/lib:\
|
||||
# Die on error; print commands
|
||||
set -ex
|
||||
|
||||
# Change to a test directory to make it easier for tests to write
|
||||
# to and clean up temporary files.
|
||||
TEST_CWD=$(mktemp -d /tmp/run_tests.XXXX)
|
||||
cd $TEST_CWD
|
||||
|
||||
function cleanup() {
|
||||
cd -
|
||||
rm -rf $TEST_CWD
|
||||
trap - 0
|
||||
}
|
||||
|
||||
trap cleanup ERR 0
|
||||
|
||||
# NOTE: We currently skip cryptohome_tests (which happens to have a different
|
||||
# suffix than the other tests), because it doesn't work.
|
||||
for i in /build/${FLAGS_board}/tests/*_{test,unittests}; do
|
||||
for i in ${TESTS_DIR}/*_{test,unittests}; do
|
||||
if [[ "`file -b $i`" = "POSIX shell script text executable" ]]; then
|
||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH /build/${FLAGS_board}/lib/ld-linux.so.2 /build/${FLAGS_board}/bin/bash $i
|
||||
else
|
||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH /build/${FLAGS_board}/lib/ld-linux.so.2 $i
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user