mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
tests: ease development in fakedroid env for on-device-tests
This commit is contained in:
parent
6a345626c0
commit
27c206f57a
1 changed files with 8 additions and 1 deletions
|
|
@ -90,7 +90,14 @@ function doHelp() {
|
||||||
|
|
||||||
function doOnDeviceTest() {
|
function doOnDeviceTest() {
|
||||||
# This is for maintainer convenience only, see tests/on-device/.run.sh
|
# This is for maintainer convenience only, see tests/on-device/.run.sh
|
||||||
nix-channel --update nix-on-droid
|
|
||||||
|
# /n-o-d/unpacked is available in fakedroid environment
|
||||||
|
if [[ -d "/n-o-d/unpacked" ]]; then
|
||||||
|
export NIX_PATH="nix-on-droid=/n-o-d/unpacked:$NIX_PATH"
|
||||||
|
else
|
||||||
|
nix-channel --update nix-on-droid
|
||||||
|
fi
|
||||||
|
|
||||||
exec "$(nix-instantiate --eval --expr \
|
exec "$(nix-instantiate --eval --expr \
|
||||||
"<nix-on-droid/tests/on-device/.run.sh>")"
|
"<nix-on-droid/tests/on-device/.run.sh>")"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue