Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ if get_option('system')
'src/system/autostart_manager.vala',
'src/system/hardware_info.vala',
'src/system/sensor.vala',
'src/system/utilization.vala',
)

libsingularity_system = shared_library('singularity-system',
Expand Down Expand Up @@ -289,6 +290,23 @@ if get_option('system')
dependencies: [gio_dep, gee_dep],
)
test('sensor', sensor_test)

utilization_test = executable(
'utilization-test',
files(
'tests/utilization_test.vala',
'src/system/utilization.vala',
'src/system/sensor.vala',
),
# giounix_dep: utilization.vala's is_real_filesystem() consults
# GLib.UnixMountEntry (gio-unix-2.0) when proc_root is unset. The
# fixture tests always set proc_root, so this path never actually runs
# under test -- but the file still needs to LINK, and every valac
# invocation compiles the whole file regardless of which branch a test
# exercises.
dependencies: [gio_dep, giounix_dep, gee_dep],
)
test('utilization', utilization_test)
endif

# Build the Singularity GTK3/GTK4 theme for third-party apps. Orchis supplies
Expand Down
Loading