Skip to content

Commit 8c5f2e7

Browse files
authored
Merge pull request #101 from qiaoyuang/main
Optimize the unit tests
2 parents cf1f01c + 4523e53 commit 8c5f2e7

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,24 +76,24 @@ jobs:
7676
if: steps.avd-cache.outputs.cache-hit != 'true'
7777
uses: reactivecircus/android-emulator-runner@v2
7878
with:
79-
api-level: 34
79+
api-level: 35
8080
target: google_apis
8181
arch: x86_64
8282
profile: pixel_6
83-
emulator-build: 12265550
83+
emulator-build: 12694320
8484
force-avd-creation: false
8585
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
8686
disable-animations: true
8787
script: echo "Generated AVD snapshot for caching."
8888

89-
- name: Run Android 14 Instrumented Tests
89+
- name: Run Android 15 Instrumented Tests
9090
uses: reactivecircus/android-emulator-runner@v2
9191
with:
92-
api-level: 34
92+
api-level: 35
9393
target: google_apis
9494
arch: x86_64
9595
profile: pixel_6
96-
emulator-build: 12265550
96+
emulator-build: 12694320
9797
force-avd-creation: false
9898
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
9999
disable-animations: true
@@ -239,7 +239,7 @@ jobs:
239239
target: default
240240
arch: x86_64
241241
profile: pixel_2
242-
emulator-build: 12265550
242+
emulator-build: 12694320
243243
force-avd-creation: false
244244
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
245245
disable-animations: true
@@ -252,7 +252,7 @@ jobs:
252252
target: default
253253
arch: x86_64
254254
profile: pixel_2
255-
emulator-build: 12265550
255+
emulator-build: 12694320
256256
force-avd-creation: false
257257
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
258258
disable-animations: true

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### All
88

9-
* Update `Kotlin`'s version to `2.1.00`
9+
* Update `Kotlin`'s version to `2.1.0`
1010

1111
### sqllin-dsl
1212

sqllin-dsl/src/appleMain/kotlin/com/ctrip/sqllin/dsl/PlatformApple.kt renamed to sqllin-dsl/src/appleTest/kotlin/com/ctrip/sqllin/dsl/PlatformApple.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ import platform.Foundation.NSUserDomainMask
3030
internal actual fun getPlatformStringPath(): String =
3131
(NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true).firstOrNull() as? String ?: "")
3232

33-
// actual val pathSeparator: Char = '/'
33+
internal actual val pathSeparator: Char = '/'

sqllin-dsl/src/linuxMain/kotlin/com/ctrip/sqllin/dsl/PlatformLinux.kt renamed to sqllin-dsl/src/linuxTest/kotlin/com/ctrip/sqllin/dsl/PlatformLinux.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ import platform.posix.getcwd
2929
internal actual fun getPlatformStringPath(): String =
3030
getcwd(null, 0u)?.toKString() ?: throw IllegalStateException("The temp path created error")
3131

32-
// actual val pathSeparator: Char = '/'
32+
internal actual val pathSeparator: Char = '/'

sqllin-dsl/src/mingwMain/kotlin/com/ctrip/sqllin/dsl/PlatformMingw.kt renamed to sqllin-dsl/src/mingwTest/kotlin/com/ctrip/sqllin/dsl/PlatformMingw.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ import platform.posix._wgetcwd
2929
internal actual fun getPlatformStringPath(): String =
3030
_wgetcwd(null, 0)?.toKString() ?: throw IllegalStateException("Get database path wrong")
3131

32-
// actual val pathSeparator: Char = '\\'
32+
internal actual val pathSeparator: Char = '\\'

sqllin-dsl/src/nativeMain/kotlin/com/ctrip/sqllin/dsl/Platform.kt renamed to sqllin-dsl/src/nativeTest/kotlin/com/ctrip/sqllin/dsl/Platform.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ internal expect fun getPlatformStringPath(): String
2929
/**
3030
* Get the file path separator, '\' in Windows, '/' in others
3131
*/
32-
// expect val pathSeparator: Char
32+
internal expect val pathSeparator: Char

test_android.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Run Android instrumented tests
22
./gradlew :sqllin-driver:connectedDebugAndroidTest --stacktrace
33
./gradlew :sqllin-dsl:connectedDebugAndroidTest --stacktrace
4-
adb uninstall com.ctrip.sqllin.driver.test
5-
adb uninstall com.ctrip.sqllin.dsl.test
4+
#adb uninstall com.ctrip.sqllin.driver.test
5+
#adb uninstall com.ctrip.sqllin.dsl.test

0 commit comments

Comments
 (0)