Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: chrome/test/data/safe_browsing/mach_o/Makefile

Issue 1363613004: Implement anonymous, opt-in, collection of OS X binary integrity incidents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/safe_browsing/mach_o/Makefile
diff --git a/chrome/test/data/safe_browsing/mach_o/Makefile b/chrome/test/data/safe_browsing/mach_o/Makefile
index faa2fecaeabc10674f93994289ca8f7b82741afb..52642c6949f7b095aff925e33c11e963701f214a 100644
--- a/chrome/test/data/safe_browsing/mach_o/Makefile
+++ b/chrome/test/data/safe_browsing/mach_o/Makefile
@@ -57,3 +57,44 @@ signedexecutablefat: executablefat codesign.keychain
$(PWD)/codesign.keychain
codesign -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \
$@ --all-architectures
+
+.PHONY: test-bundle.app
+test-bundle.app: signedexecutablefat libsigned64.dylib executable32
+ ditto base-bundle.app $@
+ ditto $< $@/Contents/MacOS/test-bundle
+ ditto $(word 2,$^) $@/Contents/Frameworks/$(word 2,$^)
+ ditto $(word 3,$^) $@/Contents/Resources/$(word 3,$^)
+ security unlock-keychain -p $(KEYCHAIN_PASSWORD) \
+ $(PWD)/codesign.keychain
+ codesign -f -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \
Robert Sesek 2015/10/05 22:19:07 Keep 80 columns. Here and throughout.
Greg K 2015/10/07 22:54:30 Done.
+ $@ --all-architectures --resource-rules ResourceRules
+
+.PHONY: modified-bundle.app
+modified-bundle.app: test-bundle.app codesign.cfg lib32.dylib executable64
+ ditto $< $@
+ ditto $(word 2,$^) $@/Contents/Resources/$(word 2,$^)
+ ditto $(word 3,$^) $@/Contents/Frameworks/libsigned64.dylib
+ ditto $(word 4,$^) $@/Contents/Resources/executable32
+ echo "foo" >> $@/Contents/Resources/Base.lproj/MainMenu.nib
+ security unlock-keychain -p $(KEYCHAIN_PASSWORD) \
+ $(PWD)/codesign.keychain
+ codesign -f -s $(KEYCHAIN_IDENTITY) --keychain $(PWD)/codesign.keychain \
+ $@/Contents/Resources/Base.lproj/MainMenu.nib
+
+.PHONY: modified-bundle-and-exec.app
+modified-bundle-and-exec.app: test-bundle.app codesign.cfg lib32.dylib executable64
+ ditto $< $@
+ ditto $(word 2,$^) $@/Contents/Resources/$(word 2,$^)
+ ditto $(word 3,$^) $@/Contents/Frameworks/libsigned64.dylib
+ ditto $(word 4,$^) $@/Contents/Resources/executable32
+ printf '\x31' | dd bs=1 seek=8097 count=1 conv=notrunc of=$@/Contents/MacOS/test-bundle
+
+.PHONY: modified-main-exec32.app
+modified-main-exec32.app: test-bundle.app
+ ditto $< $@
+ printf '\x31' | dd bs=1 seek=8097 count=1 conv=notrunc of=$@/Contents/MacOS/test-bundle
+
+.PHONY: modified-main-exec64.app
+modified-main-exec64.app: test-bundle.app
+ ditto $< $@
+ printf '\x31' | dd bs=1 seek=24448 count=1 conv=notrunc of=$@/Contents/MacOS/test-bundle

Powered by Google App Engine
This is Rietveld 408576698