Skip to content

Commit b985182

Browse files
committed
runTestsFromGit
1 parent a49404d commit b985182

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
11
FROM solidtestsuite/web-access-control-tests
2-
# RUN git fetch origin
3-
# RUN git fetch https://github.com/solid-contrib/web-access-control-tests.git
4-
# RUN git stash
5-
RUN git pull https://github.com/solid-contrib/web-access-control-tests.git
6-
RUN git checkout patchAppendNewDocument
7-
# RUN git pull https://github.com/solid-contrib/web-access-control-tests.git

test/surface/run-solid-test-suite.sh

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,26 @@ function runTests {
4141
--env-file test/surface/$1-env.list solidtestsuite/$1:$2
4242
}
4343

44+
function runTestsFromGit {
45+
docker build https://github.com/solid-contrib/$1.git#$2 -t $1
46+
47+
echo "Running web-access-control-tests against server with cookie $COOKIE_server"
48+
docker run --rm --network=testnet \
49+
--env COOKIE="$COOKIE_server" \
50+
--env COOKIE_ALICE="$COOKIE_server" \
51+
--env COOKIE_BOB="$COOKIE_thirdparty" \
52+
--env-file test/surface/$1-env.list $1
53+
}
54+
4455
# ...
4556
teardown || true
4657
setup $1
4758
waitForNss server
48-
# runTests webid-provider-tests v2.0.3
49-
# runTests solid-crud-tests v6.0.0
59+
runTests webid-provider-tests v2.0.3
60+
runTests solid-crud-tests v6.0.0
5061
waitForNss thirdparty
51-
# runTests web-access-control-tests nss-skips # patchAppendNewDocument # v7.1.0
52-
# docker run --rm --network=testnet --env COOKIE_ALICE="$COOKIE_ALICE" --env COOKIE_BOB="$COOKIE_BOB" --env-file test/surface/web-access-control-tests-env.list web-access-control
53-
echo "Running web-access-control-tests against server with cookie $COOKIE_server"
54-
# docker build -t web-access-control test/surface/docker/web-access-control
55-
docker build https://github.com/solid-contrib/web-access-control-tests.git#patchAppendNewDocument -t web-access-control
56-
docker run --rm --network=testnet \
57-
--env COOKIE="$COOKIE_server" \
58-
--env COOKIE_ALICE="$COOKIE_server" \
59-
--env COOKIE_BOB="$COOKIE_thirdparty" \
60-
--env-file test/surface/web-access-control-tests-env.list web-access-control
62+
# runTests web-access-control-tests v7.1.0
63+
runTestsFromGit web-access-control-tests patchAppendNewDocument
6164
teardown
6265

6366
# To debug, e.g. running web-access-control-tests jest interactively,

0 commit comments

Comments
 (0)