/****************************************************************************** __ ____ __ / / ___ ____ _/ __/_____________ _/ /__ / / / _ \/ __ `/ /_/ ___/ ___/ __ `/ / _ \ / /___/ __/ /_/ / __(__ ) /__/ /_/ / / __/ /_____/\___/\__,_/_/ /____/\___/\__,_/_/\___/ (C)opyright 2026, Leafscale, LLC - https://www.leafscale.com Project: repoman Filename: tests/test_profile_paths.reef Authors: Chris Tusa License: Description: Tests: profile vendor/user dir resolution ******************************************************************************/ import profile import test.framework proc main() let runner = new framework.TestRunner() runner.assert_eq_string( profile.vendor_dir(), "/usr/local/share/repoman/profiles", "vendor_dir is the install layout" ) runner.assert_eq_string( profile.user_dir("/home/ctusa"), "/home/ctusa/.config/repoman/profiles.d", "user_dir under XDG config" ) runner.assert_eq_string( profile.user_dir(""), "/.config/repoman/profiles.d", "user_dir with empty home (still composes path)" ) runner.report() end main