summaryrefslogtreecommitdiffhomepage
path: root/test/unit/check/discover_available.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2024-05-17 17:42:11 +0100
committerAva Hahn <110854134+avahahn@users.noreply.github.com>2024-08-20 11:38:51 -0700
commitcad6aed526b38d52f13266120f9a4381f9a22cad (patch)
tree8108d85b8c56f01504fdf329de787b56c5b7d0a8 /test/unit/check/discover_available.py
parent593564fdd10da2bf4e76587a0482af72a9f1461b (diff)
downloadunit-cad6aed526b38d52f13266120f9a4381f9a22cad.tar.gz
unit-cad6aed526b38d52f13266120f9a4381f9a22cad.tar.bz2
Tests: initial "wasm-wasi-component" test
Diffstat (limited to 'test/unit/check/discover_available.py')
-rw-r--r--test/unit/check/discover_available.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/check/discover_available.py b/test/unit/check/discover_available.py
index 1383a0c3..99e63604 100644
--- a/test/unit/check/discover_available.py
+++ b/test/unit/check/discover_available.py
@@ -1,6 +1,7 @@
import subprocess
import sys
+from unit.check.cargo_component import check_cargo_component
from unit.check.chroot import check_chroot
from unit.check.go import check_go
from unit.check.isolation import check_isolation
@@ -28,7 +29,7 @@ def discover_available(unit):
# discover modules from log file
- for module in Log.findall(r'module: ([a-zA-Z]+) (.*) ".*"$'):
+ for module in Log.findall(r'module: ([a-zA-Z\-]+) (.*) ".*"$'):
versions = option.available['modules'].setdefault(module[0], [])
if module[1] not in versions:
versions.append(module[1])
@@ -44,6 +45,7 @@ def discover_available(unit):
# Discover features using check. Features should be discovered after
# modules since some features can require modules.
+ option.available['features']['cargo_component'] = check_cargo_component()
option.available['features']['chroot'] = check_chroot()
option.available['features']['isolation'] = check_isolation()
option.available['features']['unix_abstract'] = check_unix_abstract()