michael@0: ## $(TOUCH) and $(RM) are native commands in pymake. michael@0: ## Test that pymake --just-print just prints them. michael@0: michael@0: ifndef TOUCH michael@0: TOUCH = touch michael@0: endif michael@0: michael@0: all: michael@0: $(RM) justprint-native-file1.txt michael@0: $(TOUCH) justprint-native-file2.txt michael@0: $(MAKE) --just-print -f $(TESTPATH)/justprint-native.mk justprint_target > justprint.log michael@0: # make --just-print shouldn't have actually done anything. michael@0: test ! -f justprint-native-file1.txt michael@0: test -f justprint-native-file2.txt michael@0: # but it should have printed each command michael@0: grep -q 'touch justprint-native-file1.txt' justprint.log michael@0: grep -q 'rm -f justprint-native-file2.txt' justprint.log michael@0: grep -q 'this string is "unlikely to appear in the log by chance"' justprint.log michael@0: # tidy up michael@0: $(RM) justprint-native-file2.txt michael@0: @echo TEST-PASS michael@0: michael@0: justprint_target: michael@0: $(TOUCH) justprint-native-file1.txt michael@0: $(RM) justprint-native-file2.txt michael@0: this string is "unlikely to appear in the log by chance" michael@0: michael@0: .PHONY: justprint_target