build(rust): vendor googletest crate
This commit was merged in pull request #76.
This commit is contained in:
1 parent
a6fe84190e
commit
6887b104d6
576 files changed
+284290
-2
No files matched your search
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
# fail on error
|
||||
set -e
|
||||
|
||||
# Read binary path from argument
|
||||
BINARY_PATH="$1"
|
||||
|
||||
if [ -z "$BINARY_PATH" ]; then
|
||||
echo "Usage: $0 <binary_path>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run the binary, capture output, and process with sed
|
||||
# We ignore the failure of the binary as per the original genrule (|| true)
|
||||
( "${BINARY_PATH}" 2>&1 || true ) | \
|
||||
sed -n -e '/^Google Test trace:/p' -e '/^ .*trace/p' | \
|
||||
sed 's#^.*scoped_trace_panic_test.rs# scoped_trace_panic_test.rs#g'
|
||||
Reference in new issue
Block a user