mirror of
				https://github.com/containers/podman.git
				synced 2025-11-04 08:56:05 +08:00 
			
		
		
		
	No longer bother testing any 2.x or 3.x. Only 4.1 and above. Remove all CNI-related code. CNI is gone. Add DatabaseBackend tests, confirming that we can handle both boltdb and sqlite. Require BATS >= 1.8.0, and use "run -0" to do exit-status checks. Update docs. Signed-off-by: Ed Santiago <santiago@redhat.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			525 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			525 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
# -*- bash -*-
 | 
						|
 | 
						|
load "../system/helpers"
 | 
						|
load "../system/helpers.network"	# For random_free_port()
 | 
						|
 | 
						|
setup() {
 | 
						|
    :
 | 
						|
}
 | 
						|
 | 
						|
teardown() {
 | 
						|
    :
 | 
						|
}
 | 
						|
 | 
						|
# skip a test when the given version is older than the currently tested one
 | 
						|
skip_if_version_older() {
 | 
						|
    if version_is_older_than $1; then
 | 
						|
        skip "${2-test is only meaningful when upgrading from $1 or later}"
 | 
						|
    fi
 | 
						|
}
 | 
						|
 | 
						|
version_is_older_than() {
 | 
						|
    # The '##v' strips off leading 'v'
 | 
						|
    printf '%s\n%s\n' "${PODMAN_UPGRADE_FROM##v}" "$1" | sort --check=quiet --version-sort
 | 
						|
}
 |