gecko-dev/tools/tryselect/test/setup.sh

31 строка
560 B
Bash

export topsrcdir=$TESTDIR/../../../
export MOZBUILD_STATE_PATH=$TMP/mozbuild
export MACHRC=$TMP/machrc
cat > $MACHRC << EOF
[try]
default=syntax
EOF
cachedir=$MOZBUILD_STATE_PATH/cache/taskgraph
mkdir -p $cachedir
cat > $cachedir/target_task_set << EOF
test/foo-opt
test/foo-debug
build-baz
EOF
cat > $cachedir/full_task_set << EOF
test/foo-opt
test/foo-debug
test/bar-opt
test/bar-debug
build-baz
EOF
# set mtime to the future so we don't re-generate tasks
find $cachedir -type f -exec touch -d "next day" {} +
export testargs="--no-push --no-artifact"