Browse Source

Start a test HTTP server in Travis.

Giovanni Mascellani 5 years ago
parent
commit
409383f656
3 changed files with 9 additions and 1 deletions
  1. 3 0
      .travis.yml
  2. 1 1
      diskfs/run_tcc_ipxe.c
  3. 5 0
      http/continue.c

+ 3 - 0
.travis.yml

@@ -14,6 +14,9 @@ addons:
     - python3
     - gcc-multilib
 
+before_script:
+- cd http && python3 -m http.server 8080 &
+
 script:
 - make
 - qemu-system-i386 -hda build/boot_asmg.x86 -serial stdio -device isa-debug-exit -display none -m 256M | ./test/decode_tests.py

+ 1 - 1
diskfs/run_tcc_ipxe.c

@@ -326,7 +326,7 @@ int main(int argc, char *argv[]) {
     coro_t *coro_ipxe = coro_init(main_symb, &ih);
     coro_enter(coro_ipxe);
 
-    const char *url = "http://www.example.com/";
+    const char *url = "http://10.0.2.2:8080/continue.c";
     printf("Request to download %s\n", url);
     push_to_ipxe(strdup("download"));
     push_to_ipxe(strdup(url));

+ 5 - 0
http/continue.c

@@ -0,0 +1,5 @@
+
+int main() {
+	return 0;
+}
+