mirror of
https://github.com/clearlinux/clrtrust.git
synced 2026-06-16 02:55:58 +00:00
27 lines
462 B
Bash
Executable File
27 lines
462 B
Bash
Executable File
#!/usr/bin/env bats
|
|
# Copyright 2017 Intel Corporation
|
|
|
|
load test_lib
|
|
|
|
setup() {
|
|
find_clrtrust
|
|
setup_fs
|
|
cp $CERTS/c[1-2].pem $CLR_CLEAR_TRUST_SRC/trusted
|
|
cp $CERTS/c[3-4].pem $CLR_LOCAL_TRUST_SRC/trusted
|
|
}
|
|
|
|
@test "check on a correct environment" {
|
|
$CLRTRUST check
|
|
}
|
|
|
|
@test "check when there's no local source" {
|
|
rm -r $CLR_LOCAL_TRUST_SRC
|
|
$CLRTRUST check
|
|
}
|
|
|
|
teardown() {
|
|
remove_fs
|
|
}
|
|
|
|
# vim: ft=sh:sw=4:ts=4:et:tw=80:si:noai:nocin
|