Skip to content

Commit 58df52f

Browse files
ifranzkijschmidb
authored andcommitted
TESTS: Detect APQNs correctly on KVM hosts with passed through devices
Grep for APQNs, not just for cards. In a KVM host where APQNs are passed through to the KVM guest(s), the card devices are still shown as online, but the passed through APQNs are not. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
1 parent 4c2c4dc commit 58df52f

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

test/ec_keygen1_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
if lszcrypt | grep -q -e "CEX.C.*online"; then
3+
if lszcrypt | grep -q -e "^[0-9a-f][0-9a-f]\.[0-9a-f][0-9a-f][0-9a-f][0-9a-f].*CEX.C.*online"; then
44
ICAPATH=1 ./ec_keygen_test
55
else
66
# Show output in log file for debugging

test/ec_keygen2_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
if lszcrypt | grep -q -e "CEX.C.*online"; then
3+
if lszcrypt | grep -q -e "^[0-9a-f][0-9a-f]\.[0-9a-f][0-9a-f][0-9a-f][0-9a-f].*CEX.C.*online"; then
44
ICAPATH=2 ./ec_keygen_test
55
else
66
# Show output in log file for debugging

test/ecdh1_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
if lszcrypt | grep -q -e "CEX.C.*online"; then
3+
if lszcrypt | grep -q -e "^[0-9a-f][0-9a-f]\.[0-9a-f][0-9a-f][0-9a-f][0-9a-f].*CEX.C.*online"; then
44
ICAPATH=1 ./ecdh_test
55
else
66
# Show output in log file for debugging

test/ecdh2_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
if lszcrypt | grep -q -e "CEX.C.*online"; then
3+
if lszcrypt | grep -q -e "^[0-9a-f][0-9a-f]\.[0-9a-f][0-9a-f][0-9a-f][0-9a-f].*CEX.C.*online"; then
44
ICAPATH=2 ./ecdh_test
55
else
66
# Show output in log file for debugging

test/ecdsa1_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
if lszcrypt | grep -q -e "CEX.C.*online"; then
3+
if lszcrypt | grep -q -e "^[0-9a-f][0-9a-f]\.[0-9a-f][0-9a-f][0-9a-f][0-9a-f].*CEX.C.*online"; then
44
ICAPATH=1 ./ecdsa_test
55
else
66
# Show output in log file for debugging

test/ecdsa2_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
if lszcrypt | grep -q -e "CEX.C.*online"; then
3+
if lszcrypt | grep -q -e "^[0-9a-f][0-9a-f]\.[0-9a-f][0-9a-f][0-9a-f][0-9a-f].*CEX.C.*online"; then
44
ICAPATH=2 ./ecdsa_test
55
else
66
# Show output in log file for debugging

0 commit comments

Comments
 (0)