aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/bpf-headers/src
diff options
context:
space:
mode:
authorNita Vesa <werecatf@outlook.com>2022-04-29 13:57:24 +0300
committerDavid Bauer <mail@david-bauer.net>2022-08-09 21:22:41 +0200
commitca58b8b4feb7a56e262be7260032a06032264a48 (patch)
tree693572ccfbd00fd256e6e3fcd190da7b80b7877b /package/kernel/bpf-headers/src
parent707ec48ab3db6d08bd022df1bc720aee68b3b99d (diff)
downloadupstream-ca58b8b4feb7a56e262be7260032a06032264a48.tar.gz
upstream-ca58b8b4feb7a56e262be7260032a06032264a48.tar.bz2
upstream-ca58b8b4feb7a56e262be7260032a06032264a48.zip
ramips: Add Xiaomi Mi Router 4A 100M International
The international version of Mi Router 4A 100M is physically identical to the non-international one, but appears to be using a different partitioning scheme with the "overlay" partition being 2MiB in size instead of 1MiB. This means the following "firmware" partition starts at a different address and the DTS needs to be adjusted for the firmware to work. Signed-off-by: Nita Vesa <werecatf@outlook.com> (cherry picked from commit 1a8c74da709190e5157af9f5c2502b600f6273bb) Signed-off-by: Tom Herbers <freifunk@tomherbers.de>
Diffstat (limited to 'package/kernel/bpf-headers/src')
0 files changed, 0 insertions, 0 deletions
/ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
import requests
from pathod import test


class Test:
    """
        Testing the requests module with
        a single pathod instance started
        for the test suite.
    """

    @classmethod
    def setup_class(cls):
        cls.d = test.Daemon()

    @classmethod
    def teardown_class(cls):
        cls.d.shutdown()

    def setup(self):
        # Clear the pathod logs between tests
        self.d.clear_log()

    def test_simple(self):
        # Get a URL for a pathod spec
        url = self.d.p("200:b@100")
        # ... and request it
        r = requests.put(url)

        # Check the returned data
        assert r.status_code == 200
        assert len(r.content) == 100

        # Check pathod's internal log
        log = self.d.last_log()["request"]
        assert log["method"] == "PUT"

    def test_two(self):
        assert not self.d.log()