File tree Expand file tree Collapse file tree 5 files changed +5
-28
lines changed Expand file tree Collapse file tree 5 files changed +5
-28
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ function(os_add_executable TARGET NAME)
177177 ${INCLUDEOS_PACKAGE} /lib/libos.a
178178 ${INCLUDEOS_PACKAGE} /libcxx/lib/libc++.a
179179 ${INCLUDEOS_PACKAGE} /libc/lib/libc.a
180+ ${INCLUDEOS_PACKAGE} /http-parser/lib/libhttp_parser.a
180181 ${INCLUDEOS_PACKAGE} /lib/libmusl_syscalls.a
181182 ${INCLUDEOS_PACKAGE} /libunwind/lib/libunwind.a
182183 ${INCLUDEOS_PACKAGE} /libgcc/lib/linux/${LIBGCC}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ final: prev: {
8989 # Deps
9090 botan2 = self . callPackage ./deps/botan/default.nix { } ;
9191 libfmt = self . callPackage ./deps/libfmt/default.nix { } ;
92- http-parser = self . callPackage ./deps/http-parser/default.nix { } ;
9392 s2n-tls = self . callPackage ./deps/s2n/default.nix { } ;
9493 uzlib = self . callPackage ./deps/uzlib/default.nix { } ;
9594
@@ -161,7 +160,7 @@ final: prev: {
161160 buildInputs = [
162161 self . libfmt
163162 self . botan2
164- self . http-parser
163+ prev . pkgsStatic . http-parser
165164 prev . pkgsStatic . openssl
166165 prev . pkgsStatic . rapidjson
167166 #self.s2n-tls 👈 This is postponed until we can fix the s2n build.
@@ -179,6 +178,7 @@ final: prev: {
179178 cp -r -v ${ final . stdenvIncludeOS . libraries . libcxx . include } $out/libcxx/include
180179 cp -r -v ${ final . stdenvIncludeOS . libraries . libunwind } $out/libunwind
181180 cp -r -v ${ final . stdenvIncludeOS . libraries . libgcc } $out/libgcc
181+ cp -r -v ${ final . pkgsStatic . http-parser } $out/http-parser
182182 '' ;
183183
184184 archFlags = if self . stdenv . targetPlatform . system == "i686-linux" then
@@ -206,7 +206,6 @@ final: prev: {
206206
207207 passthru = {
208208 inherit ( self ) uzlib ;
209- inherit ( self ) http-parser ;
210209 inherit ( self ) botan2 ;
211210 inherit ( self ) libfmt ;
212211 #inherit (self) s2n-tls;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ void Service::ready()
8888 printf (" Error: %s \n " , err.to_string ().c_str ());
8989
9090 CHECKSERT (!err, " No error" );
91- printf (" Received body: %s\n " , res->body ());
91+ printf (" Received body: %.* s\n " , static_cast < int >( res->body (). length ()), res-> body (). data ());
9292 CHECKSERT (res->body () == " /testing" , " Received body: \" /testing\" " );
9393
9494 printf (" SUCCESS\n " );
Original file line number Diff line number Diff line change @@ -238,7 +238,6 @@ exclusions=(
238238 " dhcpd" # Times out, requires certain routes to be set up. Seems easy.
239239 " dhcpd_dhclient_linux" # We can't run userspace tests with this setup yet.
240240 " gateway" # Requires NaCl which is currently not integrated
241- " http" # Linking fails, undefined ref to http_parser_parse_url, http_parser_execute
242241 " microLB" # Missing dependencies: microLB, diskbuilder, os_add_os_library
243242 " nat" # Times out after 3 / 6 tests seem to pass. Might be a legit bug here.
244243 " router" # Times out, requies sudo and has complex network setup.
@@ -258,6 +257,7 @@ unsandbox_list=(
258257 " ${INTEGRATION_TESTS} /net/tcp"
259258 " ${INTEGRATION_TESTS} /net/udp"
260259 " ${INTEGRATION_TESTS} /net/dns" # except this one which times out instead
260+ " ${INTEGRATION_TESTS} /net/http"
261261)
262262run_testsuite " ${INTEGRATION_TESTS} /net" " ${exclusions[@]} "
263263unsandbox_list=()
You can’t perform that action at this time.
0 commit comments