run all tests in a single script
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
0e15557000
commit
050f295b37
2 changed files with 14 additions and 18 deletions
19
.github/workflows/go.yml
vendored
19
.github/workflows/go.yml
vendored
|
|
@ -51,23 +51,6 @@ jobs:
|
|||
- name: Build executable
|
||||
run: make
|
||||
|
||||
- name: Run attestation command integration tests - windows syntax
|
||||
if: ${{ matrix.os == 'windows-latest' }}
|
||||
run: |
|
||||
attestation_cmd_test_dir="test/integration/attestation-cmd"
|
||||
for (script in "$attestation_cmd_test_dir"/*.sh) do (
|
||||
if [ -f "$script" ]; then
|
||||
echo "Running $script..."
|
||||
bash "$script"
|
||||
fi
|
||||
)
|
||||
- name: Run attestation command integration tests - linux syntax
|
||||
if: ${{ matrix.os != 'windows-latest' }}
|
||||
run: |
|
||||
attestation_cmd_test_dir="test/integration/attestation-cmd"
|
||||
for script in "$attestation_cmd_test_dir"/*.sh; do
|
||||
if [ -f "$script" ]; then
|
||||
echo "Running $script..."
|
||||
bash "$script"
|
||||
fi
|
||||
done
|
||||
./test/integration/attestation-cmd/run-all-tests.sh
|
||||
|
|
|
|||
13
test/integration/attestation-cmd/run-all-tests.sh
Executable file
13
test/integration/attestation-cmd/run-all-tests.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Get the root directory of the repository
|
||||
rootDir="$(git rev-parse --show-toplevel)"
|
||||
|
||||
attestation_cmd_test_dir="$rootDir/test/integration/attestation-cmd"
|
||||
for script in "$attestation_cmd_test_dir"/*.sh; do
|
||||
if [ -f "$script" ]; then
|
||||
echo "Running $script..."
|
||||
bash "$script"
|
||||
fi
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue