Skip to content

Commit 108ec00

Browse files
test for libc
1 parent 19a0284 commit 108ec00

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/docker/Dockerfile.glibc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ENV PATH=$PATH:/nodejs/bin
1010
WORKDIR /mongodb-client-encryption
1111
COPY . .
1212

13-
RUN apt-get -qq update && apt-get -qq install -y python3 build-essential git && ldd --version
13+
RUN yum install -y python39 git make gcc-c++
1414

1515
RUN npm run install:libmongocrypt
1616

test/unit/glibc.test.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { expect } from 'chai';
2+
import { execSync } from 'child_process';
3+
4+
describe('glibc requirements', function () {
5+
let lddOutput: string;
6+
beforeEach(function () {
7+
if (process.platform !== 'linux') return this.skip();
8+
9+
try {
10+
lddOutput = execSync('ldd --version', { encoding: 'utf8' });
11+
} catch {
12+
this.skip();
13+
}
14+
15+
return;
16+
});
17+
18+
it('glibc is 2.28', function () {
19+
expect(lddOutput).to.contain('2.28');
20+
});
21+
});

0 commit comments

Comments
 (0)