samples: crypto: change config to run test sample.drivers.crypto.stm32

The test sample.drivers.crypto.stm32 was built only for the stm32 crypto
driver (build_only: true).
This commit changes the configuration to run the test and adds regex for
the supported modes.
Additionally integration_platform native_posix is removed from the
crypto.stm32 test configuration, such that stm32 targets built in CI.

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
diff --git a/samples/drivers/crypto/sample.yaml b/samples/drivers/crypto/sample.yaml
index f924b8e..25c6d8e 100644
--- a/samples/drivers/crypto/sample.yaml
+++ b/samples/drivers/crypto/sample.yaml
@@ -6,13 +6,13 @@
   tags: crypto
   min_ram: 20
   arch_exclude: xtensa
-  integration_platforms:
-    - native_posix
 tests:
   sample.drivers.crypto.mbedtls:
     min_flash: 34
     harness: console
     extra_args: CONF_FILE=prj_mtls_shim.conf
+    integration_platforms:
+      - native_posix
     harness_config:
       type: multi_line
       regex:
@@ -24,6 +24,8 @@
   sample.drivers.crypto.mbedtls.micro:
     tags: crypto
     harness: console
+    integration_platforms:
+      - native_posix
     harness_config:
       type: multi_line
       regex:
@@ -35,5 +37,15 @@
   sample.drivers.crypto.stm32:
     tags: crypto
     filter: dt_compat_enabled("st,stm32-aes") or dt_compat_enabled("st,stm32-cryp")
-    build_only: true
     extra_args: CONF_FILE=prj_stm32.conf
+    harness: console
+    harness_config:
+      type: multi_line
+      regex:
+        - ".*: Cipher Sample"
+        - ".*: ECB mode ENCRYPT - Match"
+        - ".*: ECB mode DECRYPT - Match"
+        - ".*: CBC mode ENCRYPT - Match"
+        - ".*: CBC mode DECRYPT - Match"
+        - ".*: CTR mode ENCRYPT - Match"
+        - ".*: CTR mode DECRYPT - Match"