diff options
Diffstat (limited to 'manual tests/1 wrap')
-rw-r--r-- | manual tests/1 wrap/main.c | 12 | ||||
-rw-r--r-- | manual tests/1 wrap/meson.build | 13 | ||||
-rw-r--r-- | manual tests/1 wrap/subprojects/sqlite.wrap | 10 |
3 files changed, 35 insertions, 0 deletions
diff --git a/manual tests/1 wrap/main.c b/manual tests/1 wrap/main.c new file mode 100644 index 0000000..df6abe4 --- /dev/null +++ b/manual tests/1 wrap/main.c @@ -0,0 +1,12 @@ +#include<sqlite3.h> +#include<stdio.h> + +int main(void) { + sqlite3 *db; + if(sqlite3_open(":memory:", &db) != SQLITE_OK) { + printf("Sqlite failed.\n"); + return 1; + } + sqlite3_close(db); + return 0; +} diff --git a/manual tests/1 wrap/meson.build b/manual tests/1 wrap/meson.build new file mode 100644 index 0000000..aee358d --- /dev/null +++ b/manual tests/1 wrap/meson.build @@ -0,0 +1,13 @@ +project('downloader', 'c') + +cc = meson.get_compiler('c') + +s = subproject('sqlite').get_variable('sqlite_dep') +th = dependency('threads') + +libdl = cc.find_library('dl', required : false) + +e = executable('dtest', 'main.c', + dependencies : [th, libdl, s]) + +test('dltest', e) diff --git a/manual tests/1 wrap/subprojects/sqlite.wrap b/manual tests/1 wrap/subprojects/sqlite.wrap new file mode 100644 index 0000000..6d14949 --- /dev/null +++ b/manual tests/1 wrap/subprojects/sqlite.wrap @@ -0,0 +1,10 @@ +[wrap-file] +directory = sqlite-amalgamation-3080802 + +source_url = http://sqlite.com/2015/sqlite-amalgamation-3080802.zip +source_filename = sqlite-amalgamation-3080802.zip +source_hash = 5ebeea0dfb75d090ea0e7ff84799b2a7a1550db3fe61eb5f6f61c2e971e57663 + +patch_url = https://wrapdb.mesonbuild.com/v1/projects/sqlite/3080802/5/get_zip +patch_filename = sqlite-3080802-5-wrap.zip +patch_hash = d66469a73fa1344562d56a1d7627d5d0ee4044a77b32d16cf4bbb85741d4c9fd |