Skip to content

Commit

Permalink
tests: Fix existing tests except binary dependency tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nouwaarom committed Apr 2, 2021
1 parent 419edce commit 754ef31
Show file tree
Hide file tree
Showing 29 changed files with 719 additions and 830 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ OBJS = $(DEPS:.c=.o)

export CC

CFLAGS += -std=c17 -U__STRICT_ANSI__ -Ideps -Isrc/common -Isrc/repository -Isrc/registry
CFLAGS += -g -Wall -Werror=return-type -Wno-unused-function $(shell curl-config --cflags)
CFLAGS += -std=c99 -U__STRICT_ANSI__ -Ideps -Isrc/common -Isrc/repository -Isrc/registry $(shell curl-config --cflags)
CFLAGS += -g -Wall -Werror=return-type -Wno-unused-function -Werror=implicit-function-declaration

ifdef STATIC
CFLAGS += -DCURL_STATICLIB $(shell deps/curl/bin/curl-config --cflags)
Expand Down
5 changes: 2 additions & 3 deletions clib.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
"which": "0.1.3",
"stephenmathieson/str-flatten.c": "0.0.4",
"commander": "1.3.2",
"stephenmathieson/wiki-registry.c": "0.0.4",
"stephenmathieson/case.c": "0.1.3",
"jwerle/fs.c": "0.2.0",
"stephenmathieson/str-replace.c": "0.0.6",
"strdup": "*",
"strdup": "0.1.*",
"Constellation/console-colors.c": "1.0.1",
"littlstar/asprintf.c": "0.0.3",
"logger": "0.0.1",
Expand All @@ -44,7 +43,7 @@
"stephenmathieson/gumbo-get-element-by-id.c": "*",
"stephenmathieson/gumbo-get-elements-by-tag-name.c": "*",
"clibs/list": "*",
"jwerle/url.h": "0.1.*"
"jwerle/url.h": "0.2.*"
},
"development": {
"stephenmathieson/describe.h": "2.0.1"
Expand Down
2 changes: 1 addition & 1 deletion deps/http-get/http-get.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ int http_get_file_shared(const char *url, const char *file, CURLSH *share, const
return (200 == status && CURLE_ABORTED_BY_CALLBACK != res) ? 0 : -1;
}

int http_get_file(const char *url, const char *file) {
int http_get_file(const char *url, const char *file, const char** headers, int header_count) {
return http_get_file_shared(url, file, NULL, NULL, 0);
}

Expand Down
2 changes: 1 addition & 1 deletion deps/http-get/http-get.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ typedef struct {
http_get_response_t *http_get(const char *url, const char** headers, int header_count);
http_get_response_t *http_get_shared(const char *url, void *, const char** headers, int header_count);

int http_get_file(const char *, const char *);
int http_get_file(const char *, const char *, const char** headers, int header_count);
int http_get_file_shared(const char *, const char *, void *, const char** headers, int header_count);

void http_get_free(http_get_response_t *);
Expand Down
7 changes: 4 additions & 3 deletions deps/url/package.json → deps/url/clib.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "url",
"version": "0.0.2",
"version": "0.2.0",
"repo": "jwerle/url.h",
"description": "Parse URLs much like Node's url module",
"keywords": ["url", "parse"],
"license": "MIT",
"src": ["url.h"]
}
"makefile": "Makefile",
"src": ["url.h", "url.c"]
}
Loading

0 comments on commit 754ef31

Please sign in to comment.