mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-01 10:32:35 +01:00
Update tests
This commit is contained in:
@@ -37,7 +37,7 @@ All categories not listed here should work without needing a specific implementa
|
||||
|
||||
#### Available Modules
|
||||
```
|
||||
Title, Separator, OS, Host, Kernel, Uptime, Processes, Packages, Shell, Resolution, DE, WM, WMTheme, Theme, Icons, Font, Cursor, Terminal, Terminal Font, CPU, CPUUsage, GPU, Memory, Disk, Battery, LocalIP, PublicIP, Player, Song, Locale, Colors, Break, Custom
|
||||
Title, Separator, OS, Host, Kernel, Uptime, Processes, Packages, Shell, Resolution, DE, WM, WMTheme, Theme, Icons, Font, Cursor, Terminal, Terminal Font, CPU, CPUUsage, GPU, Memory, Disk, Battery, Player, Song, LocalIP, PublicIP, Locale, Colors, Break, Custom
|
||||
```
|
||||
|
||||
##### Logos
|
||||
|
||||
+2
-2
@@ -503,10 +503,10 @@ void ffPrintMemory(FFinstance* instance);
|
||||
void ffPrintDisk(FFinstance* instance);
|
||||
void ffPrintBattery(FFinstance* instance);
|
||||
void ffPrintLocale(FFinstance* instance);
|
||||
void ffPrintLocalIp(FFinstance* instance);
|
||||
void ffPrintPublicIp(FFinstance* instance);
|
||||
void ffPrintPlayer(FFinstance* instance);
|
||||
void ffPrintSong(FFinstance* instance);
|
||||
void ffPrintLocalIp(FFinstance* instance);
|
||||
void ffPrintPublicIp(FFinstance* instance);
|
||||
void ffPrintColors(FFinstance* instance);
|
||||
|
||||
#endif
|
||||
|
||||
+2
-2
@@ -45,10 +45,10 @@ int main(int argc, char** argv)
|
||||
ffPrintMemory(&instance);
|
||||
ffPrintDisk(&instance);
|
||||
ffPrintBattery(&instance);
|
||||
//ffPrintLocalIp(&instance);
|
||||
//ffPrintPublicIp(&instance);
|
||||
//ffPrintPlayer(&instance);
|
||||
//ffPrintSong(&instance);
|
||||
//ffPrintLocalIp(&instance);
|
||||
//ffPrintPublicIp(&instance);
|
||||
ffPrintLocale(&instance);
|
||||
ffPrintBreak(&instance);
|
||||
ffPrintColors(&instance);
|
||||
|
||||
+13
-5
@@ -10,7 +10,7 @@
|
||||
clock_gettime(CLOCK_REALTIME, &end); \
|
||||
long nanos = end.tv_nsec - start.tv_nsec; \
|
||||
printf("\033[F"); \
|
||||
for(uint8_t i = 0; i < 110; i++) printf("\033[C"); \
|
||||
for(uint8_t i = 0; i < 125; i++) printf("\033[C"); \
|
||||
printf("%08ldns\n", nanos); \
|
||||
} \
|
||||
|
||||
@@ -28,12 +28,14 @@ int main(int argc, char** argv)
|
||||
FASTFETCH_TEST_PERFORMANCE(
|
||||
puts("Configuration");
|
||||
ffLoadLogo(&instance);
|
||||
ffStrbufSet(&instance.config.color, &instance.config.logoColors[0]);
|
||||
instance.config.showErrors = true;
|
||||
instance.config.recache = argc == 1;
|
||||
instance.config.cacheSave = false;
|
||||
)
|
||||
|
||||
ffStrbufSet(&instance.config.color, &instance.config.logoColors[0]);
|
||||
instance.config.showErrors = true;
|
||||
instance.config.recache = argc == 1;
|
||||
instance.config.cacheSave = false;
|
||||
ffStrbufSetS(&instance.config.songFormat, "{}"); //Otherwise the line is too long
|
||||
|
||||
FASTFETCH_TEST_PERFORMANCE(
|
||||
puts("Thread starting");
|
||||
ffStartDetectionThreads(&instance);
|
||||
@@ -45,6 +47,7 @@ int main(int argc, char** argv)
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintHost(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintKernel(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintUptime(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintProcesses(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintPackages(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintShell(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintResolution(&instance))
|
||||
@@ -57,10 +60,15 @@ int main(int argc, char** argv)
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintTerminal(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintTerminalFont(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintCPU(&instance))
|
||||
//FASTFETCH_TEST_PERFORMANCE(ffPrintCPUUsage(&instance)) // Doesn't make sense, contains a sleep call
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintGPU(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintMemory(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintDisk(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintBattery(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintPlayer(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintSong(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintLocalIp(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintPublicIp(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintLocale(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintBreak(&instance))
|
||||
FASTFETCH_TEST_PERFORMANCE(ffPrintColors(&instance))
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#!/bin/env sh
|
||||
rm -rf tests/build/
|
||||
mkdir -p tests/build/
|
||||
cd tests/build/
|
||||
cmake ../..
|
||||
mkdir -p build/
|
||||
cd build
|
||||
cmake ..
|
||||
cmake --build . --target fastfetch-test-performance -j$(nproc)
|
||||
./fastfetch-test-performance "$@"
|
||||
|
||||
+3
-4
@@ -1,7 +1,6 @@
|
||||
#!/bin/env sh
|
||||
rm -rf tests/build/
|
||||
mkdir -p tests/build/
|
||||
cd tests/build/
|
||||
cmake ../..
|
||||
mkdir -p build/
|
||||
cd build
|
||||
cmake ..
|
||||
cmake --build . --target fastfetch-test-strbuf -j$(nproc)
|
||||
./fastfetch-test-strbuf "$@"
|
||||
|
||||
Reference in New Issue
Block a user