Skip to content

hyper tests are broken since ca15b7512e #10009

Closed

Description

@bagder

I did this

Build curl with hyper

cd tests
./runtests.pl 1

Problem

I think the new crlf="yes" support from commit ca15b75 should only be applied to the section where it is used, and not on the entire test case like it is now. Test 2500 only uses it for <data> so only that content should get crlf replaced.

Activity

  1. bagder commented on Dec 1, 2022

    @bagder
    MemberAuthor

    The conversion could then be done explicitly without caring if it looks like HTTP or not.

  2. assigned and unassigned on Dec 1, 2022
  3. bagder commented on Dec 1, 2022

    @bagder
    MemberAuthor

    The conversion could then be done explicitly without caring if it looks like HTTP or not.

    Eh, no. Because then we also add CRLF to the body in <data> etc and that changes the size of it...

  4. icing commented on Dec 1, 2022

    @icing
    Contributor

    The conversion could then be done explicitly without caring if it looks like HTTP or not.

    Eh, no. Because then we also add CRLF to the body in <data> etc and that changes the size of it...

    I remember myself walking down that line of thinking. That is why I sticked to the HTTP pattern that was in place for hyper. The trouble we have now is that it also replaces \r\n with \r\r\n, it seems.

  5. bagder commented on Dec 1, 2022

    @bagder
    MemberAuthor

    I'm trying out a few things in #10010. I want to be able to mark individual sections as crlf="yes" so that we long-term can move away from using CRLF lines within the source test files .

  6. icing commented on Dec 1, 2022

    @icing
    Contributor

    Another idea would be to have some sort of <reply><http-header>... section where crlf is always normalized.

  7. bagder commented on Dec 1, 2022

    @bagder
    MemberAuthor

    Or just a <crlf>...</crlf> within <data> etc

  8. bagder commented on Dec 1, 2022

    @bagder
    MemberAuthor

    A challenge is to introduce such a new/better/different system in a way that can be gradually transitioned into, without us having to update 800+ test cases in a single blow.

  9. icing commented on Dec 1, 2022

    @icing
    Contributor

    I was thinking of gradually changing test cases to use the new section. The old way of setting the server response could be left unchanged. But that is just a thought, you know best.

  10. bagder commented on Dec 1, 2022

    @bagder
    MemberAuthor

    If I can get this working with my current simpler approach, I think I'll stick to this for now.

  11. added a commit that references this issue on Dec 1, 2022
    2304f3a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions