mirror of
https://github.com/enso-org/enso.git
synced 2024-11-22 03:32:23 +03:00
Execute Base_Internal_Tests with native enso executable (#11403)
Another set of tests running with _native image_ `enso` executable.
This commit is contained in:
parent
08fd9213e4
commit
9196db414b
@ -670,13 +670,23 @@ pub async fn runner_sanity_test(
|
||||
.run_ok()
|
||||
.await;
|
||||
|
||||
let test_internal_base = Command::new(&enso)
|
||||
.args([
|
||||
"--disable-private-check",
|
||||
"--run",
|
||||
repo_root.test.join("Base_Internal_Tests").as_str(),
|
||||
])
|
||||
.set_env(ENSO_DATA_DIRECTORY, engine_package)?
|
||||
.run_ok()
|
||||
.await;
|
||||
|
||||
let test_geo = Command::new(&enso)
|
||||
.args(["--run", repo_root.test.join("Geo_Tests").as_str()])
|
||||
.set_env(ENSO_DATA_DIRECTORY, engine_package)?
|
||||
.run_ok()
|
||||
.await;
|
||||
|
||||
test_base.and(test_geo)
|
||||
test_base.and(test_internal_base).and(test_geo)
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ polyglot java import org.enso.table.parsing.IdentityParser
|
||||
polyglot java import org.enso.table.parsing.problems.MismatchedQuote
|
||||
polyglot java import org.enso.table.parsing.TypeInferringParser
|
||||
polyglot java import org.enso.table.read.DelimitedReader
|
||||
polyglot java import org.enso.table.read.DelimitedReader.HeaderBehavior
|
||||
polyglot java import org.enso.table.read.ParsingFailedException
|
||||
polyglot java import org.enso.table.read.QuoteStrippingParser
|
||||
|
||||
|
@ -13,8 +13,10 @@ import Standard.Base.Internal.Extra_Imports.File_Utils
|
||||
|
||||
|
||||
add_specs suite_builder =
|
||||
pending_js_missing = if Polyglot.is_language_installed "js" then Nothing else "Can't run tests that require JavaScript, language `js` is not installed."
|
||||
|
||||
suite_builder.group "I/O Checks" group_builder->
|
||||
group_builder.specify "read without available" <|
|
||||
group_builder.specify "read without available" pending=pending_js_missing <|
|
||||
stream_like = is_like [20, 5, 1, 10] False
|
||||
is = Stream_Utils.asInputStream stream_like
|
||||
is.available . should_equal 0
|
||||
@ -29,7 +31,7 @@ add_specs suite_builder =
|
||||
|
||||
is.available . should_equal 0
|
||||
|
||||
group_builder.specify "read with available" <|
|
||||
group_builder.specify "read with available" pending=pending_js_missing <|
|
||||
stream_like = is_like [20, 6, 8, 23] True
|
||||
is = Stream_Utils.asInputStream stream_like
|
||||
is.available . should_equal 4
|
||||
|
@ -138,8 +138,12 @@ add_specs suite_builder =
|
||||
Problems.assume_no_problems c6
|
||||
c6.cast value_type . to_vector . should_equal [-1, -2, Nothing, -1]
|
||||
|
||||
test_no_overflow Value_Type.Byte Java_Byte.MAX_VALUE Java_Byte.MIN_VALUE
|
||||
test_no_overflow (Value_Type.Integer Bits.Bits_16) Java_Short.MAX_VALUE Java_Short.MIN_VALUE
|
||||
javaByteMaxValue = 127 # Java_Byte.MAX_VALUE
|
||||
javaByteMinValue = -128 # Java_Byte.MIN_VALUE
|
||||
javaShortMaxValue = 32767 # Java_Short.MAX_VALUE
|
||||
javaShortMinValue = -32768 # Java_Short.MIN_VALUE
|
||||
test_no_overflow Value_Type.Byte javaByteMaxValue javaByteMinValue
|
||||
test_no_overflow (Value_Type.Integer Bits.Bits_16) javaShortMaxValue javaShortMinValue
|
||||
test_no_overflow (Value_Type.Integer Bits.Bits_32) Java_Integer.MAX_VALUE Java_Integer.MIN_VALUE
|
||||
|
||||
group_builder.specify "if we cast to Decimal first, then the operations will not overflow" <|
|
||||
|
Loading…
Reference in New Issue
Block a user