mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 02:42:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			598 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			598 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| start:tabrestore_null
 | |
| description:tabrestore without any flag
 | |
| cmd:tabrestore
 | |
| check:rc!=0
 | |
| check:output=~Usage
 | |
| end
 | |
| 
 | |
| start:tabrestore_table
 | |
| cmd:tabdump site > /tmp/site.csv
 | |
| check:rc==0
 | |
| cmd:chtab key=db2installloc site.value=/test
 | |
| check:rc==0
 | |
| cmd:tabrestore /tmp/site.csv
 | |
| check:rc==0
 | |
| cmd:tabdump site > /tmp/site1.csv
 | |
| check:rc==0
 | |
| cmd:diff /tmp/site1.csv /tmp/site.csv
 | |
| check:rc==0
 | |
| cmd:rm -f /tmp/site.csv /tmp/site1.csv
 | |
| end
 | |
| 
 | |
| start:tabrestore_h
 | |
| cmd:tabrestore -h
 | |
| check:output=~Usage
 | |
| end
 | |
| 
 | |
| start:tabrestore_err
 | |
| description:tabrestore wrong.csv
 | |
| cmd:tabrestore wrong.csv
 | |
| check:rc!=0
 | |
| check:output=~Error
 | |
| end
 | |
| 
 |