Files
swupd-client/test/functional/generate-cert.prereq
T
Castulo Martinez d76b34889d Removing old test library swupd.bash
The old test library swupd.bash was replaced by testlib.bash.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
2018-09-27 12:48:14 -07:00

21 lines
362 B
Bash
Executable File

#!/usr/bin/env bats
load "testlib"
test_setup() {
:
}
test_teardown() {
:
}
@test "Generate certificate for signing Manifest.MoM" {
run sudo sh -c "rm -rf "$FUNC_DIR"/private.pem "$FUNC_DIR"/Swupd_Root.pem"
generate_certificate "$FUNC_DIR"/private.pem "$FUNC_DIR"/Swupd_Root.pem "$FUNC_DIR"/certattributes.cnf
}
# vi: ft=sh ts=8 sw=2 sts=2 et tw=80