Bug 1255476 - Task that runs the spidermonkey gdb integration tests, r=garndt

--HG--
extra : rebase_source : 0ed31770417ced2a6993f132adb452d05c35209b
This commit is contained in:
Steve Fink 2016-03-09 16:56:56 -08:00
parent 8cbe50c347
commit 918d2244d1
4 changed files with 51 additions and 1 deletions

View File

@ -241,7 +241,7 @@ set +e
for arg in "${REQ_TESTS[@]}"; do
[[ $arg == skip-* ]]
select=$? # 0 means skip-TEST, 1 means TEST
if [[ $arg = all ]]; then
if [[ ${arg#skip-} = all ]]; then
for t in "${!TESTS[@]}"; do
TESTS[$t]=$select
done
@ -251,6 +251,9 @@ for arg in "${REQ_TESTS[@]}"; do
done
set -e
# Dump out the final set of tests
declare -p TESTS
RESULT=0
if [ ${TESTS[check]} = 1 ]; then

View File

@ -0,0 +1,24 @@
#!/bin/bash
# Run Spidermonkey's gdb integration tests
set -x
. $(dirname $0)/sm-setup.sh
: ${SPIDERMONKEY_VARIANT:=plaindebug}
cd $WORK
# Run the script
$SRCDIR/js/src/devtools/automation/autospider.sh --skip-test all --test gdb $SPIDERMONKEY_VARIANT
BUILD_STATUS=$?
# Ensure upload dir exists
mkdir -p $UPLOAD_DIR
# Copy artifacts for upload by TaskCluster
cp -rL $SRCDIR/obj-spider/dist/bin/{gdb-tests,gdb-tests-gdb.py,js-gdb.py} $UPLOAD_DIR
exit $BUILD_STATUS

View File

@ -135,6 +135,12 @@ builds:
task: tasks/builds/sm_warnaserr.yml
debug:
task: tasks/builds/sm_warnaserrdebug.yml
sm-gdb:
platforms:
- Linux64
types:
debug:
task: tasks/builds/sm_gdb.yml
post-build:
upload-symbols:

View File

@ -0,0 +1,17 @@
$inherits:
from: 'tasks/builds/sm_base.yml'
variables:
build_name: 'sm-gdb'
build_type: 'debug'
task:
payload:
command: ["/bin/bash", "-c", "cd /home/worker/ && ./bin/checkout-sources.sh && ./workspace/build/src/testing/taskcluster/scripts/builder/build-sm-gdb.sh" ]
metadata:
name: '[TC] Spidermonkey GDB Tests'
description: 'Spidermonkey GDB Tests'
extra:
treeherder:
symbol: gdb
locations:
build: null
tests: null