Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
2c98e799
Commit
2c98e799
authored
Feb 19, 2020
by
Evan W. Patton
Committed by
ellelili2025
Feb 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build server tests on Windows
Change-Id: I85ed935936facb8d337b5abc471c5227e3de21d9
parent
c5b3e2d2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
appinventor/buildserver/tests/com/google/appinventor/buildserver/YailAndroidTest.java
...s/com/google/appinventor/buildserver/YailAndroidTest.java
+3
-1
appinventor/buildserver/tests/com/google/appinventor/buildserver/YailEvalTest.java
...ests/com/google/appinventor/buildserver/YailEvalTest.java
+3
-1
appinventor/common/src/com/google/appinventor/common/testutils/TestUtils.java
...rc/com/google/appinventor/common/testutils/TestUtils.java
+5
-2
No files found.
appinventor/buildserver/tests/com/google/appinventor/buildserver/YailAndroidTest.java
View file @
2c98e799
...
...
@@ -22,13 +22,15 @@ import static org.junit.Assert.assertEquals;
public
class
YailAndroidTest
{
private
Scheme
scheme
;
private
static
final
String
YAIL_SCHEME_TESTS
=
TestUtils
.
APP_INVENTOR_ROOT_DIR
+
private
static
final
String
YAIL_SCHEME_TESTS
=
TestUtils
.
windowsToUnix
(
TestUtils
.
APP_INVENTOR_ROOT_DIR
)
+
"/buildserver/tests/com/google/appinventor/buildserver/YailEvalTest.scm"
;
@Before
public
void
setUp
()
throws
Exception
{
scheme
=
new
Scheme
();
String
yailRuntimeLibrary
=
Compiler
.
getResource
(
Compiler
.
YAIL_RUNTIME
);
yailRuntimeLibrary
=
TestUtils
.
windowsToUnix
(
yailRuntimeLibrary
);
try
{
scheme
.
eval
(
"(load \""
+
yailRuntimeLibrary
+
"\")"
);
scheme
.
eval
(
"(load \""
+
YAIL_SCHEME_TESTS
+
"\")"
);
...
...
appinventor/buildserver/tests/com/google/appinventor/buildserver/YailEvalTest.java
View file @
2c98e799
...
...
@@ -32,13 +32,15 @@ import java.util.Map;
public
class
YailEvalTest
extends
TestCase
{
private
Scheme
scheme
;
private
static
final
String
YAIL_SCHEME_TESTS
=
TestUtils
.
APP_INVENTOR_ROOT_DIR
+
private
static
final
String
YAIL_SCHEME_TESTS
=
TestUtils
.
windowsToUnix
(
TestUtils
.
APP_INVENTOR_ROOT_DIR
)
+
"/buildserver/tests/com/google/appinventor/buildserver/YailEvalTest.scm"
;
@Override
public
void
setUp
()
throws
Exception
{
scheme
=
new
Scheme
();
String
yailRuntimeLibrary
=
Compiler
.
getResource
(
Compiler
.
YAIL_RUNTIME
);
yailRuntimeLibrary
=
TestUtils
.
windowsToUnix
(
yailRuntimeLibrary
);
try
{
scheme
.
eval
(
"(load \""
+
yailRuntimeLibrary
+
"\")"
);
scheme
.
eval
(
"(load \""
+
YAIL_SCHEME_TESTS
+
"\")"
);
...
...
appinventor/common/src/com/google/appinventor/common/testutils/TestUtils.java
View file @
2c98e799
...
...
@@ -31,8 +31,11 @@ public class TestUtils {
dir
=
dir
.
getParentFile
();
}
assert
false
;
return
null
;
// to make compiler happy
throw
new
RuntimeException
(
"Unable to locate App Inventor root"
);
}
public
static
String
windowsToUnix
(
String
path
)
{
return
path
.
replaceAll
(
"\\\\"
,
"/"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment