2016-03-05 18:41:47 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
2019-11-29 14:51:35 +00:00
|
|
|
GTK_QUERY_SETTINGS=${GTK_QUERY_SETTINGS:-gtk4-query-settings}
|
2016-03-05 18:41:47 +00:00
|
|
|
TEST_RESULT_DIR=${TEST_RESULT_DIR:-/tmp}
|
|
|
|
|
|
|
|
shopt -s nullglob
|
|
|
|
|
|
|
|
echo "1..1"
|
|
|
|
|
|
|
|
name=gtk-query-settings
|
|
|
|
result=$TEST_RESULT_DIR/$name.out
|
|
|
|
$GTK_QUERY_SETTINGS 2>/dev/null >$result
|
2024-04-07 00:21:32 +00:00
|
|
|
EXPECTED=52
|
2021-12-13 14:26:00 +00:00
|
|
|
SEEN=$(wc -l $result | cut -f1 -d' ')
|
|
|
|
|
|
|
|
if [ $SEEN -eq $EXPECTED ]; then
|
|
|
|
echo "ok 1 $name."
|
2016-03-05 18:41:47 +00:00
|
|
|
else
|
2021-12-13 14:26:00 +00:00
|
|
|
echo "not ok 1 $name. Expected: $EXPECTED. Seen: $SEEN"
|
2016-03-05 18:41:47 +00:00
|
|
|
fi
|