Robert Hencke
72ca603d71
Reduce boilerplate for applying kotlin-gradle-plugin.
2017-08-07 17:25:52 +07:00
Alexander Gorshenev
b4660d03a1
Initial .wasm file generation for the wasm32 target.
...
Some basic launcher.js and runtime.
2017-08-03 17:51:48 +03:00
Ilya Matveev
0e67fbb7ad
tests: Add assert tests
2017-07-27 11:49:54 +07:00
Alexander Gorshenev
55c4966203
Moved clang flags out of the root build.gardle.
...
Collected clang args in ClangArgs.kt
Switched dependencies/build.gradle to KonanTarget.
Introduced KonanProperties to take care of target specific properties.
2017-07-12 18:31:09 +03:00
Ilya Matveev
ed70a3f2c6
build: Workaround for NPE in raspberry-pi build
2017-06-20 20:55:29 +07:00
alexander-gorshenev
d3c24bb387
Different extensions (and KonanTarget communalization). ( #665 )
2017-06-19 12:45:57 +03:00
Alexander Gorshenev
93a589b9ba
Enable windows specific driver tests.
2017-06-15 17:34:31 +03:00
Nikolay Igotti
74ffc479bb
Add Windows i18n support ( #617 )
2017-05-31 10:01:49 +03:00
Svyatoslav Scherbina
d6b8b4fb0f
Add basic support for Windows with mingw-w64
2017-05-29 19:13:55 +03:00
Nikolay Igotti
ff8bce79d5
Uniform compiler/linker options treatment ( #614 )
2017-05-29 15:37:15 +03:00
Alexander Gorshenev
c93bddbba1
Get rid of -nolink flag uses.
2017-05-29 15:01:42 +03:00
Alexander Gorshenev
2283a941b7
Simple sanity check of cross compilation build and compiler execution.
2017-05-19 13:52:35 +03:00
Alexander Gorshenev
3b5ce031f8
Initial checkin of klib support.
...
The libraries exist in two incarnations:
packed foo.klib and unpacked foo/ .
The compiler when given '-library foo' expects to find either
a foo.klib file and unpack it, or an already unpacked foo/ directory.
The stdlib is always unpacked in dist/klib .
The semantics of -o has changed slightly.
It now accepts '-o foo' and the compiler
either produces foo.kexe or foo.klib .
2017-05-18 04:13:35 +03:00
Igor Chevdar
e15878bfe9
Fresh box tests
2017-05-15 15:24:58 +03:00
Igor Chevdar
66aef3bf5a
Handling of 'WITH_COROUTINES' in tests
2017-04-28 13:45:46 +03:00
Svyatoslav Scherbina
8ebc0bd1ea
Do not move libclang out from the clang distribution
...
Also load libclang using the absolute path to simplify cinterop
2017-04-26 20:07:06 +03:00
Ilya Matveev
0a01f513be
tests: Show finished tests cout
2017-04-13 18:27:08 +07:00
Ilya Matveev
a69def4254
tests: Generate test tasks for stdlib tests
...
This patch updates the test execution harness to work with the
new stdlib tests. It allows one to execute stdlib tests as
a part of external testing (./gradlew run_external) or separately
(./gradlew run_external -Pprefix=external_stdlib).
2017-04-07 17:21:11 +07:00
Vasily Levchenko
8aaf784f0e
BUILD: even more improvements of slack integration:
...
- refactoring (extract variables to avoid access duplication).
- typo konan-reporter-token, epilogue and buildProperties.
- unused variables declaration removed.
- acting only if teamcity config passed throw environment.
2017-04-05 14:27:16 +03:00
Vasily Levchenko
77fb3c6985
BUILD: use slack parameters from teamcity parameters
2017-04-04 23:10:37 +03:00
Alexander Gorshenev
9fd555471a
A couple of konanc driver tests.
2017-03-31 11:07:01 +03:00
alexander-gorshenev
c9c9aee7bb
No colon cinterop flags ( #428 )
...
* Taught cinterop a 'host' target.
* Last minute switch from -foo:bar flags to -foo bar flags in cinterop tool.
2017-03-31 10:20:29 +03:00
Nikolay Igotti
0cbd34086e
Added JB copyright ( #417 )
2017-03-30 09:51:58 +03:00
Ilya Matveev
a906bd0d07
Download dependencies only in dist
...
Don't extract dependencies in dependencies/all, only in dist/dependencies
Remove konan.dependencies property
2017-03-30 11:02:35 +07:00
Alexander Gorshenev
334d2f0ee6
Remote test execution for cross compiled tests. Run it like:
...
$ ./gradlew backend.native:tests:run \
-Premote=user@111.22.33.444 -Ptest_target=raspberrypi
The new gradle command line options:
-Pbuild_flags renamed -Pkonanc_flags.
-Ptest_flags provides compiler flags to the test builds.
-Ptest_target properly sets up compiler as well as interop
to cross compile tests.
-Premote specifies remote host and login.
2017-03-27 15:14:57 +03:00
Igor Chevdar
00e452bcdf
Added tests on link stage (disabled for now).
2017-03-27 12:41:58 +03:00
Ilya Matveev
fbc14becfc
tools: Add dependecy download helpers
...
This patch adds 2 helpers to download dependencies for compiler and
stub generator during their execution.
They take list of external dependencies as a parameter and directory
where they must be located. Helpers check if these dependencies exist
in the given directory and download not existing ones.
2017-03-24 19:31:23 +07:00
Ilya Matveev
4a716fbf30
backend: Use konan.dependencies property to set dependencies dir
...
This patch set default dependencies directory to ${konan.home}/
dependencies and allows one to override this setting using
konan.dependencies system property.
2017-03-24 19:31:23 +07:00
Alexander Gorshenev
ff8acd21e6
This is initial implementation of serializer/deserializer for inline IR bodies.
...
The deserialization is disabled by default.
Use `-enable deserializer` to enable it.
Use `-verbose deserializer` to watch it crunch.
2017-03-24 01:03:59 +04:00
Svyatoslav Scherbina
bb1c52c23b
Fix launcher for external box tests with one-letter package
2017-03-17 20:08:36 +07:00
Alexander Gorshenev
a7677e2a8b
Renamed interop 'target' to 'flavour'.
2017-03-16 01:55:36 +04:00
Nikolay Igotti
7279873bb4
Fix build of interop tests.
2017-03-15 19:19:16 +03:00
Ilya Matveev
8e91da7aad
build/tests: Import box() function package in the launcher
2017-03-13 19:03:57 +03:00
Ilya Matveev
89b2cc05bd
build/tests: Create separate output dir for each external test
2017-03-13 19:03:57 +03:00
Ilya Matveev
97b5bb527d
backend: Generate assert call depending on the compiler key
2017-03-13 16:25:48 +03:00
Ilya Matveev
ac56fccb15
tests: Download test data as a teamcity artifact
2017-03-13 15:31:46 +03:00
Ilya Matveev
232d2ff14c
tests: Compile only *.kt files
2017-03-13 15:31:46 +03:00
Svyatoslav Scherbina
304a9ebd8e
build/tests: support declaring tests to be manually executed
2017-03-13 11:00:33 +07:00
Svyatoslav Scherbina
725e367614
build/tests: implement passing interop linker args to compiler
2017-03-13 11:00:33 +07:00
Alexander Gorshenev
a995fbcb59
This is a simple command line tool for interop.
...
See INTEROP.md on how to use it.
2017-03-10 17:36:58 +04:00
Svyatoslav Scherbina
9e58f884d3
build/tests: check exit status instead of output of external tests
2017-03-10 14:34:10 +07:00
Svyatoslav Scherbina
051f42667c
build/tests: support KonanTest.expectedExitStatus
2017-03-10 14:34:10 +07:00
Ilya Matveev
e815aa3f73
tests: Support box(): String? in the test launcher
2017-03-09 18:01:19 +03:00
Vasily Levchenko
104a983282
gradle: do not lose debugging options from java exec
2017-03-06 14:47:03 +03:00
vvlevchenko
a1f2b572a8
gradle: KonanTest extends from JavaExec making tests debugging rather easy task ( #299 )
2017-03-04 00:32:27 +03:00
Ilya Matveev
126d6f3d41
tests: Ignore diagnostics directives
2017-03-03 14:35:13 +03:00
Igor Chevdar
889b28ee87
Added link test, checking correct object field layout.
2017-03-01 14:40:10 +03:00
Ilya Matveev
ab0f8cb6cd
buildSrc: Count skipped tests
2017-02-22 14:02:38 +03:00
Ilya Matveev
3f0903fdc8
buildSrc: Report actual and expected test output.
2017-02-22 14:02:38 +03:00
Ilya Matveev
9e2fe888e4
buildSrc: split tests into testSuites for teamcity
2017-02-21 18:56:52 +03:00