Skip to content

CI: align make and test flags in various config files#7591

Closed
mback2k wants to merge 1 commit intocurl:masterfrom
mback2k:align-ci-test-params
Closed

CI: align make and test flags in various config files#7591
mback2k wants to merge 1 commit intocurl:masterfrom
mback2k:align-ci-test-params

Conversation

@mback2k
Copy link
Copy Markdown
Member

@mback2k mback2k commented Aug 19, 2021

  1. Remove redundant parameters -a -p from target test-nonflaky.
  2. Disable testing of SCP protocol for all Windows environments.
  3. Use Makefile target to run tests in autotools builds on AppVeyor.
  4. Make sure we also compile the examples on all touched CIs.
  5. Don't use -vc parameter which is reserved for debugging.

@mback2k mback2k self-assigned this Aug 19, 2021
@mback2k mback2k added CI Continuous Integration tests labels Aug 19, 2021
1. Remove redundant parameters -a -p from target test-nonflaky.
2. Disable testing of SCP protocol for all Windows environments.
3. Use Makefile target to run tests in autotools builds on AppVeyor.
4. Make sure we also compile the examples on all touched CIs.
5. Don't use -vc parameter which is reserved for debugging.
6. Enable verbose make output on all touched CIs.

Closes curl#7591
@mback2k mback2k force-pushed the align-ci-test-params branch from c93a2fb to 0123a0e Compare August 19, 2021 11:33
@mback2k
Copy link
Copy Markdown
Member Author

mback2k commented Aug 20, 2021

@jay @MarcelRaad hey you CURL_FORMAT_CURL_OFF_T experts, do you have any idea why the examples using fprintf cannot compile on the failed Azure DevOps builds? In the curl library source code itself it is used in exactly the same way without such compilation issues:

anyauthput.c: In function 'read_callback':
anyauthput.c:93:19: error: ISO C does not support the 'I' printf flag [-Werror=format=]
   93 |   fprintf(stderr, "*** We read %" CURL_FORMAT_CURL_OFF_T
      |                   ^~~~~~~~~~~~~~~
anyauthput.c:93:19: error: format '%d' expects argument of type 'int', but argument 3 has type 'curl_off_t' {aka 'long long int'} [-Werror=format=]
In file included from ../../include/curl/curl.h:38,
                 from anyauthput.c:32:
../../include/curl/system.h:199:42: note: format string is defined here
  199 | #  define CURL_FORMAT_CURL_OFF_T     "I64d"

@jay
Copy link
Copy Markdown
Member

jay commented Aug 22, 2021

do you have any idea why the examples using fprintf cannot compile on the failed Azure DevOps builds?

It looks like warnings are treated as errors but I don't know why it's an error for just the examples. I found this post from you many years ago, and maybe we can get around it with -Wno-pedantic-ms-format

mback2k added a commit to mback2k/curl that referenced this pull request Sep 9, 2021
1. Remove redundant parameters -a -p from target test-nonflaky.
2. Disable testing of SCP protocol on native Windows environments.
3. Use Makefile target to run tests in autotools builds on AppVeyor.
4. Don't use -vc parameter which is reserved for debugging.

Replaces curl#7591
@mback2k
Copy link
Copy Markdown
Member Author

mback2k commented Sep 9, 2021

Keeping the branch with these changes around, but closing this PR in favor of #7690. Let's do one step at a time. Thanks @jay.

@mback2k mback2k closed this Sep 9, 2021
mback2k added a commit that referenced this pull request Sep 27, 2021
1. Use Makefile target to run tests in autotools builds on AppVeyor.
2. Disable testing of SCP protocol on native Windows environments.
3. Remove redundant parameters -a -p from target test-nonflaky.
4. Don't use -vc parameter which is reserved for debugging.

Replaces #7591
Closes #7690
mback2k added a commit to mback2k/curl that referenced this pull request Dec 13, 2021
Some CIs already build them, let's do it on more of them.

Ignore -Wformat while using GCC on mingw to compile examples.
Improve size_t to long conversion in imap-append.c example.

Ref: curl#6079
Ref: curl#6082
Assisted-by: Jay Satiro

Follow up to curl#7690
Replaces curl#7591
Closes curl#7922
mback2k added a commit that referenced this pull request Dec 14, 2021
Some CIs already build them, let's do it on more of them.

Reviewed-by: Daniel Stenberg

Follow up to #7690 and 77311f4
Replaces #7591
Closes #7922
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration tests

Development

Successfully merging this pull request may close these issues.

2 participants