liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ad759b7c6dd6e25a58233857aa0c54682ad05c6d
parent e892dc6e9c8c4c09ab7294a90ad4c722c91d8d01
Author: Daniel Barlow <dan@telent.net>
Date:   Tue, 20 Sep 2022 16:09:44 +0100

allow changing hardware device in tests

Diffstat:
Adevices/qemu.nix | 11+++++++++++
Mrun-tests.sh | 1+
Mtests/smoke/run.sh | 2+-
3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/devices/qemu.nix b/devices/qemu.nix @@ -0,0 +1,11 @@ +{ + system = { + crossSystem = { + config = "mips-unknown-linux-musl"; + gcc = { + abi = "32"; + arch = "mips32"; # maybe mips_24kc- + }; + }; + }; +} diff --git a/run-tests.sh b/run-tests.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash +export DEVICE=${DEVICE-qemu} export TMPDIR=${TMPDIR-/tmp} for i in tests/*/run.sh; do diff --git a/tests/smoke/run.sh b/tests/smoke/run.sh @@ -1,5 +1,5 @@ set -e -NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix-build -I liminix-config=./tests/smoke/configuration.nix -o smoke.img +NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1 nix-build -I liminix-config=./tests/smoke/configuration.nix --arg device "import ./devices/$DEVICE.nix" -o smoke.img TESTS=$(cat <<"EOF"