Skip to content

Commit

Permalink
test: Use farmhash for clang testing
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrieseberg committed Oct 8, 2024
1 parent 1aa62c0 commit 1517455
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/rebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,17 @@ describe('rebuilder', () => {
before(async () => await resetTestModule(testModulePath));
after(async() => await cleanupTestModule(testModulePath));

it('should have rebuilt windows-active-process module in Debug mode', async () => {
it('should have rebuilt farmhash module in Debug mode', async () => {
await rebuild({
buildPath: testModulePath,
electronVersion: testElectronVersion,
arch: process.arch,
onlyModules: ['windows-active-process'],
onlyModules: ['farmhash'],
force: true,
debug: true
});
await expectNativeModuleToBeRebuilt(testModulePath, 'windows-active-process', { buildType: 'Debug' });
await expectNativeModuleToNotBeRebuilt(testModulePath, 'windows-active-process');
await expectNativeModuleToBeRebuilt(testModulePath, 'farmhash', { buildType: 'Debug' });
await expectNativeModuleToNotBeRebuilt(testModulePath, 'farmhash');
});
});

Expand All @@ -205,16 +205,16 @@ describe('rebuilder', () => {
before(async () => await resetTestModule(testModulePath));
after(async() => await cleanupTestModule(testModulePath));

it('should have rebuilt windows-active-process module using clang mode', async () => {
it('should have rebuilt farmhash module using clang mode', async () => {
await rebuild({
buildPath: testModulePath,
electronVersion: testElectronVersion,
arch: process.arch,
onlyModules: ['windows-active-process'],
onlyModules: ['farmhash'],
force: true,
useElectronClang: true
});
await expectNativeModuleToBeRebuilt(testModulePath, 'windows-active-process');
await expectNativeModuleToBeRebuilt(testModulePath, 'farmhash');
});
});
});

0 comments on commit 1517455

Please sign in to comment.