Skip to content

Commit

Permalink
Merge pull request #10 from garlick/rel_23
Browse files Browse the repository at this point in the history
build system enhancements and prep for 1.2.23 release
  • Loading branch information
elgeoman authored Dec 10, 2018
2 parents 35cae97 + 9d77d4d commit cc01569
Show file tree
Hide file tree
Showing 11 changed files with 80 additions and 51 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Mark Grondona
Tim Randles
Jim Silva
Cameron Harr
Phil Regier
7 changes: 0 additions & 7 deletions META

This file was deleted.

11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
all:
@echo Nothing to do

clean:
rm -f nodediag-*.tar.gz

dist:
@scripts/mkdist

check:
cd test && ../scripts/runtests
13 changes: 13 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
=========================================================================
Release Notes for nodediag version 1.2.23 06 Dec 2018
=========================================================================

* Allow alternate interface dev name to be specified for network.t test
(Phil Regier)

* Add 'make dist' and 'make check' targets.

* Ensure failing tests result in nonzero exit code.

* Update Dell T5500 PCI vendor name for Broadcom.

=========================================================================
Release Notes for nodediag version 1.2.22 30 May 2018
=========================================================================
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Nodediag provides an extensible
[TAP](http://testanything.org/wiki/index.php/Main_Page TAP)
[TAP](http://testanything.org/wiki/index.php/Main_Page)
framework for executing node diagnostic checks at system startup.

Tests installed in `/etc/nodediag.d/` are run in parallel by the `nodediag`
Expand Down
6 changes: 3 additions & 3 deletions nodediag.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Name: nodediag
Version:
Release:
Source:
Version: 1.2.23
Release: 1
Source: %{name}-%{version}.tar.gz
License: GPL
Summary: Tests to verify hardware
Group: Applications/Devel
Expand Down
15 changes: 15 additions & 0 deletions scripts/mkdist
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

if test $# -gt 1; then
echo "Usage: mkdist [git-tag]" >&2
exit 1
fi
VERSION=$1
if test -z "$VERSION"; then
VERSION=$(git describe --always | awk '/.*/ {printf "%s",$1; exit}')
fi

echo "Creating ${VERSION}.tar.gz"

git archive --format=tar --prefix=nodediag-${VERSION}/ ${VERSION} \
| gzip >nodediag-${VERSION}.tar.gz
35 changes: 35 additions & 0 deletions scripts/runtests
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash

if ! test -d ../diags; then
echo Must be run within test directory >&2
exit 1
fi

export NODEDIAGDIR=../diags

fail_count=0

for file in */dmidecode; do
platform=$(basename $(dirname $file))
echo $platform: running dmi.t on cached config and dmidecode dump file
export DMIDECODE_DUMP_FILE=$file
export NODEDIAGCONF=$(dirname $file)/dmi.conf
if $NODEDIAGDIR/dmi.t | grep 'not ok'; then
fail_count=$(($fail_count+1))
fi
unset NODEDIAGCONF
done

for file in */lspci; do
platform=$(basename $(dirname $file))
echo $platform: running pci.t on cached config and lspci dump file
export LSPCI_DUMP_FILE=$file
export NODEDIAGCONF=$(dirname $file)/pci*.conf
if $NODEDIAGDIR/pci.t | grep 'not ok'; then
fail_count=$(($fail_count+1))
fi
unset NODEDIAGCONF
done

echo Failed $fail_count tests >&2
test $fail_count -eq 0 || exit 1
2 changes: 0 additions & 2 deletions test/Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion test/T5500/pci.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ DIAG_PCI_SPEED[1]="2.5GT/s"
DIAG_PCI_WIDTH[1]="x16"
#
DIAG_PCI_SLOT[2]="06:00.0"
DIAG_PCI_NAME[2]="Broadcom Corporation NetXtreme BCM5761 Gigabit Ethernet PCIe (rev 10)"
DIAG_PCI_NAME[2]="Broadcom Limited NetXtreme BCM5761 Gigabit Ethernet PCIe (rev 10)"
DIAG_PCI_SPEED[2]="2.5GT/s"
DIAG_PCI_WIDTH[2]="x1"
#
37 changes: 0 additions & 37 deletions test/tconfig

This file was deleted.

0 comments on commit cc01569

Please sign in to comment.