check_golden.sh 535 Bytes
Newer Older
Valentin Reis's avatar
Valentin Reis committed
1
#!/usr/bin/env bash
Valentin Reis's avatar
Valentin Reis committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
check_golden () {
 echo "--- START checking golden test ${1}"
 diff <(dhrun print <<< "let a = ./all-tests.dh \".\" \".\" True in a.${1}") <(cat golden/${1}.yaml)
 echo "--- DONE  checking golden test ${1}"
}

check_golden "run"
check_golden "pwd"
check_golden "exitcode"
check_golden "hello"
check_golden "listen"
check_golden "power"
check_golden "performance"
check_golden "qmcpack"
check_golden "openmc"
check_golden "lammps"
check_golden "amg"
check_golden "stream"
Valentin Reis's avatar
Valentin Reis committed
20 21
check_golden "list"
check_golden "setpower"