4 # Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
32 f
="`dirname $0`/find_tests.sh"
33 T
=`$f | sort -hr` ||
{
38 echo "error: tests not found"
43 choose_skipped_tests
()
48 o
='--list --width 320 --height 480 --separator=,'
49 o
="$o --column Skip --column Test"
50 T
=`$Z $o --checklist $a`
52 # echo "TEST_SKIP=$TEST_SKIP"
58 c
='--column Enable --column Test'
59 a
='false TEST_INTERNET false TEST_VERBOSE'
60 r
=`$Z --width 320 --height 240 --list --checklist $c $a`
61 expr "$r" : ".*INTERNET.*" >/dev
/null
&& export TEST_INTERNET
=1
62 expr "$r" : ".*VERBOSE.*" >/dev
/null
&& export TEST_VERBOSE
=1
68 echo "TEST_INTERNET=$TEST_INTERNET"
69 echo "TEST_VERBOSE=$TEST_VERBOSE"
76 echo "TODO: run_tests_mem"
82 echo "Usage: $0 [OPTIONS]
84 $0 is a convenience script for running the tests.
87 -h Show this help and exit
88 -m Run target 'test-mem'
90 NOTE: Run 'configure' script first
93 cd \$top_srcdir ; mkdir tmp ; cd tmp
94 ../configure && make && ../$0
96 $0 sets the following environment variables before
102 Refer to the curl(1) manual for a complete list of proxy environment
103 variables. The testsuite does not set any by default."
117 [ -f "config.log" ] ||
{
118 echo "error: config.log not found: have you run configure?"
132 # vim: set ts=2 sw=2 tw=72 expandtab: