OLD | NEW |
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 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 | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Builds tests. | 7 # Builds tests. |
8 | 8 |
9 SCRIPT_DIR=`dirname "$0"` | 9 SCRIPT_DIR=`dirname "$0"` |
10 SCRIPT_DIR=`readlink -f "$SCRIPT_DIR"` | 10 SCRIPT_DIR=`readlink -f "$SCRIPT_DIR"` |
11 | 11 |
12 BUILD_ROOT=${BUILD_ROOT:-${SCRIPT_DIR}/../../../src/build} | 12 BUILD_ROOT=${BUILD_ROOT:-${SCRIPT_DIR}/../../../src/build} |
13 OUT_DIR=${BUILD_ROOT}/x86/tests | |
14 mkdir -p $OUT_DIR | 13 mkdir -p $OUT_DIR |
15 | 14 |
16 pushd $SCRIPT_DIR | 15 pushd $SCRIPT_DIR |
17 | 16 |
18 scons tests | 17 scons tests |
19 cp *_test $OUT_DIR | 18 cp *_test $OUT_DIR |
20 | 19 |
21 popd | 20 popd |
OLD | NEW |