-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pmem#5655 from grom72/ci-env-show
test: print out build system version
- Loading branch information
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# Copyright 2023, Intel Corporation | ||
|
||
# | ||
# get-system-info.sh - Script for printing system info | ||
# | ||
|
||
function system_info { | ||
echo "********** system_info **********" | ||
cat /etc/os-release | grep -oP "PRETTY_NAME=\K.*" | ||
uname -r | ||
echo "libndctl: $(pkg-config --modversion libndctl || echo 'libndctl not found')" | ||
echo "valgrind: $(pkg-config --modversion valgrind || echo 'valgrind not found')" | ||
echo "*************** installed-packages ***************" | ||
# Instructions below will return some minor errors, as they are dependent on the Linux distribution. | ||
zypper se --installed-only 2>/dev/null || true | ||
apt list --installed 2>/dev/null || true | ||
yum list installed 2>/dev/null || true | ||
echo "**********/proc/cmdline**********" | ||
cat /proc/cmdline | ||
echo "**********/proc/modules**********" | ||
cat /proc/modules | ||
echo "**********/proc/cpuinfo**********" | ||
cat /proc/cpuinfo | ||
echo "**********/proc/meminfo**********" | ||
cat /proc/meminfo | ||
echo "**********/proc/swaps**********" | ||
cat /proc/swaps | ||
echo "**********/proc/version**********" | ||
cat /proc/version | ||
echo "**********check-updates**********" | ||
# Instructions below will return some minor errors, as they are dependent on the Linux distribution. | ||
zypper list-updates 2>/dev/null || true | ||
apt-get update 2>/dev/null || true | ||
apt upgrade --dry-run 2>/dev/null || true | ||
dnf check-update 2>/dev/null || true | ||
echo "**********list-enviroment**********" | ||
env | ||
echo "******list-build-system-versions*******" | ||
gcc --version 2>/dev/null || true | ||
clang --version 2>/dev/null || true | ||
make --version 2>/dev/null || true | ||
} | ||
|
||
# Call the function above to print system info. | ||
system_info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters