From cccac4fb2b20d6ed87da7978408c3ecacc464fe4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 5 Jun 2017 11:57:47 +0200 Subject: 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 --- tests/data/Makefile.inc | 2 +- tests/data/test1521 | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1521 (limited to 'tests/data') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index eaea9c6dc..155320aa5 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -160,7 +160,7 @@ test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \ test1508 test1509 test1510 test1511 test1512 test1513 test1514 test1515 \ test1516 test1517 \ \ -test1520 \ +test1520 test1521 \ \ test1525 test1526 test1527 test1528 test1529 test1530 test1531 test1532 \ test1533 test1534 test1535 test1536 test1537 test1538 \ diff --git a/tests/data/test1521 b/tests/data/test1521 new file mode 100644 index 000000000..268c0695c --- /dev/null +++ b/tests/data/test1521 @@ -0,0 +1,30 @@ + + + +curl_easy_setopt + + + +# +# Client-side + + +none + + +lib1521 + + + +try ALL curl_easy_setopt options + + +unused + + + +# +# Verify data after the test has been "shot" + + + -- cgit v1.2.3