]> granicus.if.org Git - sysstat/commitdiff
Add new regression tests
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 21 Jan 2017 08:30:37 +0000 (09:30 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 21 Jan 2017 08:30:37 +0000 (09:30 +0100)
These tests make sure that sadf can convert a binary data file with an
old format to the up-to-date format, and also that sar can read old
datafiles (which may have been converted or not).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
.gitignore
Makefile.in
tests/009 [new file with mode: 0644]
tests/010 [new file with mode: 0644]
tests/011 [new file with mode: 0644]
tests/012 [new file with mode: 0644]
tests/013 [new file with mode: 0644]
tests/data-10.3.1 [new file with mode: 0644]
tests/data-9.1.6 [new file with mode: 0644]

index ee9602a33b3a16d5648cb5549df842d232fb9b72..5ceb913ce13850dde29b3dd58569c852303ba7a7 100644 (file)
@@ -50,3 +50,4 @@ cifsiostat
 core
 TAGS
 nls/*.gmo
+tests/*.tmp
index 3a85497d72c93c95f431b62efabb405d226f8285..ce7d666e5aab29b29e3db2fef55356fb822292fd 100644 (file)
@@ -285,7 +285,7 @@ nls/sysstat.pot: $(wildcard *.c)
 
 # Phony targets
 .PHONY: clean distclean install install_base install_all uninstall \
-       uninstall_base uninstall_all dist bdist xdist gitdist squeeze
+       uninstall_base uninstall_all dist bdist xdist gitdist squeeze test
 
 install_man: man/sadc.8 man/sar.1 man/sadf.1 man/sa1.8 man/sa2.8 man/sysstat.5
 ifeq ($(INSTALL_DOC),y)
@@ -582,7 +582,7 @@ test: all
        @$(foreach x, $(TESTLIST), $(MAKE) X=$x unit;)
 
 clean:
-       rm -f sadc sar sadf iostat tapestat mpstat pidstat cifsiostat *.o *.a core TAGS
+       rm -f sadc sar sadf iostat tapestat mpstat pidstat cifsiostat *.o *.a core TAGS tests/*.tmp
        find nls -name "*.gmo" -exec rm -f {} \;
 
 almost-distclean: clean nls/sysstat.pot
diff --git a/tests/009 b/tests/009
new file mode 100644 (file)
index 0000000..b533bc4
--- /dev/null
+++ b/tests/009
@@ -0,0 +1 @@
+./sar -C -A -f tests/data-10.3.1 >/dev/null
diff --git a/tests/010 b/tests/010
new file mode 100644 (file)
index 0000000..4eefe28
--- /dev/null
+++ b/tests/010
@@ -0,0 +1 @@
+./sadf -c tests/data-9.1.6 > tests/data-9.1.6.tmp
diff --git a/tests/011 b/tests/011
new file mode 100644 (file)
index 0000000..c0b75a7
--- /dev/null
+++ b/tests/011
@@ -0,0 +1 @@
+./sar -C -A -f tests/data-9.1.6.tmp >/dev/null
diff --git a/tests/012 b/tests/012
new file mode 100644 (file)
index 0000000..db4b09e
--- /dev/null
+++ b/tests/012
@@ -0,0 +1 @@
+./sadf -c tests/data-10.3.1 > tests/data-10.3.1.tmp
diff --git a/tests/013 b/tests/013
new file mode 100644 (file)
index 0000000..ae73bf2
--- /dev/null
+++ b/tests/013
@@ -0,0 +1 @@
+./sar -C -A -f tests/data-10.3.1.tmp >/dev/null
diff --git a/tests/data-10.3.1 b/tests/data-10.3.1
new file mode 100644 (file)
index 0000000..8305954
Binary files /dev/null and b/tests/data-10.3.1 differ
diff --git a/tests/data-9.1.6 b/tests/data-9.1.6
new file mode 100644 (file)
index 0000000..648c98d
Binary files /dev/null and b/tests/data-9.1.6 differ