Home
last modified time | relevance | path

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

12345678910>>...31

/llvm-project-15.0.7/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
8 command script import mysto.py --allow-reload
13 command script import decorated.py
16 command script import callables.py
18 command script add -f callables.foobar foobar
19 command script add -f callables.foobar4 foobar4
20 command script add -f callables.vfoobar vfoobar
[all …]
/llvm-project-15.0.7/lld/test/ELF/linkerscript/
H A Dsections-padding.s6 # RUN: ld.lld -o %t.out --script %t.script %t
11 # RUN: ld.lld -o %t.out --script %t.script %t
17 # RUN: ld.lld -o %t.out --script %t.script %t
23 # RUN: ld.lld -o %t.out --script %t.script %t
29 # RUN: ld.lld -o %t.out --script %t.script %t
35 # RUN: not ld.lld -o /dev/null --script %t.script %t 2>&1 \
41 # RUN: ld.lld -o %t.out --script %t.script %t
46 # RUN: ld.lld -o %t.out --script %t.script %t
51 # RUN: ld.lld -o %t.out --script %t.script %t
56 # RUN: ld.lld -o %t.out --script %t.script %t
[all …]
H A Dregion-alias.s11 # 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
24 # RUN: ld.lld %t --script %t.script -o %t2
30 # RUN: echo "REGION_ALIAS (\"ROM\", ROM);" > %t.script.inc
31 # RUN: not ld.lld %t --script %t.script -o /dev/null 2>&1 | \
33 # ERR1: {{.*}}script.inc:1: redefinition of memory region 'ROM'
38 # RUN: not ld.lld %t --script %t.script -o /dev/null 2>&1 | \
44 # RUN: not ld.lld %t --script %t.script -o /dev/null 2>&1 | \
[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
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
24 # RUN: echo "ASSERT(SIZEOF(.foo) == 8, fail);" > %t5.script
25 # RUN: ld.lld -shared -o %t5 --script %t5.script %t1.o
30 # RUN: ld.lld -shared -o %t6 --script %t6.script %t1.o
[all …]
H A Dsort.s7 # RUN: ld.lld -o %t1 --script %t1.script %t2.o %t1.o
20 # RUN: ld.lld -o %t2 --script %t2.script %t2.o %t1.o
34 # RUN: ld.lld -o %t3 --script %t3.script %t1.o %t2.o
47 # RUN: ld.lld -o %t3 --script %t3.script %t2.o %t1.o
52 # RUN: ld.lld -o %t4 --script %t4.script %t2.o %t1.o
57 # RUN: ld.lld -o %t5 --script %t5.script %t1.o %t2.o
71 # RUN: ld.lld -o %t7 --script %t6.script %t2.o %t1.o
76 # RUN: ld.lld --sort-section alignment -o %t8 --script %t7.script %t1.o %t2.o
85 # RUN: ld.lld --sort-section name -o %t9 --script %t8.script %t1.o %t2.o
90 # RUN: ld.lld --sort-section name -o %t10 --script %t9.script %t2.o %t1.o
[all …]
H A Dnumbers.s16 # RUN: }" > %t.script
17 # RUN: ld.lld %t --script %t.script -o %t2
32 # RUN: not ld.lld %t --script %t2.script -o /dev/null 2>&1 | \
37 # RUN: not ld.lld %t --script %t3.script -o /dev/null 2>&1 | \
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 | \
52 # RUN: not ld.lld %t --script %t6.script -o /dev/null 2>&1 | \
57 # RUN: not ld.lld %t --script %t7.script -o /dev/null 2>&1 | \
66 # RUN: }" > %t8.script
[all …]
H A Dsymbols.s8 # RUN: ld.lld -o %t1 --script %t.script %t
20 # RUN: ld.lld -o %t1 --script %t.script %t
26 # RUN: ld.lld -o %t1 --script %t.script %t
33 # RUN: ld.lld -o %t1 --script %t.script %t
39 # RUN: ld.lld -o %t1 --script %t.script %t
50 # RUN: ld.lld -o %t1 --script %t.script %t
55 # RUN: echo "PROVIDE(somesym = 1);" > %t.script
56 # RUN: ld.lld -o %t1 --script %t.script %t
63 # RUN: ld.lld -o %t1 --script %t.script %t
70 # 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
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
37 # 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
8 # ERR1: {{.*}}.script:1: expected one of: ORIGIN, org, or o
14 # ERR2: {{.*}}.script:1: expected one of: LENGTH, len, or l
20 # ERR3: {{.*}}.script:1: region 'ram' already defined
28 # RUN: }' > %t.script
34 # RUN: echo 'SECTIONS { .text : { *(.text) } > ram }' > %t.script
38 # RUN: echo 'SECTIONS { .text : { *(.text) } AT> ram }' > %t.script
47 # RUN: }' > %t.script
55 # ERR7: {{.*}}.script:1: invalid memory region attribute
58 # RUN: echo 'MEMORY { name : ORIGIN = ., LENGTH = 1 }' > %t.script
[all …]
H A Dlinkerscript.s7 # RUN: ld.lld %t -o %t2 %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
20 # RUN: ld.lld %t.script %t -o %t.out
24 # RUN: ld.lld %t.script %t -o %t.out
27 # RUN: echo ";" > %t.script
28 # RUN: ld.lld %t.script %t -o %t.out
41 # INCLUDE_ERR: error: {{.+}}.script:1: cannot find linker script foo.script
43 # RUN: ld.lld -L %t.dir %t.script %t
[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 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
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
34 # RUN: ld.lld -o %t1 %t %t.script
40 # RUN: ld.lld -o %t1 --script %p/Inputs/symbol-reserved.script %t %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 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
57 # RUN: echo 'symbol = 0x5000;' > %t1.script
58 # RUN: ld.lld -T %t.script -T %t1.script %t -o %t.relro2
68 # RUN: }' > %t.script
[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
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
39 # RUN: not ld.lld %t1.o --script %t5.script -o /dev/null 2>&1 | FileCheck --check-prefix=ERR2 %s
[all …]
H A Dphdrs.s8 # RUN: .data : {*(.data.*)} :all}" > %t.script
9 # RUN: ld.lld -o %t1 --script %t.script %t
19 # RUN: }" > %t.script
20 # RUN: ld.lld -o %t1 --script %t.script %t
29 # RUN: .data : {*(.data.*)} :all}" > %t.script
30 # RUN: ld.lld -o %t1 --script %t.script %t
38 # RUN: .data : {*(.data.*)} }" > %t.script
39 # RUN: ld.lld -o %t1 --script %t.script %t
44 ## 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 Dbroken-memory-declaration.s5 # RUN: echo "MEMORY { FLASH (rx) : ORIGIN = 0x1000< LENGTH" > %t.script
6 # RUN: not ld.lld -o /dev/null --script %t.script 2>&1 | FileCheck %s
9 # RUN: echo "MEMORY { FLASH (rx) : ORIGIN = 0x1000< ORIGIN" > %t.script
10 # RUN: not ld.lld -o /dev/null --script %t.script 2>&1 | FileCheck %s
12 # RUN: echo "MEMORY { FLASH (rx) : ORIGIN = 0x1000, LENGTH = CONSTANT" > %t.script
13 # RUN: not ld.lld -o /dev/null --script %t.script 2>&1 | FileCheck %s
/llvm-project-15.0.7/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
11 # RUN: ld.lld --version-script %t1.script -shared %t.o -o %t1.so
17 # RUN: ld.lld --version-script %t2.script -shared %t.o -o %t2.so
21 # RUN: ld.lld --version-script %t3.script -shared %t.o -o %t3.so
27 # RUN: ld.lld --version-script %t4.script -shared %t.o -o %t4.so
31 # RUN: ld.lld --version-script %t5.script -shared %t.o -o %t5.so
35 # RUN: ld.lld --version-script %t6.script -shared %t.o -o %t6.so
41 # RUN: ld.lld --version-script %t7.script -shared %t.o -o %t7.so
45 # RUN: ld.lld --version-script %t8.script -shared %t.o -o %t8.so
[all …]
H A Dversion-script.s8 # RUN: ld.lld --version-script %t.script -shared %t.o %t2.so -o %t.so --fatal-warnings
11 # RUN: echo "# 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
20 # RUN: ld.lld --version-script %t4.script -shared %t.o %t2.so -o %t4.so --fatal-warnings
25 # RUN: not ld.lld --version-script %t5.script -shared %t.o %t2.so -o /dev/null 2>&1 | \
31 # RUN: not ld.lld --version-script %t5.script -shared %t.o %t2.so -o /dev/null 2>&1 | \
36 # RUN: ld.lld --version-script %t.script --dynamic-list %t.list %t.o %t2.so -o %t2
42 # RUN: ld.lld --version-script %t7a.script --version-script %t7b.script -shared %t.o %t2.so -o %t7.…
64 # RUN: ld.lld --hash-style=sysv --version-script %t2.script -shared %t.o %t2.so -o %t.so
[all …]
H A Dversion-script-noundef.s3 # RUN: echo "VERSION_1.0 { global: bar; };" > %t.script
5 # RUN: ld.lld --version-script %t.script -shared %t.o -o /dev/null --fatal-warnings
6 # RUN: ld.lld --version-script %t.script -shared --undefined-version %t.o -o %t.so
7 # RUN: not ld.lld --version-script %t.script -shared --no-undefined-version \
11 # RUN: echo "VERSION_1.0 { global: und; };" > %t2.script
12 # RUN: not ld.lld --version-script %t2.script -shared --no-undefined-version \
16 # RUN: echo "VERSION_1.0 { local: und; };" > %t3.script
17 # RUN: not ld.lld --version-script %t3.script -shared --no-undefined-version \
19 # ERR3: version script assignment of 'local' to symbol 'und' failed: symbol not defined
22 # RUN: echo "VERSION_1.0 { global: b*; local: u*; };" > %t4.script
[all …]
/llvm-project-15.0.7/llvm/utils/lit/tests/unit/
H A DTestRunner.py84 assert len(script) == 0
85 return script
138 script.output)
148 script.output)
158 script.output)
227 script = ["echo %bar"]
233 script = ["echo %bar %baz"]
251 script = ["%build %s"]
260 script = ["%rec5"]
271 script = ["%rec5"]
[all …]
/llvm-project-15.0.7/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-15.0.7/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()
/llvm-project-15.0.7/lldb/test/Shell/ScriptInterpreter/Lua/Inputs/
H A Dindependent_state.in1 script foobar = 40 + 7
2 script print(foobar)
3 script d = lldb.SBDebugger.Create()
4 script d:HandleCommand("script foobar = 40 + 2")
5 script print(foobar)
6 script d:HandleCommand("script print(foobar)")

12345678910>>...31