Daniel Erat | 9923eb0 | 2010-04-06 18:57:00 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright (c) 2009 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 | # Builds tests. |
| 8 | |
| 9 | SCRIPT_DIR=`dirname "$0"` |
| 10 | SCRIPT_DIR=`readlink -f "$SCRIPT_DIR"` |
| 11 | |
| 12 | BUILD_ROOT=${BUILD_ROOT:-${SCRIPT_DIR}/../../../src/build} |
| 13 | OUT_DIR=${BUILD_ROOT}/x86/tests |
| 14 | mkdir -p ${OUT_DIR} |
| 15 | |
| 16 | pushd $SCRIPT_DIR |
| 17 | |
| 18 | scons minijail_unittests |
| 19 | cp minijail_unittests ${OUT_DIR} |
| 20 | |
| 21 | popd |