Skip to content

Commit 71f99af

Browse files
committed
chore: Add test that checks unknown versions
1 parent 2fd9511 commit 71f99af

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ if [ `node -p process.platform` = "linux" ]; then
1515
grep -Fq 'mongo_crypt_v1-dev-7.0.9 (0x0007000000090000)' version && \
1616
cd .. && rm -rf tmp || FAILED=1
1717

18+
19+
mkdir -p tmp && cd tmp && \
20+
curl -O "https://downloads.mongodb.com/linux/mongo_csfle_v1-linux-$ARCH-enterprise-ubuntu2004-5.3.0-rc3.tgz" && \
21+
tar xvzf mongo_csfle_v1-linux-$ARCH-enterprise-ubuntu2004-5.3.0-rc3.tgz && \
22+
../bin/mongodb-crypt-library-version.js lib/mongo_csfle_v1.so > version && \
23+
cat version && \
24+
grep -Fq 'mongo_crypt_v1-unknown (0x0000000000000000)' version && \
25+
cd .. && rm -rf tmp || FAILED=1
26+
1827
mkdir -p tmp && cd tmp && \
1928
curl -O "https://downloads.mongodb.com/linux/mongo_crypt_shared_v1-linux-$ARCH-enterprise-ubuntu2004-8.0.0-rc4.tgz" && \
2029
tar xvzf mongo_crypt_shared_v1-linux-$ARCH-enterprise-ubuntu2004-8.0.0-rc4.tgz && \

0 commit comments

Comments
 (0)