Skip to content

Commit

Permalink
flake: grab information about GPU during testVm
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jul 23, 2024
1 parent 909c20e commit 1da0183
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@

environment = {
systemPackages = with pkgs; [
glxinfo # grab information about GPU
go
kitty
nordzy-cursor-theme # used in SetCursor() test
Expand Down Expand Up @@ -88,6 +89,7 @@
pkgs.writeShellScript "hyprland-go-test"
# bash
''
glxinfo -B > "$HOME/glxinfo"
cd ${./.}
go test -v 2>&1 | tee -a "$HOME/test.log"
echo $? > "$HOME/test-finished"
Expand Down Expand Up @@ -116,6 +118,7 @@
machine.wait_for_unit("multi-user.target")
machine.wait_for_file("${home}/test-finished")
print(machine.succeed("cat ${home}/glxinfo || true"))
print(machine.succeed("cat ${home}/test.log"))
print(machine.succeed("test $(cat ${home}/test-finished) -eq 0"))
'';
Expand Down

0 comments on commit 1da0183

Please sign in to comment.