Skip to content

Commit

Permalink
[e2e] test for binary enable-device-protection
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Jun 21, 2024
1 parent abcba36 commit 7789a44
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/e2e/binary.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,18 @@ describe('Binary Commands', () => {
});

});

describe('Binary Subcommand to created a protected bootloader', () => {
it('Creates a protected bootloader', async () => {
const bootloader = path.join(PATH_FIXTURES_BINARIES_DIR, 'argon-bootloader-610.bin');
const args = ['binary', 'enable-device-protection', bootloader];
const { stdout, stderr, exitCode } = await cli.run(args);
expect(stdout).to.equal('argon-bootloader-610-protected.bin\n');
expect(stderr).to.equal('');
expect(exitCode).to.equal(0);

await fs.remove(path.join(PATH_FIXTURES_BINARIES_DIR, 'argon-bootloader-610-protected.bin'));
});
});
});

0 comments on commit 7789a44

Please sign in to comment.