Add a bunch of tests to sandboxing.

pull/2534/merge
Jussi Pakkanen 7 years ago
parent f220a5dd86
commit 004cc1493b
  1. 4
      test cases/common/162 wrap file should not failed/meson.build
  2. 2
      test cases/common/162 wrap file should not failed/src/meson.build
  3. 7
      test cases/common/162 wrap file should not failed/src/subprojects/foo/prog2.c
  4. 7
      test cases/common/162 wrap file should not failed/src/subprojects/prog.c
  5. 3
      test cases/common/162 wrap file should not failed/subprojects/zlib-1.2.8/foo.c
  6. 2
      test cases/failing/63 subproj filegrab/meson.build
  7. 7
      test cases/failing/64 grab subproj/meson.build
  8. 3
      test cases/failing/64 grab subproj/subprojects/foo/meson.build
  9. 6
      test cases/failing/64 grab subproj/subprojects/foo/sub.c
  10. 3
      test cases/failing/65 grab sibling/meson.build
  11. 3
      test cases/failing/65 grab sibling/subprojects/a/meson.build
  12. 3
      test cases/failing/65 grab sibling/subprojects/b/meson.build
  13. 6
      test cases/failing/65 grab sibling/subprojects/b/sneaky.c

@ -1,3 +1,7 @@
project('mainproj', 'c')
subproject('zlib')
executable('grabprog', files('src/subprojects/prog.c'))
executable('grabprog2', files('src/subprojects/foo/prog2.c'))
subdir('src')

@ -0,0 +1,2 @@
executable('grabprog3', files('subprojects/prog.c'))
executable('grabprog4', files('subprojects/foo/prog2.c'))

@ -0,0 +1,7 @@
#include<stdio.h>
int main(int argc, char **argv) {
printf("Do not have a file layout like this in your own projects.\n");
printf("This is only to test that this works.\n");
return 0;
}

@ -0,0 +1,7 @@
#include<stdio.h>
int main(int argc, char **argv) {
printf("Do not have a file layout like this in your own projects.\n");
printf("This is only to test that this works.\n");
return 0;
}

@ -1,3 +1,5 @@
project('mainproj', 'c')
# Try to grab a file from a parent project.
subproject('a')

@ -0,0 +1,7 @@
project('grabber', 'c')
# Try to grab a file from a child subproject.
subproject('foo')
executable('foo', 'subprojects/foo/sub.c')

@ -0,0 +1,3 @@
project('foo', 'c')
message('I do nothing.')

@ -0,0 +1,6 @@
#include<stdio.h>
int main(int argc, char **argv) {
printf("I am a subproject executable file.\n");
return 0;
}

@ -0,0 +1,3 @@
project('master', 'c')
subproject('a')

@ -0,0 +1,3 @@
project('a', 'c')
executable('sneaky', '../b/sneaky.c')

@ -0,0 +1,3 @@
projecT('b', 'c')
message('I do nothing.')

@ -0,0 +1,6 @@
#include<stdio.h>
int main(int argc, char **argv) {
printf("I can only come into existance via trickery.\n");
return 0;
}
Loading…
Cancel
Save