~vanvugt/mir/compositor-test

« back to all changes in this revision

Viewing changes to tests/performance-tests/performance_tests.sh

Merge generalise-performance-tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# Copyright © 2016 Canonical Ltd.
 
4
#
 
5
# This program is free software: you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License version 3 as
 
7
# published by the Free Software Foundation.
 
8
#
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
# GNU General Public License for more details.
 
13
#
 
14
# You should have received a copy of the GNU General Public License
 
15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
#
 
17
# Author: Daniel van Vugt <daniel.van.vugt@canonical.com>
 
18
#
 
19
 
 
20
### This is a wrapper script that runs all Mir's performance tests ###
 
21
 
 
22
bin_dir=`dirname $0`
 
23
 
 
24
tests_run=0
 
25
failures=0
 
26
for perf_test in mir_glmark2_performance_test ; do
 
27
    tests_run=$(($tests_run + 1))
 
28
    ${bin_dir}/$perf_test || failures=$(($failures + 1))
 
29
done
 
30
 
 
31
passes=$(($tests_run - $failures))
 
32
echo ""
 
33
echo "Mir Performance Tests ran $tests_run tests: $passes passed, $failures failed."
 
34
return $failures