summaryrefslogtreecommitdiff
path: root/tests/profile.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/profile.rs')
-rw-r--r--tests/profile.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/profile.rs b/tests/profile.rs
deleted file mode 100644
index 8fa0a24..0000000
--- a/tests/profile.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-use std::path::Path;
-
-use alt_controller_image::Profile;
-
-#[test]
-fn profile_expands_vendored_package_lists_and_discards_comments() {
- let profile = Profile::load(Path::new("profiles/alt-controller.profile"))
- .expect("target profile must parse");
-
- assert!(profile.packages.contains(&"fakeroot".to_owned()));
- assert!(profile.packages.contains(&"openssh-server".to_owned()));
- assert!(profile.packages.contains(&"systemd-sysvinit".to_owned()));
- assert!(profile.packages.contains(&"libiec61850".to_owned()));
- assert!(!profile.packages.iter().any(|entry| entry.starts_with('#')));
- assert!(profile.regex_packages.contains(&"^kernel-(image|modules-())-(rt)$".to_owned()));
-}