mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-11-04 10:01:03 +01:00 
			
		
		
		
	scripts: move test.sh script into scripts dir
This commit is contained in:
		
							parent
							
								
									2afbb72a88
								
							
						
					
					
						commit
						6dc90593f9
					
				
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@ -55,7 +55,7 @@ lint: $(JSONNETLINT_BIN) vendor
 | 
				
			|||||||
.PHONY: test
 | 
					.PHONY: test
 | 
				
			||||||
test: $(JB_BIN)
 | 
					test: $(JB_BIN)
 | 
				
			||||||
	$(JB_BIN) install
 | 
						$(JB_BIN) install
 | 
				
			||||||
	./test.sh
 | 
						./scripts/test.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: test-e2e
 | 
					.PHONY: test-e2e
 | 
				
			||||||
test-e2e:
 | 
					test-e2e:
 | 
				
			||||||
 | 
				
			|||||||
@ -5,6 +5,8 @@ set -o pipefail
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Make sure to use project tooling
 | 
					# Make sure to use project tooling
 | 
				
			||||||
PATH="$(pwd)/tmp/bin:${PATH}"
 | 
					PATH="$(pwd)/tmp/bin:${PATH}"
 | 
				
			||||||
 | 
					TESTFILE="$(pwd)/tmp/test.jsonnet"
 | 
				
			||||||
 | 
					mkdir -p "$(pwd)/tmp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for i in examples/jsonnet-snippets/*.jsonnet; do
 | 
					for i in examples/jsonnet-snippets/*.jsonnet; do
 | 
				
			||||||
    [ -f "$i" ] || break
 | 
					    [ -f "$i" ] || break
 | 
				
			||||||
@ -14,13 +16,13 @@ for i in examples/jsonnet-snippets/*.jsonnet; do
 | 
				
			|||||||
    snippet="local kp = $fileContent;
 | 
					    snippet="local kp = $fileContent;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
$(<examples/jsonnet-build-snippet/build-snippet.jsonnet)"
 | 
					$(<examples/jsonnet-build-snippet/build-snippet.jsonnet)"
 | 
				
			||||||
    echo "${snippet}" > "test.jsonnet"
 | 
					    echo "${snippet}" > "${TESTFILE}"
 | 
				
			||||||
    echo "\`\`\`"
 | 
					    echo "\`\`\`"
 | 
				
			||||||
    echo "${snippet}"
 | 
					    echo "${snippet}"
 | 
				
			||||||
    echo "\`\`\`"
 | 
					    echo "\`\`\`"
 | 
				
			||||||
    echo ""
 | 
					    echo ""
 | 
				
			||||||
    jsonnet -J vendor "test.jsonnet" > /dev/null
 | 
					    jsonnet -J vendor "${TESTFILE}" > /dev/null
 | 
				
			||||||
    rm -rf "test.jsonnet"
 | 
					    rm -rf "${TESTFILE}"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for i in examples/*.jsonnet; do
 | 
					for i in examples/*.jsonnet; do
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user