xfce4-systemload-plugin-zram/tests/run.sh
4aiman 0a59ec699f zram-aware memory, configurable uptime format (1:1.3.2-2ubuntu3+zram2)
- zram.cc/.h: read zram usage; memory bar can subtract RAM held by zram
- memswap: zram and disk swap shown separately in the tooltip
- uptime: format string with %d %h %m %s, %H %M %S, %t, \n and {...}
- settings dialog fields for both, Russian translation
- tests/test_format_uptime.cc with tests/run.sh
This is what the installed 1:1.3.2-2ubuntu3+zram2 package was built from.
2026-11-03 22:24:11 +03:00

8 lines
316 B
Bash

#!/bin/bash
# Build and run the standalone format_uptime() test.
set -e
dir="$(cd "$(dirname "$0")" && pwd)"
out="$dir/build"
mkdir -p "$out"
g++ -Wall -Wextra -o "$out/test_format_uptime" "$dir/test_format_uptime.cc" "$dir/../panel-plugin/uptime.cc" $(pkg-config --cflags --libs glib-2.0)
"$out/test_format_uptime"