1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-01-20 17:47:42 +00:00
antonblanchard.microwatt/tests/update_console_tests
Michael Neuling eeac86c9d8 test: Add test for metavalues
Make sure they don't increase in future

Signed-off-by: Michael Neuling <mikey@neuling.org>
2022-07-28 15:39:31 +10:00

16 lines
420 B
Bash
Executable File

#!/bin/bash
#
# Script to update console related tests from source
#
for i in sc illegal decrementer xics privileged mmu misc modes pmu reservation trace fpu spr_read ; do
cd $i
make
cd -
cp $i/$i.bin test_$i.bin
ln -s test_$i.bin main_ram.bin
../core_tb > test_$i.log_out 2> test_$i.console_out
grep -c metavalue test_$i.log_out > test_$i.metavalue
rm main_ram.bin test_$i.log_out
done