gem5 display: a bit more info on dp650

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-12-03 00:00:00 +00:00
parent 61fa99844a
commit 38ba2b85fc
4 changed files with 55 additions and 7 deletions

11
test-gem5-graphics Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Quick and dirty implementation, relies on configs.
# Check that the third image matches a reference penguin SHA.
# https://softwarerecs.stackexchange.com/questions/9774/command-line-tool-to-check-whether-two-images-are-exactly-the-same-graphically/9779#9779
set -eux
rm -rf "$(./getvar "$@" m5out_dir)/frames_system.vncserver"
./run --eval 'm5 exit' --tmux "$@" -- --frame-capture
gz="$(echo "$(./getvar m5out_dir)/frames_system.vncserver/fb.000002."*.gz)"
png="${gz%.*}"
gunzip --keep "$gz"
[ "$(identify -format '%#' "$png")" = dc41b947487026acdceae8a757259d5a1a4752fd97c1da9ce6df9b49013babed ]