aboutsummaryrefslogtreecommitdiff
path: root/binary_search_tool/full_bisect_test/make_sources_bad.sh
diff options
context:
space:
mode:
authorZhizhou Yang <zhizhouy@google.com>2017-07-21 16:06:55 -0700
committerZhizhou Yang <zhizhouy@google.com>2017-07-21 16:10:53 -0700
commit4307f4735e9a4e3189e8d43f7493bb677a4d06ba (patch)
treebf139ee25415cecde142e95791edba3803b2452a /binary_search_tool/full_bisect_test/make_sources_bad.sh
parent7091edfaa0ec531905b7d914e9307cd74caf02ea (diff)
parent978b96a8b02935d40e3a2c57cd033dbedd8980e9 (diff)
downloadtoolchain-utils-073c3094de8985b45615caff80a926ef0ac6c9a0.tar.gz
Merge branch 'aosp/mirror-chromium-master' into update_utilsandroid-o-iot-preview-5o-iot-preview-5
Update toolchain_utils from ChromeOS side, which includes: initializing Android toolchain benchmark suite and other changes since last merging. Bug: None. Test: None. Change-Id: I9cd74f4377a8109872414636342be0b9f5df2db5
Diffstat (limited to 'binary_search_tool/full_bisect_test/make_sources_bad.sh')
-rwxr-xr-xbinary_search_tool/full_bisect_test/make_sources_bad.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/binary_search_tool/full_bisect_test/make_sources_bad.sh b/binary_search_tool/full_bisect_test/make_sources_bad.sh
new file mode 100755
index 00000000..507e8ca8
--- /dev/null
+++ b/binary_search_tool/full_bisect_test/make_sources_bad.sh
@@ -0,0 +1,15 @@
+#!/bin/bash -u
+#
+# There are two versions (good & bad) of inorder_norecurse.c and
+# preorder_norecurse.c. This script makes sure the bad versions
+# are copied into the .c files that will be built and copied into
+# the bad-objects directory, for the bisection test. It is called
+# from run-test-nowrapper.sh.
+#
+
+pushd full_bisect_test
+
+cp inorder_norecurse.c.bad inorder_norecurse.c
+cp preorder_norecurse.c.bad preorder_norecurse.c
+
+popd