~cgregan/cdts/piglit-update-vivid

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# This script is invoked by tarmac - the automatic branch lander - before it
# allows a merge request to land into trunk
set -e

# Destroy VMs after we're done with each image. This works around
# a bug in virtualbox shared folder filesystem.
export VAGRANT_DONE_ACTION=destroy
# Which test runner/container to use. We default to LXC but
# honor an external env variable to set this.
TEST_RUNNER=${TEST_RUNNER:-lxc}
# Use tmpfs for the lxc containers, faster but requires more RAM (about 2 GB)
# NOTE: Needs to be a non-empty blank string due to weird ${param:-default}
# semantics
export KEEP_DATA=" "
# Run CDTS tests 
if [ "$TEST_RUNNER" = "vagrant" ]; then
    time -o timing.dat ./test-in-vagrant.sh
else
    time -o timing.dat ./test-in-lxc.sh
fi
echo "Complete canonical-driver-test-suite time:"
cat timing.dat