diff options
author | Gerald Combs <gerald@wireshark.org> | 2006-10-10 20:55:38 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2006-10-10 20:55:38 +0000 |
commit | aba9c21960cca46a4987b742967aa0a5214f3178 (patch) | |
tree | 85197c5c463db3e3ef405559a8d97e81c6860523 /test/test-backend.sh | |
parent | fe2f2920b843530dc8253da9098889d38dae4241 (diff) |
Add command-line options: -c disables color, -h prints help, -s runs
a suite.
svn path=/trunk/; revision=19479
Diffstat (limited to 'test/test-backend.sh')
-rw-r--r-- | test/test-backend.sh | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/test/test-backend.sh b/test/test-backend.sh index d7da592dd4..49762a724d 100644 --- a/test/test-backend.sh +++ b/test/test-backend.sh @@ -36,11 +36,19 @@ # coloring the output -color_reset="tput sgr0" -color_green='\E[32;40m' -color_red='\E[31;40m' -color_yellow='\E[33;40m' -color_blue='\E[36;40m' +if [ $USE_COLOR -eq 1 ] ; then + color_reset="tput sgr0" + color_green='\E[32;40m' + color_red='\E[31;40m' + color_yellow='\E[33;40m' + color_blue='\E[36;40m' +else + color_reset="/bin/true" + color_green='' + color_red='' + color_yellow='' + color_blue='' +fi # runtime flags TEST_RUN="OFF" |