summaryrefslogtreecommitdiffstats
path: root/test/framework
diff options
context:
space:
mode:
Diffstat (limited to 'test/framework')
-rw-r--r--test/framework/bad_cert_file_path.conf3
-rw-r--r--test/framework/bad_key_file_path.conf1
-rw-r--r--test/framework/bad_sign_file_path.conf1
-rw-r--r--test/framework/hijacking.conf3
-rw-r--r--test/framework/temp_key_cert.conf2
-rw-r--r--test/framework/variables_in_path.conf3
6 files changed, 13 insertions, 0 deletions
diff --git a/test/framework/bad_cert_file_path.conf b/test/framework/bad_cert_file_path.conf
new file mode 100644
index 0000000..34e1094
--- /dev/null
+++ b/test/framework/bad_cert_file_path.conf
@@ -0,0 +1,3 @@
+# The key file will be generated by openssl. Use a temporary path to avoid corrupting the default private key file on the system
+mok_signing_key="/tmp/dkms_test_private_key"
+mok_certificate="/no/such/path.crt"
diff --git a/test/framework/bad_key_file_path.conf b/test/framework/bad_key_file_path.conf
new file mode 100644
index 0000000..8f46b8d
--- /dev/null
+++ b/test/framework/bad_key_file_path.conf
@@ -0,0 +1 @@
+mok_signing_key="/no/such/path.key"
diff --git a/test/framework/bad_sign_file_path.conf b/test/framework/bad_sign_file_path.conf
new file mode 100644
index 0000000..4ef51d2
--- /dev/null
+++ b/test/framework/bad_sign_file_path.conf
@@ -0,0 +1 @@
+sign_file="/no/such/file"
diff --git a/test/framework/hijacking.conf b/test/framework/hijacking.conf
new file mode 100644
index 0000000..476baa6
--- /dev/null
+++ b/test/framework/hijacking.conf
@@ -0,0 +1,3 @@
+do_status() {
+ echo "do_status() is hijacked!"
+}
diff --git a/test/framework/temp_key_cert.conf b/test/framework/temp_key_cert.conf
new file mode 100644
index 0000000..9bde615
--- /dev/null
+++ b/test/framework/temp_key_cert.conf
@@ -0,0 +1,2 @@
+mok_signing_key="/tmp/dkms_test_private_key"
+mok_certificate="/tmp/dkms_test_certificate"
diff --git a/test/framework/variables_in_path.conf b/test/framework/variables_in_path.conf
new file mode 100644
index 0000000..87213e6
--- /dev/null
+++ b/test/framework/variables_in_path.conf
@@ -0,0 +1,3 @@
+sign_file="/lib/modules/${kernelver}/build/scripts/sign-file"
+mok_signing_key="/tmp/dkms_test_dir_${kernelver}/key"
+mok_certificate="/tmp/dkms_test_dir_${kernelver}/cert"