mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-10-31 03:30:07 +00:00 
			
		
		
		
	 e988dfd35b
			
		
	
	
		e988dfd35b
		
	
	
	
	
		
			
			exit 0 exits the entire testrunner... Oops. Also, "unresolved" breaks too many things, so make this a pass. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
		
			
				
	
	
		
			32 lines
		
	
	
		
			705 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			705 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| set timeout 30
 | |
| set test_name "testcommands"
 | |
| 
 | |
| if {![info exists env(QUAGGA_TEST_COMMANDS)]} {
 | |
| 	# sadly, the test randomly fails when configure parameters differ from
 | |
| 	# what was used to create testcommands.refout.  this can be fixed by
 | |
| 	# shipping a matching vtysh_cmd.c, which we'll add after 0.99.23
 | |
| 	pass "$test_name"
 | |
| 	return 0
 | |
| }
 | |
| 
 | |
| spawn sh -c "./testcommands -e 0 < $env(srcdir)/testcommands.in | diff -au - $env(srcdir)/testcommands.refout"
 | |
| 
 | |
| expect {
 | |
| 	eof {
 | |
| 	}
 | |
| 	timeout {
 | |
| 		exp_close
 | |
| 		fail "$test_name: timeout"
 | |
| 	}
 | |
| }
 | |
| 
 | |
| catch wait result
 | |
| set os_error    [lindex $result 2]
 | |
| set exit_status [lindex $result 3]
 | |
| 
 | |
| if { $os_error == 0 && $exit_status == 0 } {
 | |
| 	pass "$test_name"
 | |
| } else {
 | |
| 	fail "$test_name"
 | |
| }
 |