@@ -23,17 +23,16 @@ phases:
2323 - aws s3 cp s3://generated-vectors-artifacts-bucket/$CODEBUILD_RESOLVED_SOURCE_VERSION/312_hkeyring_reccmm_manifest.zip 312_hkeyring_reccmm_manifest.zip
2424 - unzip 312_hkeyring_reccmm_manifest.zip
2525 - export DAFNY_AWS_ESDK_TEST_VECTOR_MANIFEST_PATH="${PWD}/312_hkeyring_reccmm_manifest/manifest.json"
26-
27- # Build the ESDK-Dafny test vector runner
28- # Clone SDK-Dafny repo to get test vectors runner source code
26+
27+ # Clone SDK-Dafny repo to get test vectors runner source code and the Dafny version to use
2928 - git clone --recurse-submodules https://github.com/aws/aws-encryption-sdk-dafny.git
30- # Download Dafny to build the test vector runner; get Dafny version from project.properties file
29+ # Download Dafny to build the test vector runner; get Dafny version from ESDK's project.properties file
3130 - export dafnyVersion=$(grep '^dafnyVersion=' aws-encryption-sdk-dafny/AwsEncryptionSDK/project.properties | cut -d '=' -f 2)
3231 - curl https://github.com/dafny-lang/dafny/releases/download/v$dafnyVersion/dafny-$dafnyVersion-x64-ubuntu-20.04.zip -L -o dafny.zip
3332 - unzip -qq dafny.zip && rm dafny.zip
3433 - export PATH="$PWD/dafny:$PATH"
3534
36- # Build ESDK test vector runner
35+ # Build ESDK test vector runner from source
3736 - cd aws-encryption-sdk-dafny
3837 # TODO: Change branch to published when available
3938 - git checkout lucmcdon/hkeyring-vectors
@@ -44,9 +43,8 @@ phases:
4443 - make transpile_net
4544
4645 # Change TestVectors to reference the published .NET ESDK
47- - cd ../../AwsEncryptionSDK/runtimes/net/TestVectorsNative/TestVectors
48- # - sed -i -e 's/<ProjectReference Include="\.\.\/\.\.\/ESDK\.csproj" \/>/<PackageReference Include="AWS.Cryptography.EncryptionSDK" Version="4.0.1" \/>/g' AWSEncryptionSDKTestVectorLib.csproj
49- # - cd ../TestVectors
46+ - cd ../../AwsEncryptionSDK/runtimes/net/TestVectorsNative/TestVectorLib
47+ - sed -i 's/<ProjectReference Include="\.\./\.\./ESDK\.csproj" />/<PackageReference Include="AWS.Cryptography.EncryptionSDK" />/g' AWSEncryptionSDKTestVectorLib.csproj
5048
5149 build :
5250 commands :
0 commit comments