wrap: Add test case for local source / patch files

pull/6818/head
Daniel Mensinger 5 years ago
parent ccdf7f6d34
commit faf16545fa
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 6
      test cases/common/157 wrap file should not failed/meson.build
  2. 4
      test cases/common/157 wrap file should not failed/src/meson.build
  3. 9
      test cases/common/157 wrap file should not failed/src/test.c
  4. 2
      test cases/common/157 wrap file should not failed/subprojects/.gitignore
  5. 8
      test cases/common/157 wrap file should not failed/subprojects/bar.wrap
  6. 3
      test cases/common/157 wrap file should not failed/subprojects/foo-1.0/foo.c
  7. 2
      test cases/common/157 wrap file should not failed/subprojects/foo-1.0/meson.build
  8. 4
      test cases/common/157 wrap file should not failed/subprojects/foo.wrap
  9. BIN
      test cases/common/157 wrap file should not failed/subprojects/packagecache/foo-1.0-patch.tar.xz
  10. BIN
      test cases/common/157 wrap file should not failed/subprojects/packagecache/foo-1.0.tar.xz
  11. BIN
      test cases/common/157 wrap file should not failed/subprojects/packagefiles/bar-1.0-patch.tar.xz
  12. BIN
      test cases/common/157 wrap file should not failed/subprojects/packagefiles/bar-1.0.tar.xz

@ -3,7 +3,11 @@ project('mainproj', 'c',
)
subproject('zlib')
subproject('foo')
foo = subproject('foo')
bar = subproject('bar')
libfoo = foo.get_variable('libfoo')
libbar = bar.get_variable('libbar')
executable('grabprog', files('src/subprojects/prog.c'))
executable('grabprog2', files('src/subprojects/foo/prog2.c'))

@ -1,2 +1,6 @@
executable('grabprog3', files('subprojects/prog.c'))
executable('grabprog4', files('subprojects/foo/prog2.c'))
texe = executable('testexe', files('test.c'), link_with: [libfoo, libbar])
test('t1', texe)

@ -0,0 +1,9 @@
#include <stdio.h>
int bar_dummy_func(void);
int dummy_func(void);
int main(void) {
printf("Hello world %d\n", bar_dummy_func() + dummy_func());
return 0;
}

@ -0,0 +1,8 @@
[wrap-file]
directory = bar-1.0
lead_directory_missing = true
source_filename = bar-1.0.tar.xz
source_hash = f0f61948530dc0d33e3028cd71a9f8ee869f6b3665960d8f41d715cf4aed6467
patch_filename = bar-1.0-patch.tar.xz

@ -1,2 +0,0 @@
project('shared lib', 'c')
libfoo = shared_library('foo', 'foo.c')

@ -3,9 +3,9 @@ directory = foo-1.0
source_url = http://something.invalid
source_filename = foo-1.0.tar.xz
source_hash = ae5fc03185654f76b459db16ca25809703f8821aeb39a433902244bb479c4b79
source_hash = 9ed8f67d75e43d3be161efb6eddf30dd01995a958ca83951ea64234bac8908c1
lead_directory_missing = true
patch_url = https://something.invalid/patch
patch_filename = foo-1.0-patch.tar.xz
patch_hash = 8f2e286a4b190228d4e0c25ddc91195449cfb5e5c52006355838964b244037da
patch_hash = d0ddc5e60fdb27d808552f5ac8d0bb603ea2cba306538b4427b985535b26c9c5

Loading…
Cancel
Save