1#!/bin/bash
2# Copyright (c) 2011 Google Inc. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6set -e
7
8lib="${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}"
9nm ${lib} > /dev/null  # Just make sure this works.
10
11pattern="${1}"
12
13if [ $pattern != "a|b" ]; then
14  echo "Parameter quoting is broken"
15  exit 1
16fi
17
18if [ "${2}" != "arg with spaces" ]; then
19  echo "Parameter space escaping is broken"
20  exit 1
21fi
22
23touch "${lib}"_touch
24