Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ tasks:
- func: "build static test tarball"
vars:
BUILD_FEATURES: "--features azure-oidc"
TEST_FILES: "${PROJECT_DIRECTORY}/src/test/spec/json/auth/unified"
TEST_FILES: "${PROJECT_DIRECTORY}/spec/auth/unified"
- command: subprocess.exec
type: test
params:
Expand All @@ -1203,7 +1203,7 @@ tasks:
- func: "build static test tarball"
vars:
BUILD_FEATURES: "--features gcp-oidc"
TEST_FILES: "${PROJECT_DIRECTORY}/src/test/spec/json/auth/unified"
TEST_FILES: "${PROJECT_DIRECTORY}/spec/auth/unified"
- command: subprocess.exec
type: test
params:
Expand All @@ -1219,7 +1219,7 @@ tasks:
commands:
- func: "build static test tarball"
vars:
TEST_FILES: "${PROJECT_DIRECTORY}/src/test/spec/json/auth/unified"
TEST_FILES: "${PROJECT_DIRECTORY}/spec/auth/unified"
- command: ec2.assume_role
params:
role_arn: ${aws_test_secrets_role}
Expand Down
23 changes: 12 additions & 11 deletions etc/update-spec-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# The second argument is the branch/commit hash that the tests should be synced to. If it
# is omitted, it will default to "master".
#
# This script puts the tests in the directory $reporoot/src/test/spec/json/$specname. It
# This script puts the tests in the directory $reporoot/spec/$specname. It
# must be run from the root of the repository.

set -o errexit
Expand All @@ -22,22 +22,23 @@ if [ "$#" -eq 0 ]; then
fi

REF="${2:-master}"
DEST="spec"

tmpdir=`perl -MFile::Temp=tempdir -wle 'print tempdir(TMPDIR => 1, CLEANUP => 0)'`
curl -sL "https://github.com/mongodb/specifications/archive/$REF.zip" -o "$tmpdir/specs.zip"
unzip -q -d "$tmpdir" "$tmpdir/specs.zip"
mkdir -p "src/test/spec/json/$1"
rsync -ah "$tmpdir/specifications-$REF"*"/source/$1/tests/" "src/test/spec/json/$1" --delete
mkdir -p "${DEST}/$1"
rsync -ah "$tmpdir/specifications-$REF"*"/source/$1/tests/" "${DEST}/$1" --delete

if [ "$1" = "client-side-encryption" ]; then
mkdir -p "src/test/spec/json/testdata/$1/data"
rsync -ah "$tmpdir/specifications-$REF"*"/source/$1/etc/data/" "src/test/spec/json/testdata/$1/data" --delete
mkdir -p "src/test/spec/json/testdata/$1/corpus"
rsync -ah "$tmpdir/specifications-$REF"*"/source/$1/corpus/" "src/test/spec/json/testdata/$1/corpus" --delete
mkdir -p "src/test/spec/json/testdata/$1/external"
rsync -ah "$tmpdir/specifications-$REF"*"/source/$1/external/" "src/test/spec/json/testdata/$1/external" --delete
mkdir -p "src/test/spec/json/testdata/$1/limits"
rsync -ah "$tmpdir/specifications-$REF"*"/source/$1/limits/" "src/test/spec/json/testdata/$1/limits" --delete
mkdir -p "${DEST}/testdata/$1/data"
rsync -ah "$tmpdir/specifications-$REF"*"/source/$1/etc/data/" "${DEST}/testdata/$1/data" --delete
mkdir -p "${DEST}/testdata/$1/corpus"
rsync -ah "$tmpdir/specifications-$REF"*"/source/$1/corpus/" "${DEST}/testdata/$1/corpus" --delete
mkdir -p "${DEST}/testdata/$1/external"
rsync -ah "$tmpdir/specifications-$REF"*"/source/$1/external/" "${DEST}/testdata/$1/external" --delete
mkdir -p "${DEST}/testdata/$1/limits"
rsync -ah "$tmpdir/specifications-$REF"*"/source/$1/limits/" "${DEST}/testdata/$1/limits" --delete
fi

rm -rf "$tmpdir"
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading