mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
[AVR] Add the very first on-target test
This test runs on actual AVR hardware. llvm-svn: 289648
This commit is contained in:
parent
aba15d97df
commit
ebd67f8b91
6
test/Metal/AVR/README.md
Normal file
6
test/Metal/AVR/README.md
Normal file
@ -0,0 +1,6 @@
|
||||
# AVR on-target tests
|
||||
|
||||
These tests are built using LLVM and executed on real AVR hardware.
|
||||
|
||||
See [avrlit](https://github.com/avr-llvm/avrlit) for instructions on how
|
||||
to run them.
|
7
test/Metal/AVR/basic.ll
Normal file
7
test/Metal/AVR/basic.ll
Normal file
@ -0,0 +1,7 @@
|
||||
; RUN: avrlit %s
|
||||
|
||||
; CHECK-LABEL: test
|
||||
define i16 @test() {
|
||||
; CHECK-NEXT: return 1357
|
||||
ret i16 1357
|
||||
}
|
8
test/Metal/AVR/lit.local.cfg
Normal file
8
test/Metal/AVR/lit.local.cfg
Normal file
@ -0,0 +1,8 @@
|
||||
import os
|
||||
|
||||
if not 'AVR' in config.root.targets:
|
||||
config.unsupported = True
|
||||
|
||||
# We can only run avrlit tests if we have a board set up.
|
||||
if not os.environ["AVRLIT_PORT"] or not os.environ["AVRLIT_BOARD"]:
|
||||
config.unsupported = True
|
@ -25,7 +25,7 @@ class TestingConfig:
|
||||
'LD_PRELOAD', 'ASAN_OPTIONS', 'UBSAN_OPTIONS',
|
||||
'LSAN_OPTIONS', 'ADB', 'ANDROID_SERIAL',
|
||||
'SANITIZER_IGNORE_CVE_2016_2143', 'TMPDIR', 'TMP', 'TEMP',
|
||||
'TEMPDIR']
|
||||
'TEMPDIR', 'AVRLIT_BOARD', 'AVRLIT_PORT']
|
||||
for var in pass_vars:
|
||||
val = os.environ.get(var, '')
|
||||
# Check for empty string as some variables such as LD_PRELOAD cannot be empty
|
||||
|
Loading…
x
Reference in New Issue
Block a user