Home
last modified time | relevance | path

Searched refs:script (Results 1 – 25 of 799) sorted by relevance

12345678910>>...32

/llvm-project/lldb/test/API/commands/command/script/
H A Dpy_import1 script import sys, os
2 script sys.path.append(os.path.join(os.getcwd(), os.pardir))
3 script import welcome
4 script import bug11569
5 command script add welcome --class welcome.WelcomeCommand
6 command script add targetname --class welcome.TargetnameCommand
7 command script add longwait --function welcome.print_wait_impl
8 command script import mysto.py --allow-reload
9 command script add tell_sync --function welcome.check_for_synchro --synchronicity sync
10 command script add tell_async --function welcome.check_for_synchro --synchronicity async
[all …]
/llvm-project/lld/test/ELF/linkerscript/
H A Dsections-padding.s5 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =0x1122 }" > %t.script
6 # RUN: ld.lld -o %t.out --script %t.script %t
10 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =(0x1100+0x22) }" > %t.script
11 # RUN: ld.lld -o %t.out --script %t.script %t
16 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =0x99887766 }" > %t.script
17 # RUN: ld.lld -o %t.out --script %t.script %t
22 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } }" > %t.script
23 # RUN: ld.lld -o %t.out --script %t.script %t
28 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =777 }" > %t.script
29 # RUN: ld.lld -o %t.out --script %t.script %t
[all …]
H A Dregion-alias.s7 # RUN: INCLUDE \"%t.script.inc\" \
11 # RUN: }" > %t.script
14 # RUN: echo 'REGION_ALIAS ("ALIAS_TEXT", "ROM");' > %t.script.inc
15 # RUN: echo "REGION_ALIAS (\"ALIAS_DATA\", RAM);" >> %t.script.inc
16 # RUN: ld.lld %t --script %t.script -o %t2
22 # RUN: echo "REGION_ALIAS (\"ALIAS_TEXT\", ROM);" > %t.script.inc
23 # RUN: echo "REGION_ALIAS (\"ALIAS_DATA\", ROM);" >> %t.script.inc
24 # RUN: ld.lld %t --script %t.script
[all...]
H A Dsort.s6 # RUN: echo "SECTIONS { .aaa : { *(.aaa.*) } }" > %t1.script
7 # RUN: ld.lld -o %t1 --script %t1.script %t2.o %t1.o
19 # RUN: echo "SECTIONS { .aaa : { *(SORT(.aaa.*)) } }" > %t2.script
20 # RUN: ld.lld -o %t2 --script %t2.script %t2.o %t1.o
33 # RUN: echo "SECTIONS { .aaa : { *(SORT(.aaa.*)) } }" > %t3.script
34 # RUN: ld.lld -o %t3 --script %t3.script %t1.o %t2.o
46 # RUN: echo "SECTIONS { .aaa : { KEEP (*(SORT(.aaa.*))) } }" > %t3.script
47 # RUN: ld.lld -o %t3 --script %t3.script %t2.o %t1.o
51 # RUN: echo "SECTIONS { .aaa : { *(SORT_BY_NAME(.aaa.*)) } }" > %t4.script
52 # RUN: ld.lld -o %t4 --script %t4.script %t2.o %t1.o
[all …]
H A Dassert.s4 # RUN: echo "SECTIONS { ASSERT(1, fail) }" > %t1.script
5 # RUN: ld.lld -shared -o %t1 --script %t1.script %t1.o
8 # RUN: echo "SECTIONS { ASSERT(0, fail) }" > %t3.script
9 # RUN: not ld.lld -o /dev/null -T %t3.script %t1.o 2>&1 | FileCheck --check-prefix=FAIL %s
10 # RUN: ld.lld -o /dev/null -T %t3.script %t1.o --noinhibit-exec 2>&1 | FileCheck --check-prefix=FAI…
13 # RUN: echo "SECTIONS { . = ASSERT(0x1000, fail); }" > %t4.script
14 # RUN: ld.lld -shared -o %t4 --script %t4.script %t1.o
17 # RUN: echo "SECTIONS { .foo : { *(.foo) } }" > %t5.script
18 # RUN: echo "ASSERT(SIZEOF(.foo) == 8, fail);" >> %t5.script
19 # RUN: ld.lld -shared -o %t5 --script %t5.script %t1.o
[all …]
H A Dnumbers.s16 # RUN: }" > %t.script
17 # RUN: ld.lld %t --script %t.script -o %t2
31 # RUN: echo "SECTIONS { . = 0x11h; }" > %t2.script
32 # RUN: not ld.lld %t --script %t2.script -o /dev/null 2>&1 | \
36 # RUN: echo "SECTIONS { . = 0x11k; }" > %t3.script
37 # RUN: not ld.lld %t --script %t3.script -o /dev/null 2>&1 | \
41 # RUN: echo "SECTIONS { . = 0x11m; }" > %t4.script
42 # RUN: not ld.lld %t --script %t4.script -o /dev/null 2>&1 | \
46 # RUN: echo "SECTIONS { . = 1zh; }" > %t5.script
47 # RUN: not ld.lld %t --script %t5.script -o /dev/null 2>&1 | \
[all …]
H A Dsymbols.s7 # RUN: echo "SECTIONS {.text : {*(.text.*)} text_end = .;}" > %t.script
8 # RUN: ld.lld -o %t1 --script %t.script %t
19 # RUN: echo "SECTIONS { PROVIDE_HIDDEN(newsym = 1);}" > %t.script
20 # RUN: ld.lld -o %t1 --script %t.script %t
25 # RUN: echo "SECTIONS { PROVIDE(somesym =1);}" > %t.script
26 # RUN: ld.lld -o %t1 --script %t.script %t
32 # RUN: echo "SECTIONS { PROVIDE_HIDDEN(somesym =1);}" > %t.script
33 # RUN: ld.lld -o %t1 --script %t.script %t
38 # RUN: echo "SECTIONS { HIDDEN(newsym =1);}" > %t.script
39 # RUN: ld.lld -o %t1 --script %t.script %t
[all …]
H A Dinfo-section-type.s7 # RUN: echo "SECTIONS { .bar : { *(.foo) } };" > %t.script
8 # RUN: ld.lld -o %t --script %t.script %t.o
16 # RUN: echo "SECTIONS { .bar (COPY) : { *(.foo) } };" > %t.script
17 # RUN: ld.lld -o %t --script %t.script %t.o
24 # RUN: echo "SECTIONS { .bar (INFO) : { *(.foo) } };" > %t.script
25 # RUN: ld.lld -o %t --script %t.script %t.o
28 # RUN: echo "SECTIONS { .bar (OVERLAY) : { *(.foo) } };" > %t.script
29 # RUN: ld.lld -o %t --script %t.script %t.o
32 # RUN: echo "SECTIONS { .bar (INFO) : { . += 1; } };" > %t.script
33 # RUN: ld.lld -o %t --script %t.script %t.o
[all …]
H A Dmemory-err.s6 # RUN: echo 'MEMORY { ram (rwx) : XYZ = 0x8000 } }' > %t.script
7 # RUN: not ld.lld -o /dev/null -T %t.script %t.o 2>&1 | FileCheck --check-prefix=ERR1 %s
8 # ERR1: {{.*}}.script:1: expected one of: ORIGIN, org, or o
12 # RUN: echo 'MEMORY { ram (rwx) : ORIGIN = 0x8000, XYZ = 256K } }' > %t.script
13 # RUN: not ld.lld -o /dev/null -T %t.script %t.o 2>&1 | FileCheck --check-prefix=ERR2 %s
14 # ERR2: {{.*}}.script:1: expected one of: LENGTH, len, or l
18 # RUN: echo 'MEMORY { ram (rwx) : o = 8, l = 256K ram (rx) : o = 0, l = 256K }' > %t.script
19 # RUN: not ld.lld -o /dev/null -T %t.script %t.o 2>&1 | FileCheck --check-prefix=ERR3 %s
20 # ERR3: {{.*}}.script:1: region 'ram' already defined
28 # RUN: }' > %t.script
[all...]
H A Dlinkerscript.s6 # RUN: echo "EXTERN( undef undef2 \"undef3\" \"undef4@@other\")" > %t.script
7 # RUN: ld.lld %t -o %t2 %t.script
10 # RUN: echo "OUTPUT_FORMAT(elf64-x86-64) /*/*/ GROUP(\"%t\" )" > %t.script
11 # RUN: ld.lld -o %t2 %t.script
15 # RUN: echo "OUTPUT(\"%t.out\")" > %t.script
16 # RUN: ld.lld %t.script %t
19 # RUN: echo "SEARCH_DIR(/lib/foo/blah)" > %t.script
20 # RUN: ld.lld %t.script %t -o %t.out
23 # RUN: echo ";SEARCH_DIR(x);SEARCH_DIR(y);" > %t.script
24 # RUN: ld.lld %t.script %t -o %t.out
[all …]
H A Dsymbol-reserved.s6 # RUN: echo "PROVIDE_HIDDEN(newsym = __ehdr_start + 5);" > %t.script
7 # RUN: ld.lld -o %t1 %t.script %t
12 # RUN: ld.lld -o %t1.so %t.script %t -shared
17 # RUN: echo "PROVIDE_HIDDEN(newsym = ALIGN(__ehdr_start, CONSTANT(MAXPAGESIZE)) + 5);" > %t.script
18 # RUN: ld.lld -o %t1 %t.script %t
23 # RUN: echo "PROVIDE_HIDDEN(newsym = ALIGN(3, 8) + 10);" > %t.script
24 # RUN: ld.lld -o %t1 %t.script %t
28 # RUN: echo "PROVIDE_HIDDEN(newsym = ALIGN(11, 8) - 10);" > %t.script
29 # RUN: ld.lld -o %t1 %t.script %t
33 # RUN: echo "PROVIDE_HIDDEN(newsym = ALIGN(_end, CONSTANT(MAXPAGESIZE)) + 5);" > %t.script
[all …]
H A Dfill-exec-sections.s5 ## otherwise specified in the script.
6 # RUN: echo "SECTIONS { .exec : { *(.exec*) } }" > %t.script
7 # RUN: ld.lld -o %t.out --script %t.script %t
13 # RUN: echo "SECTIONS { .exec : { *(.exec*) }=0x11223344 }" > %t2.script
14 # RUN: ld.lld -o %t2.out --script %t2.script %t
16 # RUN: echo "SECTIONS { .exec : { FILL(0x11223344); *(.exec*) } }" > %t3.script
17 # RUN: ld.lld -o %t3.out --script %t3.script %t
24 # RUN: echo "SECTIONS { .exec : { *(.exec*) }=0x00000000 }" > %t4.script
25 # RUN: ld.lld -o %t4.out --script %t4.script %t
27 # RUN: echo "SECTIONS { .exec : { FILL(0x00000000); *(.exec*) } }" > %t5.script
[all …]
H A Daddress-expr-symbols.s4 # RUN: echo "SECTIONS { .bar (foo) : { } };" > %t.script
5 # RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
8 # RUN: echo "SECTIONS { .bar : AT(foo) { } };" > %t.script
9 # RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
11 # RUN: echo "SECTIONS { .bar : ALIGN(foo) { } };" > %t.script
12 # RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
14 # RUN: echo "SECTIONS { .bar : SUBALIGN(foo) { } };" > %t.script
15 # RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck %s
H A Dmemory.s10 # RUN: }" > %t.script
11 # RUN: ld.lld -o %t1 --script %t.script %t
26 # RUN: }" > %t.script
27 # RUN: ld.lld -o %t1 --script %t.script %t
42 # RUN: }" > %t.script
43 # RUN: ld.lld -o %t1 --script %t.script %t
54 # RUN: }' > %t.script
55 # RUN: ld.lld -T %t.script %t --defsym symbol=0x5000 -o %t.relro
57 # RUN: echo 'symbol = 0x5000;' > %t1.script
58 # RUN: ld.lld -T %t.script -T %t1.script %t -o %t.relro2
[all …]
H A Dsubalign.s4 # RUN: echo "SECTIONS { .aaa : { *(.aaa.*) } }" > %t1.script
5 # RUN: ld.lld -o %t1 --script %t1.script %t1.o
18 # RUN: echo "SECTIONS { .aaa : SUBALIGN(1) { *(.aaa.*) } }" > %t2.script
19 # RUN: ld.lld -o %t2 --script %t2.script %t1.o
28 # RUN: echo "SECTIONS { . = 0x32; .aaa : SUBALIGN(.) { *(.aaa*) } }" > %t3.script
29 # RUN: not ld.lld %t1.o --script %t3.script -o /dev/null 2>&1 | FileCheck --check-prefix=ERR1 %s
30 # ERR1: {{.*}}.script:1: unable to get location counter value
33 # RUN: echo "SECTIONS { .aaa : SUBALIGN(0) { *(.aaa*) } }" > %t4.script
34 # RUN: ld.lld %t1.o --script %t4.script -o %t4
38 # RUN: echo "SECTIONS { .aaa : SUBALIGN(3) { *(.aaa*) } }" > %t5.script
[all …]
H A Dphdrs.s78 ## TODO: If script doesn't contain PHDRS {} block then default phdr is always
H A Dearly-assign-symbol.s7 # RUN: echo "SECTIONS { aaa = foo | 1; .text : { *(.text*) } }" > %t3.script
8 # RUN: ld.lld -o %t --script %t3.script %t.o
14 # RUN: echo "SECTIONS { aaa = ABSOLUTE(foo - 1) + 1; .text : { *(.text*) } }" > %t.script
15 # RUN: ld.lld -o %t --script %t.script %t.o
18 # RUN: echo "SECTIONS { aaa = 1 + ABSOLUTE(foo - 1); .text : { *(.text*) } }" > %t.script
19 # RUN: ld.lld -o %t --script %t.script %t.o
22 # RUN: echo "SECTIONS { aaa = ABSOLUTE(foo); .text : { *(.text*) } }" > %t4.script
23 # RUN: ld.lld -o %t --script %t4.script %t.o
H A Dalign1.test3 # RUN: ld.lld -o %t --script %s %t.o
23 # RUN: echo "SECTIONS { . = ALIGN(0x123, 0); .aaa : { *(.aaa) } }" > %t.script
24 # RUN: ld.lld -o %t4 --script %t.script %t.o
33 # RUN: echo "SECTIONS { . = 0x123; . = ALIGN(0); .aaa : { *(.aaa) } }" > %t.script
34 # RUN: ld.lld -o %t5 --script %t.script %t.o
38 # RUN: echo "SECTIONS { . = 0x123; . = ALIGN(0x123, 3); .aaa : { *(.aaa) } }" > %t.script
39 # RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck -check-prefix=ERR %s
41 # RUN: echo "SECTIONS { . = 0x123; . = ALIGN(3); .aaa : { *(.aaa) } }" > %t.script
42 # RUN: not ld.lld -o /dev/null --script %t.script %t.o 2>&1 | FileCheck -check-prefix=ERR %s
44 # ERR: {{.*}}.script:1: alignment must be power of 2
/llvm-project/lld/test/ELF/
H A Dversion-script-complex-wildcards.s4 # RUN: echo "FOO { global: extern \"C++\" { ab[c]*; }; };" > %t.script
5 # RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
10 # RUN: echo "FOO { global: extern \"C++\" { ab[b]*; }; };" > %t1.script
11 # RUN: ld.lld --version-script %t1.script -shared %t.o -o %t1.so
16 # RUN: echo "FOO { global: extern \"C++\" { ab[a-b]*; }; };" > %t2.script
17 # RUN: ld.lld --version-script %t2.script -shared %t.o -o %t2.so
20 # RUN: echo "FOO { global: extern \"C++\" { ab[a-c]*; }; };" > %t3.script
21 # RUN: ld.lld --version-script %t3.script -shared %t.o -o %t3.so
26 # RUN: echo "FOO { global: extern \"C++\" { ab[a-bc-d]*; }; };" > %t4.script
27 # RUN: ld.lld --version-script %t4.script -shared %t.o -o %t4.so
[all …]
H A Dversion-script.s6 # RUN: echo "{ global: foo1; foo3; local: *; };" > %t.script
8 # RUN: ld.lld --version-script %t.script -shared %t.o %t2.so -o %t.so --fatal-warnings
11 # RUN: echo "# comment" > %t3.script
12 # RUN: echo "{ local: *; # comment" >> %t3.script
13 # RUN: echo -n "}; # comment" >> %t3.script
14 # RUN: ld.lld --version-script %t3.script -shared %t.o %t2.so -o %t3.so
18 # RUN: echo "VERSION_1.0 { global : foo1; local : *; };" > %t4.script
19 # RUN: echo "VERSION_2.0 { global: foo3; local: *; };" >> %t4.script
20 # RUN: ld.lld --version-script %t4.script -shared %t.o %t2.so -o %t4.so --fatal-warnings
23 # RUN: echo "VERSION_1.0 { global: foo1; local: *; };" > %t5.script
[all …]
H A Dversion-script-noundef.s3 # RUN: echo "VERSION_1.0 { global: bar; };" > %t.script
5 # RUN: not ld.lld --version-script %t.script -shared %t.o -o /dev/null \
7 # RUN: ld.lld --version-script %t.script -shared --undefined-version %t.o -o %t.so
8 # RUN: not ld.lld --version-script %t.script -shared --no-undefined-version \
10 # ERR1: version script assignment of 'VERSION_1.0' to symbol 'bar' failed: symbol not defined
12 # RUN: echo "VERSION_1.0 { global: und; };" > %t2.script
13 # RUN: not ld.lld --version-script %t2.script -shared --no-undefined-version \
15 # ERR2: version script assignment of 'VERSION_1.0' to symbol 'und' failed: symbol not defined
17 # RUN: echo "VERSION_1.0 { local: und; };" > %t3.script
18 # RUN: not ld.lld --version-script %t3.script -shared --no-undefined-version \
[all …]
H A Dversion-script-symver.s2 ## Test how .symver interacts with --version-script.
7 # RUN: echo 'v1 { local: foo1; }; v2 { local: foo2; };' > %t1.script
8 # RUN: ld.lld --version-script %t1.script -shared %t.o -o %t1.so
16 # RUN: echo 'v1 { local: foo*; }; v2 {};' > %t2.script
17 # RUN: ld.lld --version-script %t2.script -shared %t.o -o %t2.so
24 # RUN: echo 'v1 { global: *; local: foo*; }; v2 {};' > %t3.script
25 # RUN: ld.lld --version-script %t3.script -shared %t.o -o %t3.so
32 # RUN: echo 'v1 { global: foo*; local: *; }; v2 { global: foo4; local: *; };' > %t4.script
33 # RUN: ld.lld --version-script %t4.script -shared %t.o -o %t4.so
42 # RUN: ld.lld --version-script %t4.script -pie --export-dynamic %t.o -o %t4
[all …]
/llvm-project/llvm/utils/lit/tests/unit/
H A DTestRunner.py82 script = parseIntegratedTestScript(
87 if isinstance(script, lit.Test.Result):
90 assert isinstance(script, list)
91 assert len(script) == 0
92 return script
159 script = self.parse_test(parsers, allow_result=True)
160 self.assertTrue(isinstance(script, lit.Test.Result))
161 self.assertEqual(script.code, lit.Test.UNRESOLVED)
164 script.output,
172 script = self.parse_test(parsers, allow_result=True)
[all …]
/llvm-project/lldb/test/Shell/ScriptInterpreter/Python/
H A Dpython.test1 # RUN: %lldb --script-language python -o 'script print("{}".format(1000+100+10+1))' 2>&1 | FileChec…
2 # RUN: %lldb --script-language python -o 'script -- print("{}".format(1000+100+10+1))' 2>&1 | FileC…
3 # RUN: %lldb --script-language python -o 'script --language default -- print("{}".format(1000+100+1…
4 # RUN: %lldb -o 'script -l python -- print("{}".format(1000+100+10+1))' 2>&1 | FileCheck %s
5 # RUN: %lldb -o 'script -lpython -- print("{}".format(1000+100+10+1))' 2>&1 | FileCheck %s
6 # RUN: %lldb -o 'script --language python -- print("{}".format(1000+100+10+1))' 2>&1 | FileCheck %s
7 # RUN: %lldb -o 'script --language=python -- print("{}".format(1000+100+10+1))' 2>&1 | FileCheck %s
8 # RUN: %lldb -o 'script -lpython -- if True: print("{}".format(1000+100+10+1))' 2>&1 | FileCheck %s
11 # RUN: %lldb -o 'script --language invalid -- print("{}".format(1000+100+10+1))' 2>&1 | FileCheck %…
/llvm-project/lldb/test/Shell/Driver/Inputs/
H A Dconvenience.in3 script print(lldb.debugger)
4 script lldb.debugger
5 script print(lldb.target)
6 script lldb.target
7 script print(lldb.process)
8 script lldb.process
9 script print(lldb.thread.GetStopDescription(100))
10 script lldb.frame.GetLineEntry().GetLine()
11 script lldb.frame.GetLineEntry().GetFileSpec().GetFilename()
12 script lldb.frame.GetFunctionName()

12345678910>>...32