mirror of
				https://github.com/zsh-users/zsh-syntax-highlighting.git
				synced 2025-10-31 10:04:31 +00:00 
			
		
		
		
	'make test': Allow specifying the zsh binary to use.
This commit is contained in:
		
							parent
							
								
									57624bb9f6
								
							
						
					
					
						commit
						557bb7e0c6
					
				
							
								
								
									
										3
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								Makefile
									
									
									
									
									
								
							| @ -3,6 +3,7 @@ NAME=zsh-syntax-highlighting | ||||
| INSTALL?=install -c | ||||
| PREFIX?=/usr/local | ||||
| SHARE_DIR=$(DESTDIR)$(PREFIX)/share/$(NAME) | ||||
| ZSH?=zsh # zsh binary to run tests with | ||||
| 
 | ||||
| # Have the default target do nothing.
 | ||||
| all: | ||||
| @ -22,7 +23,7 @@ test: | ||||
| 	for test in highlighters/*; do \
 | ||||
| 		if [ -d $$test/test-data ]; then \
 | ||||
| 			echo "Running test $${test##*/}"; \
 | ||||
| 			zsh -f tests/test-highlighting.zsh "$${test##*/}"; \
 | ||||
| 			$(ZSH) -f tests/test-highlighting.zsh "$${test##*/}"; \
 | ||||
| 			: $$(( result |= $$? )); \
 | ||||
| 		fi \
 | ||||
| 	done; \
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Daniel Shahaf
						Daniel Shahaf