Check-in [e0f108b17b]
Overview
Comment:Updated testing to handle errors and print a cleaner output
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e0f108b17bc537d5baf61d24f1a23c6fcf78390d8b78f3aef93d5d762c83cfb2
User & Date: rkeene on 2018-07-09 05:11:25
Other Links: manifest | tags
Context
2018-07-09
15:33
Updated man page check-in: c0dd083188 user: rkeene tags: trunk
05:11
Updated testing to handle errors and print a cleaner output check-in: e0f108b17b user: rkeene tags: trunk
05:07
Added more tests explicitly covering balances on old blocks check-in: 0180d2cb81 user: rkeene tags: trunk
Changes

Modified test/test.tcl from [0c80f46849] to [0ce1525912].

316
317
318
319
320
321
322




323
324
325
326
327




328
329
330
331
332
333
	keygeneration
	addressformat
	blocks
	work
}

foreach test $tests {




	if {![test_$test]} {
		puts "FAILED test $test"
		exit 1
	} else {
		puts "\[OK\] $test"




	}
}

puts "DONE"

exit 0







>
>
>
>
|
|
|
|
|
>
>
>
>



|


316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
	keygeneration
	addressformat
	blocks
	work
}

foreach test $tests {
	puts -nonewline "\[    \] $test"
	flush stdout

	if {[catch {
		if {![test_$test]} {
			puts "\[FAIL\] $test"
			exit 1
		} else {
			puts "\r\[ OK \] $test"
		}
	} testErr]} {
		puts "\[ERR \] $test: $testErr"
		exit 1
	}
}

puts "\[DONE\] All tests pass"

exit 0