Code

frontend/grammar: Added support for 'ALL <obj> <cmp> <expr>'.
[sysdb.git] / t / integration / matching.sh
index 21a730ff8da647c91b06555224efa35fa40db59d..c96f7abea9c94cc8432a3ed27ff39268b3c60cd6 100755 (executable)
@@ -78,11 +78,20 @@ echo "$output" | grep -F 'some.host.name' && exit 1
 output="$( run_sysdb -H "$SOCKET_FILE" \
        -c "LOOKUP hosts MATCHING ANY attribute != 'architecture'" )"
 echo "$output" \
-       | grep -F '"localhost"'
+       | grep -F '"localhost"' \
+       | grep -F '"other.host.name"' \
+       | grep -F '"host1.example.com"' \
+       | grep -F '"host2.example.com"'
 echo "$output" | grep -F 'some.host.name' && exit 1
-#echo "$output" | grep -F 'other.host.name' && exit 1
-#echo "$output" | grep -F 'host1.example.com' && exit 1
-#echo "$output" | grep -F 'host2.example.com' && exit 1
+
+output="$( run_sysdb -H "$SOCKET_FILE" \
+       -c "LOOKUP hosts MATCHING ALL attribute != 'architecture'" )"
+echo "$output" \
+       | grep -F '"some.host.name"' \
+       | grep -F '"localhost"'
+echo "$output" | grep -F 'other.host.name' && exit 1
+echo "$output" | grep -F 'host1.example.com' && exit 1
+echo "$output" | grep -F 'host2.example.com' && exit 1
 
 output="$( run_sysdb -H "$SOCKET_FILE" \
        -c "LOOKUP hosts MATCHING ANY service = 'sysdbd'" )"