Gilad Arnold | ab3bb45 | 2012-05-22 09:08:12 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
| 7 | # Runs the update engine unit tests, including both userland and run-as-root |
| 8 | # tests. |
| 9 | |
| 10 | if [ ! -e ./update_engine_unittests ]; then |
| 11 | echo 'Error: unit test binary missing' >&2 |
| 12 | exit 1 |
| 13 | fi |
| 14 | |
| 15 | ./update_engine_unittests --gtest_filter='-*.RunAsRoot*' |
| 16 | sudo ./update_engine_unittests --gtest_filter='*.RunAsRoot*' |