Skip to content

Commit d8a8212

Browse files
committed
Allow selectively selecting or excluding artifact tests
1 parent 858bb6d commit d8a8212

File tree

21 files changed

+285
-40
lines changed

21 files changed

+285
-40
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ GET_SHELL :=
2929
SSH_KEY :=
3030
PACKAGE_SERVER :=
3131
PKG_TEST_JOBS :=
32+
PKG_TEST_SELECT :=
33+
PKG_TEST_EXCLUDE :=
3234

3335
EXTRAENV =
3436
EXTRAVOLUMES =
@@ -163,6 +165,8 @@ test: check-target
163165
-e PKG_PLATFORM=$(PLATFORM) \
164166
-e PKG_PLATFORM_VERSION=$(DISTRO) \
165167
-e PKG_TEST_JOBS=$(PKG_TEST_JOBS) \
168+
-e PKG_TEST_SELECT=$(PKG_TEST_SELECT) \
169+
-e PKG_TEST_EXCLUDE=$(PKG_TEST_EXCLUDE) \
166170
--platform $(DOCKER_PLATFORM) \
167171
$(DOCKER_ARCH_PREFIX)edgedb-pkg/test:$(TARGET) \
168172
$(COMMAND)

integration/linux/test/centos-7/Dockerfile

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration/linux/test/centos-8/Dockerfile

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration/linux/test/debian-bookworm/Dockerfile

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration/linux/test/debian-bullseye/Dockerfile

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration/linux/test/debian-buster/Dockerfile

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration/linux/test/entrypoint-centos.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,23 @@ if [ -n "${PKG_TEST_JOBS}" ]; then
9393
else
9494
dash_j=""
9595
fi
96+
test_select=""
97+
if [ -n "${PKG_TEST_SELECT}" ]; then
98+
for pattern in $PKG_TEST_SELECT; do
99+
test_select="$test_select --include=${pattern}"
100+
done
101+
fi
102+
test_exclude=""
103+
if [ -n "${PKG_TEST_EXCLUDE}" ]; then
104+
for pattern in $PKG_TEST_EXCLUDE; do
105+
test_exclude="$test_exclude --exclude=${pattern}"
106+
done
107+
fi
96108

97109
cmd="/usr/lib64/${server}/bin/python3 \
98110
-m edb.tools --no-devmode test \
99-
/usr/share/${server}/tests \
100-
-e cqa_ -e tools_ \
111+
/usr/share/${server}/tests ${test_select} \
112+
-e cqa_ -e tools_ ${test_exclude} \
101113
--verbose ${dash_j}"
102114

103115
if [ "$1" == "bash" ]; then

integration/linux/test/entrypoint-debian.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,23 @@ if [ -n "${PKG_TEST_JOBS}" ]; then
101101
else
102102
dash_j=""
103103
fi
104+
test_select=""
105+
if [ -n "${PKG_TEST_SELECT}" ]; then
106+
for pattern in $PKG_TEST_SELECT; do
107+
test_select="$test_select --include=${pattern}"
108+
done
109+
fi
110+
test_exclude=""
111+
if [ -n "${PKG_TEST_EXCLUDE}" ]; then
112+
for pattern in $PKG_TEST_EXCLUDE; do
113+
test_exclude="$test_exclude --exclude=${pattern}"
114+
done
115+
fi
104116

105117
cmd="/usr/lib/${machine}-linux-gnu/${server}/bin/python3 \
106118
-m edb.tools --no-devmode test \
107-
/usr/share/${server}/tests \
108-
-e cqa_ -e tools_ \
119+
/usr/share/${server}/tests ${test_select} \
120+
-e cqa_ -e tools_ ${test_exclude} \
109121
--verbose ${dash_j}"
110122

111123
if [ "$1" == "bash" ]; then

integration/linux/test/entrypoint-linux.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ if [ -n "${PKG_TEST_JOBS}" ]; then
1717
else
1818
dash_j=""
1919
fi
20+
test_select=""
21+
if [ -n "${PKG_TEST_SELECT}" ]; then
22+
for pattern in $PKG_TEST_SELECT; do
23+
test_select="$test_select --include=${pattern}"
24+
done
25+
fi
26+
test_exclude=""
27+
if [ -n "${PKG_TEST_EXCLUDE}" ]; then
28+
for pattern in $PKG_TEST_EXCLUDE; do
29+
test_exclude="$test_exclude --exclude=${pattern}"
30+
done
31+
fi
2032

2133
machine=$(uname -m)
2234
cliurl="https://packages.geldata.com/dist/${machine}-unknown-linux-musl/gel-cli"
@@ -63,6 +75,6 @@ fi
6375

6476
exec gosu gel:gel /gel/bin/python3 \
6577
-m edb.tools --no-devmode test \
66-
/gel/share/tests \
67-
-e cqa_ -e tools_ \
78+
/gel/share/tests ${test_select} \
79+
--exclude="cqa_" --exclude="tools_" ${test_exclude} \
6880
--verbose ${dash_j}

integration/linux/test/entrypoint-linuxmusl.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ if [ -n "${PKG_TEST_JOBS}" ]; then
1717
else
1818
dash_j=""
1919
fi
20+
test_select=""
21+
if [ -n "${PKG_TEST_SELECT}" ]; then
22+
for pattern in $PKG_TEST_SELECT; do
23+
test_select="$test_select --include=${pattern}"
24+
done
25+
fi
26+
test_exclude=""
27+
if [ -n "${PKG_TEST_EXCLUDE}" ]; then
28+
for pattern in $PKG_TEST_EXCLUDE; do
29+
test_exclude="$test_exclude --exclude=${pattern}"
30+
done
31+
fi
2032

2133
machine=$(uname -m)
2234
cliurl="https://packages.geldata.com/dist/${machine}-unknown-linux-musl/gel-cli"
@@ -63,6 +75,6 @@ fi
6375

6476
exec gosu gel:gel /gel/bin/python3 \
6577
-m edb.tools --no-devmode test \
66-
/gel/share/tests \
67-
-e cqa_ -e tools_ \
78+
/gel/share/tests ${test_select} \
79+
-e cqa_ -e tools_ ${test_exclude} \
6880
--verbose ${dash_j}

0 commit comments

Comments
 (0)