feat: patrol on-device integration smoke test
This commit is contained in:
parent
d6f4c434fa
commit
6f6fa20b58
10 changed files with 466 additions and 6 deletions
13
devbox.json
13
devbox.json
|
|
@ -10,7 +10,9 @@
|
|||
"nixpkgs#ninja",
|
||||
"nixpkgs#pkg-config",
|
||||
"nixpkgs#gtk3",
|
||||
"nixpkgs#libsysprof-capture"
|
||||
"nixpkgs#libsysprof-capture",
|
||||
"nixpkgs#rustup",
|
||||
"nixpkgs#cargo-ndk"
|
||||
],
|
||||
"shell": {
|
||||
"init_hook": [
|
||||
|
|
@ -22,11 +24,16 @@
|
|||
"test": "flutter test",
|
||||
"run-linux": "flutter run -d linux",
|
||||
"build-linux": "flutter build linux",
|
||||
"link-android-tools": "if [ -n \"$ANDROID_HOME\" ] && [ ! -d \"$ANDROID_HOME/cmdline-tools/latest\" ] && [ -d \"$ANDROID_HOME/cmdline-tools/8.0\" ]; then ln -s \"$ANDROID_HOME/cmdline-tools/8.0\" \"$ANDROID_HOME/cmdline-tools/latest\"; fi"
|
||||
"link-android-tools": "if [ -n \"$ANDROID_HOME\" ] && [ ! -d \"$ANDROID_HOME/cmdline-tools/latest\" ] && [ -d \"$ANDROID_HOME/cmdline-tools/8.0\" ]; then ln -s \"$ANDROID_HOME/cmdline-tools/8.0\" \"$ANDROID_HOME/cmdline-tools/latest\"; fi",
|
||||
"build-native": "cd native && cargo build --release",
|
||||
"build-native-android": "rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android && cd native && cargo ndk -t arm64-v8a -t armeabi-v7a -t x86_64 -o ../android/app/src/main/jniLibs build --release",
|
||||
"test-native": "cd native && cargo test --release && cargo test --release -- --ignored",
|
||||
"activate-patrol": "dart pub global activate patrol_cli",
|
||||
"test-integration": "export PATH=\"$HOME/.pub-cache/bin:$PATH\" && patrol test --dart-define=SMOL_TEST_HOST=$(hostname -I | tr ' ' '\\n' | grep -E '^(192\\.168|10\\.|172\\.)' | head -1)"
|
||||
}
|
||||
},
|
||||
"env": {
|
||||
"ANDROID_SDK_ROOT": "$DEVBOX_PACKAGES_DIR/share/android-sdk",
|
||||
"ANDROID_HOME": "$DEVBOX_PACKAGES_DIR/share/android-sdk"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue