summaryrefslogtreecommitdiff
path: root/test/verify_unused_symbol_exists.sh
diff options
context:
space:
mode:
authorKeith Smiley <keithbsmiley@gmail.com>2023-08-21 14:47:16 -0700
committerGitHub <noreply@github.com>2023-08-21 16:47:16 -0500
commitf72056a932df112f2b262f8a2bd326cc340f2499 (patch)
tree8d0a57698ac526502bb3586df6d6ebcc66ff8693 /test/verify_unused_symbol_exists.sh
parent48a8ff8fea94a5057409bdf5be537945c241f361 (diff)
downloadbazelbuild-apple_support-f72056a932df112f2b262f8a2bd326cc340f2499.tar.gz
Move symbol stripping test to starlark (#246)
This also verifies not passing the required flags keeps the symbols just in case we change that default accidentally
Diffstat (limited to 'test/verify_unused_symbol_exists.sh')
-rwxr-xr-xtest/verify_unused_symbol_exists.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/verify_unused_symbol_exists.sh b/test/verify_unused_symbol_exists.sh
new file mode 100755
index 0000000..92928d2
--- /dev/null
+++ b/test/verify_unused_symbol_exists.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -euo pipefail
+set -x
+
+readonly binary="%{binary}s"
+
+nm "$binary" | grep addOne \
+ || (echo "should find symbol addOne" >&2 && exit 1)