]> granicus.if.org Git - curl/commit
test1521: test *all* curl_easy_setopt options
authorDaniel Stenberg <daniel@haxx.se>
Mon, 5 Jun 2017 09:57:47 +0000 (11:57 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 5 Jun 2017 12:25:18 +0000 (14:25 +0200)
commitcccac4fb2b20d6ed87da7978408c3ecacc464fe4
tree94946f082efa056675bec689ab0d43da20752c1a
parentb95a07ea59e3ebab9d643e67084459be13c93a3d
test1521: test *all* curl_easy_setopt options

mk-lib1521.pl generates a test program (lib1521.c) that calls
curl_easy_setopt() for every known option with a few typical values to
make sure they work (ignoring the return codes).

Some small changes were necessary to avoid asserts and NULL accesses
when doing this.

The perl script needs to be manually rerun when we add new options.

Closes #1543
lib/http2.c
lib/url.c
tests/data/Makefile.inc
tests/data/test1521 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib1521.c [new file with mode: 0644]
tests/libtest/mk-lib1521.pl [new file with mode: 0644]