mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
This makes it so that tests no longer need to know the absolute paths to the source and build dirs, instead using the systemd-runtest.env file to get these paths when running from the build tree. Confirmed that test-catalog works on `ninja test`, when called standalone and also when the environment file is not present, in which case it will use the installed location under /usr/lib/systemd/catalog. The location can now also be overridden for this test by setting the $SYSTEMD_CATALOG_DIR environment variable.
7 lines
162 B
C
7 lines
162 B
C
/* SPDX-License-Identifier: LGPL-2.1+ */
|
|
#pragma once
|
|
|
|
char* setup_fake_runtime_dir(void);
|
|
const char* get_testdata_dir(void);
|
|
const char* get_catalog_dir(void);
|