Index: tools/binary_size/libsupersize/testdata/create-test-size.sh |
diff --git a/tools/binary_size/libsupersize/testdata/create-test-size.sh b/tools/binary_size/libsupersize/testdata/create-test-size.sh |
new file mode 100755 |
index 0000000000000000000000000000000000000000..5856dc5c6fdc2ce4b3c9057b73e7c0dd63fe0e04 |
--- /dev/null |
+++ b/tools/binary_size/libsupersize/testdata/create-test-size.sh |
@@ -0,0 +1,14 @@ |
+#!/bin/bash |
+# Copyright 2017 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+base_dir=$(dirname "$0") |
+abs_base_dir=$(python -c "import os; print os.path.abspath('$base_dir')") |
+toolchain_dir=$abs_base_dir/mock_toolchain |
+export PATH="$toolchain_dir:$PATH" |
+echo "Added to PATH: $toolchain_dir" |
+set -x |
+exec $base_dir/../main.py archive test.size \ |
+ --map-file $base_dir/test.map \ |
+ --elf-file $base_dir/mock_output_directory/elf |