Add Buffyboard Man pages and Unify Build
This commit is contained in:
parent
edeb5e4a35
commit
0eae2838dc
28 changed files with 243 additions and 191 deletions
30
test/test-uses-fb-backend-if-selected-via-config.sh
Executable file
30
test/test-uses-fb-backend-if-selected-via-config.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/bash
|
||||
|
||||
log=tmp.log
|
||||
conf=tmp.conf
|
||||
|
||||
source "$(dirname "${BASH_SOURCE[0]}")/helpers.sh"
|
||||
|
||||
function clean_up() {
|
||||
rm -f "$log" "$conf"
|
||||
}
|
||||
|
||||
trap clean_up EXIT
|
||||
|
||||
info "Writing config"
|
||||
cat << EOF > "$conf"
|
||||
[general]
|
||||
backend=fb
|
||||
EOF
|
||||
|
||||
info "Running unl0kr"
|
||||
run_unl0kr_async "$log" "$conf"
|
||||
|
||||
info "Verifying output"
|
||||
if ! grep "Using framebuffer backend" "$log"; then
|
||||
error "Expected framebuffer backend to be selected"
|
||||
cat "$log"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ok
|
||||
Loading…
Add table
Add a link
Reference in a new issue