Skip to content

Commit

Permalink
Use fastfail for test and utest. v5.14.15
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Apr 10, 2024
1 parent b572217 commit 34318e7
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 55 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
echo "Wait for service ready." &&
make -j -C test &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=true -init-self-signed-cert=true \
-check-api-secret=true -test.run TestSystem_Empty &&
Expand All @@ -131,19 +131,19 @@ jobs:
echo "Test HTTP service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Test HTTPS service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint https://localhost:2443 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint https://localhost:2443 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Run media test with retry" &&
bash scripts/tools/secret.sh --output test/.env &&
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -test.run WithStream
ret=$?; echo "Test result: $ret"
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
echo "Wait for service ready." &&
make -j -C test &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=true -init-self-signed-cert=true \
-check-api-secret=true -test.run TestSystem_Empty &&
Expand All @@ -203,19 +203,19 @@ jobs:
echo "Test HTTP service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Test HTTPS service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint https://localhost:2443 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint https://localhost:2443 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Run media test with retry" &&
bash scripts/tools/secret.sh --output test/.env &&
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -test.run WithStream
ret=$?; echo "Test result: $ret"
Expand Down Expand Up @@ -284,7 +284,7 @@ jobs:
echo "Wait for service ready." &&
make -j -C test &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=true -init-self-signed-cert=true \
-check-api-secret=true -test.run TestSystem_Empty &&
Expand All @@ -293,19 +293,19 @@ jobs:
echo "Test HTTP service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Test HTTPS service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint https://localhost:2443 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint https://localhost:2443 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Run media test with retry" &&
bash scripts/tools/secret.sh --output test/.env &&
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -test.run WithStream
ret=$?; echo "Test result: $ret"
Expand Down Expand Up @@ -373,7 +373,7 @@ jobs:
echo "Wait for service ready." &&
make -j -C test &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=true -init-self-signed-cert=true \
-check-api-secret=true -test.run TestSystem_Empty &&
Expand All @@ -382,19 +382,19 @@ jobs:
echo "Test HTTP service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Test HTTPS service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint https://localhost:2443 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint https://localhost:2443 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Run media test with retry" &&
bash scripts/tools/secret.sh --output test/.env &&
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -test.run WithStream
ret=$?; echo "Test result: $ret"
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
echo "Wait for service ready." &&
make -j -C test &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=true -init-self-signed-cert=true \
-check-api-secret=true -test.run TestSystem_Empty &&
Expand All @@ -100,19 +100,19 @@ jobs:
echo "Test HTTP service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Test HTTPS service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint https://localhost:2443 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint https://localhost:2443 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Run media test with retry" &&
bash scripts/tools/secret.sh --output test/.env &&
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.v -endpoint http://localhost:2022 \
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://localhost:2022 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -test.run WithStream
ret=$?; echo "Test result: $ret"
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:
echo "Wait for service ready." &&
make -j -C test &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://srs.stack.local:80 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://srs.stack.local:80 \
-srs-log=true -wait-ready=true -init-password=true -init-self-signed-cert=true \
-check-api-secret=true -test.run TestSystem_Empty &&
Expand All @@ -268,19 +268,19 @@ jobs:
echo "Test HTTP service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://srs.stack.local:80 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://srs.stack.local:80 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Test HTTPS service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint https://srs.stack.local:443 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint https://srs.stack.local:443 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Run media test with retry" &&
bash scripts/tools/secret.sh --output test/.env &&
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.v -endpoint http://srs.stack.local:80 \
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://srs.stack.local:80 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -test.run WithStream
ret=$?; echo "Test result: $ret"
Expand Down Expand Up @@ -424,7 +424,7 @@ jobs:
echo "Wait for service ready." &&
make -j -C test &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://srs.stack.local:80 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://srs.stack.local:80 \
-srs-log=true -wait-ready=true -init-password=true -init-self-signed-cert=true \
-check-api-secret=true -test.run TestSystem_Empty &&
Expand All @@ -433,19 +433,19 @@ jobs:
echo "Test HTTP service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint http://srs.stack.local:80 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://srs.stack.local:80 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Test HTTPS service." &&
bash scripts/tools/secret.sh --output test/.env &&
./test/oryx.test -test.timeout=1h -test.v -endpoint https://srs.stack.local:443 \
./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint https://srs.stack.local:443 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -no-media-test &&
echo "Run media test with retry" &&
bash scripts/tools/secret.sh --output test/.env &&
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.v -endpoint http://srs.stack.local:80 \
./scripts/tools/failed-retry.sh 3 ./test/oryx.test -test.timeout=1h -test.failfast -test.v -endpoint http://srs.stack.local:80 \
-srs-log=true -wait-ready=true -init-password=false -init-self-signed-cert=false \
-check-api-secret=true -test.run WithStream
ret=$?; echo "Test result: $ret"
Expand Down
Loading

0 comments on commit 34318e7

Please sign in to comment.