diff options
author | William Deegan <bill@baddogconsulting.com> | 2018-12-05 20:29:18 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2018-12-05 20:29:18 (GMT) |
commit | 839d7cc63aac9d6f7c03b4dd0c64829f7c75f1f2 (patch) | |
tree | 969894900ef48a89c8baecec088eb4b91cb4822e | |
parent | 0e89015ebf0cbc47bb2da5f7cd10a031dc1c580f (diff) | |
download | SCons-839d7cc63aac9d6f7c03b4dd0c64829f7c75f1f2.zip SCons-839d7cc63aac9d6f7c03b4dd0c64829f7c75f1f2.tar.gz SCons-839d7cc63aac9d6f7c03b4dd0c64829f7c75f1f2.tar.bz2 |
move applelink test to use directory fixture
-rw-r--r-- | test/LINK/applelink.py | 26 | ||||
-rw-r--r-- | test/LINK/applelink_image/SConstruct_gh2580 | 8 | ||||
-rw-r--r-- | test/LINK/applelink_image/foo.c | 9 | ||||
-rw-r--r-- | test/LINK/applelink_image/sconstest.skip | 0 |
4 files changed, 19 insertions, 24 deletions
diff --git a/test/LINK/applelink.py b/test/LINK/applelink.py index 3419fc1..36b4bf2 100644 --- a/test/LINK/applelink.py +++ b/test/LINK/applelink.py @@ -34,31 +34,9 @@ _exe = TestSCons._exe test = TestSCons.TestSCons() -test.write('foo.c', r""" -#include <stdio.h> -#include <stdlib.h> -int -main(int argc, char *argv[]) -{ - argv[argc++] = "--"; - printf("foo.c\n"); - exit (0); -} -""") - # Test issue # 2580 -test.write('SConstruct', """ -DefaultEnvironment(tools=[]) -env = Environment(PLATFORM='darwin') -env.Object( - target = '#foo.o', - source = ['foo.c'], - FRAMEWORKS = ['Ogre'], - FRAMEWORKPATH = ['#frameworks'] -) -""" % locals()) - -test.run(arguments='-Q -n', stdout='gcc -o foo.o -c -Fframeworks foo.c\n') +test.dir_fixture('applelink_image') +test.run(arguments='-f SConstruct_gh2580 -Q -n', stdout='gcc -o foo.o -c -Fframeworks foo.c\n') test.pass_test() diff --git a/test/LINK/applelink_image/SConstruct_gh2580 b/test/LINK/applelink_image/SConstruct_gh2580 new file mode 100644 index 0000000..79fd9d5 --- /dev/null +++ b/test/LINK/applelink_image/SConstruct_gh2580 @@ -0,0 +1,8 @@ +DefaultEnvironment(tools=[]) +env = Environment(PLATFORM='darwin') +env.Object( + target = '#foo.o', + source = ['foo.c'], + FRAMEWORKS = ['Ogre'], + FRAMEWORKPATH = ['#frameworks'] +) diff --git a/test/LINK/applelink_image/foo.c b/test/LINK/applelink_image/foo.c new file mode 100644 index 0000000..a441953 --- /dev/null +++ b/test/LINK/applelink_image/foo.c @@ -0,0 +1,9 @@ +#include <stdio.h> +#include <stdlib.h> +int +main(int argc, char *argv[]) +{ + argv[argc++] = "--"; + printf("foo.c\n"); + exit (0); +}
\ No newline at end of file diff --git a/test/LINK/applelink_image/sconstest.skip b/test/LINK/applelink_image/sconstest.skip new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/LINK/applelink_image/sconstest.skip |