Nikolay Krasko
a96474845b
Fix check of path separators in tests
2012-09-06 12:02:44 +04:00
Andrey Breslav
fbc0ca1b77
Gererated tests now check that all the relevant directories are present
...
We only checked test data files before
2012-09-05 14:18:40 +04:00
Natalia.Ukhorskaya
04deb2dd2f
JetTestUtils: change signature of compileJavaFile - take collection of files to compile and list of javac options
...
LoadDescriptorUtil: remove duplicate code
2012-08-30 10:55:47 +04:00
Alexander Udalov
d38b965bf1
utilize JetTestUtils.createFile() in tests
2012-08-20 20:53:33 +04:00
Evgeny Gerashchenko
7f12dcbc24
Got rid of post-init adding classpath in all tests.
2012-07-23 17:38:20 +04:00
Andrey Breslav
7ec49eafb9
Using standard utilities for files loading
2012-07-11 16:47:54 +04:00
Andrey Breslav
207c75b956
Environment creation unified everywhere.
...
JDK Kind turned into enum for clarity
2012-07-11 13:40:50 +04:00
Andrey Breslav
f64d78c18f
File names stored in the metadata
...
This is used for better checking of whether a file is present in the test suite
2012-07-10 14:48:10 +04:00
Andrey Breslav
af4e5d4e42
Test Class/Method models introduced
...
- no unnecessary nesting when there is only one test class in a suite
- escaping for method names
- more regular model structure
2012-07-10 14:48:10 +04:00
Evgeny Gerashchenko
c74ccec0bf
Renamed CompilerSpecialMode to ConfigurationKind, gave enum constants more clear names.
2012-07-07 23:07:20 +04:00
Evgeny Gerashchenko
2c58989a47
Moved CompilerSpecialMode enum to compiler-tests, since it is now used only for creating test compiler configurations.
2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko
b65f5cf53f
Removed CompilerSpecialMode from JetCoreEnvironment.
2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko
6e7d08b478
Introduced BuiltinsScopeExtensionMode enum. Using it instead of CompilerSpecialMode to create JavaBridgeConfiguration.
2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko
6e82ab70bc
Got rid of using CompilerDependencies in JetCoreEnvironment. CompilerConfiguration is passed instead.
2012-07-07 23:07:17 +04:00
Evgeny Gerashchenko
5a88d28154
Got rid of dependency on compiler dependencies in injector for TDA for JVM.
2012-07-07 20:33:22 +04:00
Stepan Koltsov
4e99edccaa
TmpdirRule
...
junit4 @Rule to create tmp dir from idea SDK
2012-06-14 15:29:16 +04:00
Stepan Koltsov
d33c8638d8
JetControlFlowTest doesn't need stdlib or jdk headers
2012-06-05 22:56:25 +04:00
Stepan Koltsov
30e44fdc5f
script parameters
...
still a lot of things to do
2012-05-28 20:31:29 +04:00
Svetlana Isakova
0bf65bfe1e
get rid of JetPseudocodeTrace
...
and JetControlFlowDataTraceFactory
2012-05-28 12:09:44 +04:00
Stepan Koltsov
5eb3a86c4d
break CodegenTestCase : JetLiteFixture dependency
...
This is important because test base classes like JetLiteFixture has
a lot of unused code/state that hardens reading/debugging.
2012-05-23 02:52:28 +04:00
Stepan Koltsov
b0cea24faf
move compileJavaFile
2012-05-11 01:08:26 +04:00
Stepan Koltsov
f4527b8167
better method name
2012-05-03 18:30:47 +04:00
Andrey Breslav
dcc2728f0a
@NotNull is needed in tests, bringing it back
...
Reverting c9edaa6b4f
2012-04-28 23:13:02 +04:00
Stepan Koltsov
661b16359a
resolve jdk classes
2012-04-28 17:43:53 +04:00
pTalanov
d0d5b147f2
Refactor cli: all the jvm stuff goes under org.jetbrains.jet.cli.jvm, common stuff under org.jetbrains.jet.cli.common
2012-04-25 20:19:15 +04:00
Stepan Koltsov
3b43f30824
add JDK to CompilerDependencies
2012-04-25 19:36:22 +04:00
Stepan Koltsov
c9edaa6b4f
do not add annotations.jar to compiler classpath
2012-04-25 18:48:14 +04:00
Evgeny Gerashchenko
9bec7b5e9d
Merge branch 'diagnostics'
...
Conflicts:
compiler/cli/src/org/jetbrains/jet/compiler/CompileSession.java
compiler/frontend/src/org/jetbrains/jet/lang/diagnostics/Errors.java
2012-04-20 21:58:05 +04:00
Stepan Koltsov
e5d7eafe92
stdlib is not needed in Read*BinaryClassTest
2012-04-19 14:05:40 +04:00
Evgeny Gerashchenko
370af95c87
Introduced DispatchingDiagnosticRenderer, which replaced DefaultDiagnosticRenderer.
2012-04-13 19:31:47 +04:00
Evgeny Gerashchenko
dd3c9146cd
Removed UnresolvedReferenceDiagnostic class, since it's not very useful.
2012-04-13 19:31:47 +04:00
Evgeny Gerashchenko
b0e09319a9
Moved DefaultDiagnosticRenderer from cli back to frontend to avoid run-time dependencies on cli where rendering diagnostics is needed.
2012-04-13 19:31:46 +04:00
Evgeny Gerashchenko
6a13510741
Replaced Diagnostic.getMessage() with DiagnosticRenderer.render() calls.
...
Made Diagnostic.getMessage() deprecated, introduced DiagnosticRender interface and default implementation for it.
2012-04-13 19:31:45 +04:00
Stepan Koltsov
a889e29147
else on the next line
...
as requested by http://confluence.jetbrains.net/display/JET/Code+Conventions+for+Java
(sed is your friend)
2012-04-10 00:03:13 +04:00
Pavel V. Talanov
a030576052
Merge from brahch analyzeJS.
...
Conflicts:
compiler/backend/src/org/jetbrains/jet/codegen/GenerationState.java
compiler/cli/src/org/jetbrains/jet/compiler/CompileSession.java
compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/AnalyzerFacadeForJVM.java
compiler/tests/org/jetbrains/jet/codegen/GenerationUtils.java
compiler/tests/org/jetbrains/jet/resolve/ExpectedResolveData.java
compiler/tests/org/jetbrains/jet/types/JetDefaultModalityModifiersTest.java
idea/src/org/jetbrains/jet/plugin/libraries/JetSourceNavigationHelper.java
idea/src/org/jetbrains/jet/plugin/parameterInfo/JetFunctionParameterInfoHandler.java
idea/src/org/jetbrains/jet/plugin/project/WholeProjectAnalyzerFacade.java
idea/src/org/jetbrains/jet/plugin/quickfix/ChangeVariableMutabilityFix.java
idea/src/org/jetbrains/jet/plugin/quickfix/ImportInsertHelper.java
idea/src/org/jetbrains/jet/plugin/quickfix/QuickFixUtil.java
idea/src/org/jetbrains/jet/plugin/refactoring/JetNameSuggester.java
idea/src/org/jetbrains/jet/plugin/refactoring/JetRefactoringUtil.java
idea/src/org/jetbrains/jet/plugin/refactoring/introduceVariable/JetIntroduceVariableHandler.java
2012-04-09 17:06:56 +04:00
Stepan Koltsov
10dd366216
CompilerDependencies
...
Holds reference to runtime.jar and jdk-headers.jar. Paths to these
jars are no longer hardcoded.
Many tests now compile runtime before execution. Because of this:
* Single test invocation is significantly slower now for some tests
* This can be fixed by making tests independent from runtime (this
must be done anyway)
Some tests still depend on runtime.jar built by "ant dist", this
is to be fixed.
2012-04-09 03:04:50 +04:00
Evgeny Gerashchenko
9794c0f730
Extracted getting test metadata from comment lines from LibrariesWithSourcesTest to JetTestUtils.
2012-04-06 17:22:24 +04:00
Pavel V. Talanov
766b4dc975
Move AnalyzerExhaust from frontend.java to frontend.
2012-04-04 16:11:40 +04:00
Stepan Koltsov
2c4094f4d4
proper environment when compiling special things
...
* do not include anything when compiling builtins
* do not include kotlin-runtime and jdk-headers when compiling jdk-headers
2012-03-30 03:54:58 +04:00
Stepan Koltsov
1e330fe0a0
jvm.backend: get JetStandardLibrary from analyzer
...
This is a big step towards removal of JetStandardLibrary.getInstance()
2012-03-29 01:03:44 +04:00
Andrey Breslav
1078c95bf2
Platform-dependent AnalyzerFacades renamed to reflect platform-dependencies
2012-03-02 18:27:29 +04:00
Stepan Koltsov
fd8b363a5f
fix tests
2012-02-20 22:58:07 +04:00
Maxim Shafirov
a03922d467
Copyrights set to Apache, reflecting it's now open source
2012-02-14 19:25:06 +04:00
Alex Tkachman
bb3ca16203
Speeding up codegen tests
2012-02-07 19:10:47 +02:00
Maxim Shafirov
20920f0a0b
Temp directories, which reside under project root replaced with java.io.tmpdir based ones.
2012-01-25 15:51:12 +04:00
Maxim Shafirov
4c4aafd2d3
Delete temporary directories on exit
2012-01-25 12:57:08 +04:00
Stepan Koltsov
4767e5c935
split TestlibTest into two tests
...
* old tests attaches stdlib sources to testlib classpath
* new test compiles stdlib into stdlib.jar and then adds stdlib.jar to testlib classpath
2012-01-23 03:37:09 +04:00
Stepan Koltsov
746279ed56
diagnostics in mkdirs
2012-01-19 20:33:37 +04:00
Maxim Shafirov
59e688f9ff
Move module scripting out of jvm backend
2012-01-13 14:23:48 +04:00
Stepan Koltsov
855142e35d
move test output to one level down
...
for ReadClassDataTest and CompileJavaAgainstKotlinTest
2011-12-30 00:05:25 +04:00