mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-11-04 00:46:00 +00:00 
			
		
		
		
	tpm.yml example update hash and add example test case
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
		@@ -18,7 +18,7 @@ services:
 | 
				
			|||||||
    env:
 | 
					    env:
 | 
				
			||||||
     - INSECURE=true
 | 
					     - INSECURE=true
 | 
				
			||||||
  - name: tss
 | 
					  - name: tss
 | 
				
			||||||
    image: linuxkit/tss:e51164ceaa2bd6db7d68e74d071929f5cb1c6c2e
 | 
					    image: linuxkit/tss:51d73be868e12af76965f5682ed59309c19972b6
 | 
				
			||||||
  - name: rngd
 | 
					  - name: rngd
 | 
				
			||||||
    image: linuxkit/rngd:1516d5d70683a5d925fe475eb1b6164a2f67ac3b
 | 
					    image: linuxkit/rngd:1516d5d70683a5d925fe475eb1b6164a2f67ac3b
 | 
				
			||||||
files:
 | 
					files:
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										23
									
								
								test/cases/000_build/100_examples/060_tpm/test.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								test/cases/000_build/100_examples/060_tpm/test.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					# SUMMARY: Test the tpm example
 | 
				
			||||||
 | 
					# LABELS:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					set -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Source libraries. Uncomment if needed/defined
 | 
				
			||||||
 | 
					#. "${RT_LIB}"
 | 
				
			||||||
 | 
					. "${RT_PROJECT_ROOT}/_lib/lib.sh"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					IMAGE_NAME=tpm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					clean_up() {
 | 
				
			||||||
 | 
						# remove any files, containers, images etc
 | 
				
			||||||
 | 
						rm -rf ${IMAGE_NAME}*
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					trap clean_up EXIT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Test code goes here
 | 
				
			||||||
 | 
					moby build "${LINUXKIT_EXAMPLES_DIR}/${IMAGE_NAME}.yml"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					exit 0
 | 
				
			||||||
		Reference in New Issue
	
	Block a user