]> granicus.if.org Git - sysstat/commitdiff
tapestat: Add non regression tests
authorSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 6 Dec 2019 08:45:53 +0000 (09:45 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Fri, 6 Dec 2019 08:45:53 +0000 (09:45 +0100)
Add non regression tests for tapestat command.
These tests are intended to be run in sysstat's simulation test
environment (use do_test script).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
62 files changed:
systest.c
systest.h
tapestat.c
tapestat.h
tests/04000 [new file with mode: 0644]
tests/04005 [new file with mode: 0644]
tests/04010 [new file with mode: 0644]
tests/04015 [new file with mode: 0644]
tests/04020 [new file with mode: 0644]
tests/04025 [new file with mode: 0644]
tests/04030 [new file with mode: 0644]
tests/04035 [new file with mode: 0644]
tests/04040 [new file with mode: 0644]
tests/04045 [new file with mode: 0644]
tests/04100 [new file with mode: 0644]
tests/04102 [new file with mode: 0644]
tests/04105 [new file with mode: 0644]
tests/04110 [new file with mode: 0644]
tests/04115 [new file with mode: 0644]
tests/04120 [new file with mode: 0644]
tests/TLIST
tests/expected.tapestat [new file with mode: 0644]
tests/expected.tapestat-m [new file with mode: 0644]
tests/expected.tapestat-t [new file with mode: 0644]
tests/expected.tapestat-y [new file with mode: 0644]
tests/expected.tapestat-z [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st0/stats/io_ns [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st0/stats/other_cnt [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st0/stats/read_byte_cnt [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st0/stats/read_cnt [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st0/stats/read_ns [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st0/stats/resid_cnt [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st0/stats/write_byte_cnt [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st0/stats/write_cnt [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st0/stats/write_ns [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st1/stats/io_ns [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st1/stats/other_cnt [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st1/stats/read_byte_cnt [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st1/stats/read_cnt [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st1/stats/read_ns [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st1/stats/resid_cnt [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st1/stats/write_byte_cnt [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st1/stats/write_cnt [new file with mode: 0644]
tests/root1/sys/class/scsi_tape/st1/stats/write_ns [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st0/stats/io_ns [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st0/stats/other_cnt [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st0/stats/read_byte_cnt [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st0/stats/read_cnt [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st0/stats/read_ns [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st0/stats/resid_cnt [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st0/stats/write_byte_cnt [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st0/stats/write_cnt [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st0/stats/write_ns [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st1/stats/io_ns [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st1/stats/other_cnt [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st1/stats/read_byte_cnt [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st1/stats/read_cnt [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st1/stats/read_ns [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st1/stats/resid_cnt [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st1/stats/write_byte_cnt [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st1/stats/write_cnt [new file with mode: 0644]
tests/root2/sys/class/scsi_tape/st1/stats/write_ns [new file with mode: 0644]

index 4c762dd19273dad8ac4b2133f77180cb9d16fe6e..fdf32b34e6aa3852c140b0f39bff37f16924c1dc 100644 (file)
--- a/systest.c
+++ b/systest.c
@@ -31,6 +31,7 @@
 #include <sys/stat.h>
 #include <sys/utsname.h>
 #include <sys/statvfs.h>
+#include <sys/time.h>
 
 #include "systest.h"
 
@@ -54,6 +55,21 @@ void get_unix_time(time_t *t)
        *t = __unix_time;
 }
 
+/*
+ ***************************************************************************
+ * Test mode: Get time of the day using __unix_time variable contents.
+ *
+ * OUT:
+ * @tv Number of seconds since the Epoch.
+ ***************************************************************************
+ */
+void get_day_time(struct timeval *tv)
+{
+       __unix_time += interval;
+       tv->tv_sec = __unix_time;
+       tv->tv_usec = 0;
+}
+
 /*
  ***************************************************************************
  * Test mode: Send bogus information about current kernel.
index 6407a12c9ed7f7bc340a412d6bae626ef2cccabd..10f30ce5dc4b4a2925f7ac4ce2aa61910d790702 100644 (file)
--- a/systest.h
+++ b/systest.h
 /* Test mode: Use alternate files and syscalls */
 #ifdef TEST
 
-#define PRE            "./tests/root"
-#define __time(m)      get_unix_time(m)
-#define __uname(m)     get_uname(m)
-#define __statvfs(m,n) get_fs_stat(m,n)
-#define __getenv(m)    get_env_value(m)
+#define PRE                    "./tests/root"
+#define __time(m)              get_unix_time(m)
+#define __uname(m)             get_uname(m)
+#define __statvfs(m,n)         get_fs_stat(m,n)
+#define __getenv(m)            get_env_value(m)
 #define __alarm(m)
-#define __pause()      next_time_step()
-#define __stat(m,n)    virtual_stat(m,n)
-#define __opendir(m)   open_list(m)
-#define __readdir(m)   read_list(m)
-#define __closedir(m)  close_list(m)
-#define __realpath(m,n)        get_realname(m,n)
+#define __pause()              next_time_step()
+#define __stat(m,n)            virtual_stat(m,n)
+#define __opendir(m)           open_list(m)
+#define __readdir(m)           read_list(m)
+#define __closedir(m)          close_list(m)
+#define __realpath(m,n)                get_realname(m,n)
+#define __gettimeofday(m,n)    get_day_time(m)
 
 #define ROOTDIR                "./tests/root"
 #define ROOTFILE       "root"
 
 #define PRE    ""
 
-#define __time(m)      time(m)
-#define __uname(m)     uname(m)
-#define __statvfs(m,n) statvfs(m,n)
-#define __getenv(m)    getenv(m)
-#define __alarm(m)     alarm(m)
-#define __pause()      pause()
-#define __stat(m,n)    stat(m,n)
-#define __opendir(m)   opendir(m)
-#define __readdir(m)   readdir(m)
-#define __closedir(m)  closedir(m)
-#define __realpath(m,n)        realpath(m,n)
+#define __time(m)              time(m)
+#define __uname(m)             uname(m)
+#define __statvfs(m,n)         statvfs(m,n)
+#define __getenv(m)            getenv(m)
+#define __alarm(m)             alarm(m)
+#define __pause()              pause()
+#define __stat(m,n)            stat(m,n)
+#define __opendir(m)           opendir(m)
+#define __readdir(m)           readdir(m)
+#define __closedir(m)          closedir(m)
+#define __realpath(m,n)                realpath(m,n)
+#define __gettimeofday(m,n)    gettimeofday(m,n)
 
 #endif
 
@@ -61,6 +63,8 @@
 #ifdef TEST
 void close_list
        (DIR *);
+void get_day_time
+       (struct timeval *);
 char *get_env_value
        (const char *);
 int get_fs_stat
index 56620a44b230b2dfe8698e0497c729a51da7127e..f3e7c17ac4168f6cc8a10976d89c72e623004884 100644 (file)
@@ -47,7 +47,6 @@
 
 #include "version.h"
 #include "tapestat.h"
-#include "common.h"
 #include "rd_stats.h"
 #include "count.h"
 
@@ -299,7 +298,7 @@ void tape_gather_initial_stats(void)
                tape_new_stats[i].valid = TAPE_STATS_VALID;
                tape_old_stats[i].valid = TAPE_STATS_VALID;
 
-               gettimeofday(&tape_old_stats[i].tv, NULL);
+               __gettimeofday(&tape_old_stats[i].tv, NULL);
 
                tape_new_stats[i].tv.tv_sec = tape_old_stats[i].tv.tv_sec;
                tape_new_stats[i].tv.tv_usec = tape_old_stats[i].tv.tv_usec;
@@ -346,7 +345,7 @@ void tape_get_updated_stats(void)
                 * to open a file gets the tape drive marked invalid.
                 */
                tape_new_stats[i].valid = TAPE_STATS_VALID;
-               gettimeofday(&tape_new_stats[i].tv, NULL);
+               __gettimeofday(&tape_new_stats[i].tv, NULL);
 
                TAPE_STAT_FILE_VAL(TAPE_STAT_PATH "read_ns", read_time)
                TAPE_STAT_FILE_VAL(TAPE_STAT_PATH "write_ns", write_time)
@@ -407,7 +406,7 @@ void tape_calc_one_stats(struct calc_stats *stats, int i)
 
        /* If duration is zero we need to calculate the ms since boot time */
        if (duration == 0) {
-               fp = fopen("/proc/uptime", "r");
+               fp = fopen(UPTIME, "r");
 
                /*
                 * Get uptime from /proc/uptime and if we can't then just set duration to
@@ -591,7 +590,7 @@ void rw_tape_stat_loop(long int count, struct tm *rectime)
                }
 
                if (count) {
-                       pause();
+                       __pause();
                }
        }
        while (count);
@@ -705,7 +704,7 @@ int main(int argc, char **argv)
        get_localtime(&rectime, 0);
 
        /* Get system name, release number and hostname */
-       uname(&header);
+       __uname(&header);
        if (print_gal_header(&rectime, header.sysname, header.release,
                             header.nodename, header.machine, cpu_nr,
                             PLAIN_OUTPUT)) {
index 2e23ab571bb96e632eaf4dc663d8f7cc2ea01653..b611910dbe8ff91668e7dbba725f38489c758618 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef _TAPESTAT_H
 #define _TAPESTAT_H
 
+#include "common.h"
+
 /* T_: tapestat - D_: Display - F_: Flag */
 #define T_D_TIMESTAMP          0x00001
 #define T_D_KILOBYTES          0x00002
@@ -29,8 +31,8 @@
 #define TAPE_STATS_VALID 1
 #define TAPE_STATS_INVALID 0
 
-#define SYSFS_CLASS_TAPE_DIR "/sys/class/scsi_tape"
-#define TAPE_STAT_PATH "/sys/class/scsi_tape/st%i/stats/"
+#define SYSFS_CLASS_TAPE_DIR   PRE "/sys/class/scsi_tape"
+#define TAPE_STAT_PATH         PRE "/sys/class/scsi_tape/st%i/stats/"
 
 #define TAPE_STAT_FILE_VAL(A, B)                                       \
        snprintf(filename, MAXPATHLEN, A, i);                           \
diff --git a/tests/04000 b/tests/04000
new file mode 100644 (file)
index 0000000..eebee13
--- /dev/null
@@ -0,0 +1,3 @@
+rm -f tests/root
+ln -s root1 tests/root
+LC_ALL=C TZ=GMT ./tapestat > tests/out.tapestat.tmp
diff --git a/tests/04005 b/tests/04005
new file mode 100644 (file)
index 0000000..f8ce214
--- /dev/null
@@ -0,0 +1 @@
+diff -u tests/out.tapestat.tmp tests/expected.tapestat
diff --git a/tests/04010 b/tests/04010
new file mode 100644 (file)
index 0000000..9b8a341
--- /dev/null
@@ -0,0 +1,3 @@
+rm -f tests/root
+ln -s root1 tests/root
+LC_ALL=C TZ=GMT ./tapestat -m 1 2 > tests/out.tapestat-m.tmp
diff --git a/tests/04015 b/tests/04015
new file mode 100644 (file)
index 0000000..6720393
--- /dev/null
@@ -0,0 +1 @@
+diff -u tests/out.tapestat-m.tmp tests/expected.tapestat-m
diff --git a/tests/04020 b/tests/04020
new file mode 100644 (file)
index 0000000..061e917
--- /dev/null
@@ -0,0 +1,3 @@
+rm -f tests/root
+ln -s root1 tests/root
+LC_ALL=C TZ=GMT ./tapestat --human -y 1 2 > tests/out.tapestat-y.tmp
diff --git a/tests/04025 b/tests/04025
new file mode 100644 (file)
index 0000000..94de941
--- /dev/null
@@ -0,0 +1 @@
+diff -u tests/out.tapestat-y.tmp tests/expected.tapestat-y
diff --git a/tests/04030 b/tests/04030
new file mode 100644 (file)
index 0000000..4271ec1
--- /dev/null
@@ -0,0 +1,3 @@
+rm -f tests/root
+ln -s root1 tests/root
+LC_ALL=C TZ=GMT ./tapestat -z 1 2 > tests/out.tapestat-z.tmp
diff --git a/tests/04035 b/tests/04035
new file mode 100644 (file)
index 0000000..21cddf2
--- /dev/null
@@ -0,0 +1 @@
+diff -u tests/out.tapestat-z.tmp tests/expected.tapestat-z
diff --git a/tests/04040 b/tests/04040
new file mode 100644 (file)
index 0000000..10af0d2
--- /dev/null
@@ -0,0 +1,3 @@
+rm -f tests/root
+ln -s root1 tests/root
+LC_ALL=C TZ=GMT ./tapestat -t 1 2 > tests/out.tapestat-t.tmp
diff --git a/tests/04045 b/tests/04045
new file mode 100644 (file)
index 0000000..29f0f6a
--- /dev/null
@@ -0,0 +1 @@
+diff -u tests/out.tapestat-t.tmp tests/expected.tapestat-t
diff --git a/tests/04100 b/tests/04100
new file mode 100644 (file)
index 0000000..5663e6d
--- /dev/null
@@ -0,0 +1,3 @@
+rm -f tests/root
+ln -s root4 tests/root
+LC_ALL=C TZ=GMT ./tapestat 1 2 2>&1 | grep "No tape drives" >/dev/null
diff --git a/tests/04102 b/tests/04102
new file mode 100644 (file)
index 0000000..a980b6f
--- /dev/null
@@ -0,0 +1 @@
+LC_ALL=C ./tapestat -1 2>&1 | grep "Usage:" >/dev/null
diff --git a/tests/04105 b/tests/04105
new file mode 100644 (file)
index 0000000..7332577
--- /dev/null
@@ -0,0 +1 @@
+LC_ALL=C ./tapestat 0 0 2>&1 | grep "Usage:" >/dev/null
diff --git a/tests/04110 b/tests/04110
new file mode 100644 (file)
index 0000000..4cd5a83
--- /dev/null
@@ -0,0 +1 @@
+LC_ALL=C ./tapestat 0 2 2>&1 | grep "Usage:" >/dev/null
diff --git a/tests/04115 b/tests/04115
new file mode 100644 (file)
index 0000000..bfb2251
--- /dev/null
@@ -0,0 +1 @@
+LC_ALL=C ./tapestat 2 0 2>&1 | grep "Usage:" >/dev/null
diff --git a/tests/04120 b/tests/04120
new file mode 100644 (file)
index 0000000..a487ba4
--- /dev/null
@@ -0,0 +1 @@
+LC_ALL=C ./tapestat 2 2 2 2>&1 | grep "Usage:" >/dev/null
index 480ba72297cfc0b89105a21135a4dbef1bf8c3f4..222f4bcfd18dd5c7f43cb95973c4ed34d178058d 100644 (file)
@@ -453,5 +453,25 @@ NOTES:
 03130  LC_ALL=C ./mpstat -N -1 2>&1 | grep "Usage:" >/dev/null
 03135  LC_ALL=C ./mpstat -P 16 2>&1 | grep "Usage:" >/dev/null
 
+=====  tapestat: Basic tests
+04000  LC_ALL=C TZ=GMT ./tapestat > tests/out.tapestat.tmp
+04005  diff -u tests/out.tapestat.tmp tests/expected.tapestat
+04010  LC_ALL=C TZ=GMT ./tapestat -m 1 2 > tests/out.tapestat-m.tmp
+04015  diff -u tests/out.tapestat-m.tmp tests/expected.tapestat-m
+04020  LC_ALL=C TZ=GMT ./tapestat --human -y 1 2 > tests/out.tapestat-y.tmp
+04025  diff -u tests/out.tapestat-y.tmp tests/expected.tapestat-y
+04030  LC_ALL=C TZ=GMT ./tapestat -z 1 2 > tests/out.tapestat-z.tmp
+04035  diff -u tests/out.tapestat-z.tmp tests/expected.tapestat-z
+04040  LC_ALL=C TZ=GMT ./tapestat -t 1 2 > tests/out.tapestat-t.tmp
+04045  diff -u tests/out.tapestat-t.tmp tests/expected.tapestat-t
+
+=====  Tests tapestat error cases
+04100  LC_ALL=C TZ=GMT ./tapestat 1 2 2>&1 | grep "No tape drives" >/dev/null
+04102  LC_ALL=C ./tapestat -1 2>&1 | grep "Usage:" >/dev/null
+04105  LC_ALL=C ./tapestat 0 0 2>&1 | grep "Usage:" >/dev/null
+04110  LC_ALL=C ./tapestat 0 2 2>&1 | grep "Usage:" >/dev/null
+04115  LC_ALL=C ./tapestat 2 0 2>&1 | grep "Usage:" >/dev/null
+04120  LC_ALL=C ./tapestat 2 2 2 2>&1 | grep "Usage:" >/dev/null
+
 =====  Tests to be done at the very end
 09900  grep -i FIXME *.c *.h *.in && exit 1 || exit 0
diff --git a/tests/expected.tapestat b/tests/expected.tapestat
new file mode 100644 (file)
index 0000000..3ad842a
--- /dev/null
@@ -0,0 +1,6 @@
+Linux 1.2.3-TEST (SYSSTAT.TEST)        01/01/70        _x86_64_        (8 CPU)
+
+Tape:     r/s     w/s   kB_read/s   kB_wrtn/s  %Rd  %Wr  %Oa    Rs/s    Ot/s
+st0         1     139          24        2673    0    4    6       1       0
+st1         1     139          24        2673    0    4    6       1       0
+
diff --git a/tests/expected.tapestat-m b/tests/expected.tapestat-m
new file mode 100644 (file)
index 0000000..854f61e
--- /dev/null
@@ -0,0 +1,10 @@
+Linux 1.2.3-TEST (SYSSTAT.TEST)        01/01/70        _x86_64_        (8 CPU)
+
+Tape:     r/s     w/s   MB_read/s   MB_wrtn/s  %Rd  %Wr  %Oa    Rs/s    Ot/s
+st0         1     139           0           2    0    4    6       1       0
+st1         1     139           0           2    0    4    6       1       0
+
+Tape:     r/s     w/s   MB_read/s   MB_wrtn/s  %Rd  %Wr  %Oa    Rs/s    Ot/s
+st0         3      26           0           0    0    0    0       6       0
+st1         0       0           0           0    0    0    0       0       0
+
diff --git a/tests/expected.tapestat-t b/tests/expected.tapestat-t
new file mode 100644 (file)
index 0000000..57577b4
--- /dev/null
@@ -0,0 +1,12 @@
+Linux 1.2.3-TEST (SYSSTAT.TEST)        01/01/70        _x86_64_        (8 CPU)
+
+01/01/70 00:00:02
+Tape:     r/s     w/s   kB_read/s   kB_wrtn/s  %Rd  %Wr  %Oa    Rs/s    Ot/s
+st0         1     139          24        2673    0    4    6       1       0
+st1         1     139          24        2673    0    4    6       1       0
+
+01/01/70 00:00:05
+Tape:     r/s     w/s   kB_read/s   kB_wrtn/s  %Rd  %Wr  %Oa    Rs/s    Ot/s
+st0         3      26           0           0    0    0    0       6       0
+st1         0       0           0           0    0    0    0       0       0
+
diff --git a/tests/expected.tapestat-y b/tests/expected.tapestat-y
new file mode 100644 (file)
index 0000000..ad6dbe0
--- /dev/null
@@ -0,0 +1,8 @@
+Linux 1.2.3-TEST (SYSSTAT.TEST)        01/01/70        _x86_64_        (8 CPU)
+
+Tape:     r/s     w/s   kB_read/s   kB_wrtn/s  %Rd  %Wr  %Oa    Rs/s    Ot/s
+st0         3      26        0.0k        0.0k   0%   0%   0%       6       0
+st1         0       0        0.0k        0.0k   0%   0%   0%       0       0
+
+Tape:     r/s     w/s   kB_read/s   kB_wrtn/s  %Rd  %Wr  %Oa    Rs/s    Ot/s
+
diff --git a/tests/expected.tapestat-z b/tests/expected.tapestat-z
new file mode 100644 (file)
index 0000000..4f1925a
--- /dev/null
@@ -0,0 +1,9 @@
+Linux 1.2.3-TEST (SYSSTAT.TEST)        01/01/70        _x86_64_        (8 CPU)
+
+Tape:     r/s     w/s   kB_read/s   kB_wrtn/s  %Rd  %Wr  %Oa    Rs/s    Ot/s
+st0         1     139          24        2673    0    4    6       1       0
+st1         1     139          24        2673    0    4    6       1       0
+
+Tape:     r/s     w/s   kB_read/s   kB_wrtn/s  %Rd  %Wr  %Oa    Rs/s    Ot/s
+st0         3      26           0           0    0    0    0       6       0
+
diff --git a/tests/root1/sys/class/scsi_tape/st0/stats/io_ns b/tests/root1/sys/class/scsi_tape/st0/stats/io_ns
new file mode 100644 (file)
index 0000000..1e8ba55
--- /dev/null
@@ -0,0 +1 @@
+454045641944
diff --git a/tests/root1/sys/class/scsi_tape/st0/stats/other_cnt b/tests/root1/sys/class/scsi_tape/st0/stats/other_cnt
new file mode 100644 (file)
index 0000000..4099407
--- /dev/null
@@ -0,0 +1 @@
+23
diff --git a/tests/root1/sys/class/scsi_tape/st0/stats/read_byte_cnt b/tests/root1/sys/class/scsi_tape/st0/stats/read_byte_cnt
new file mode 100644 (file)
index 0000000..2719199
--- /dev/null
@@ -0,0 +1 @@
+183060480
diff --git a/tests/root1/sys/class/scsi_tape/st0/stats/read_cnt b/tests/root1/sys/class/scsi_tape/st0/stats/read_cnt
new file mode 100644 (file)
index 0000000..f0539a2
--- /dev/null
@@ -0,0 +1 @@
+8939
diff --git a/tests/root1/sys/class/scsi_tape/st0/stats/read_ns b/tests/root1/sys/class/scsi_tape/st0/stats/read_ns
new file mode 100644 (file)
index 0000000..1398170
--- /dev/null
@@ -0,0 +1 @@
+8746055278
diff --git a/tests/root1/sys/class/scsi_tape/st0/stats/resid_cnt b/tests/root1/sys/class/scsi_tape/st0/stats/resid_cnt
new file mode 100644 (file)
index 0000000..b0bfa3f
--- /dev/null
@@ -0,0 +1 @@
+8937
diff --git a/tests/root1/sys/class/scsi_tape/st0/stats/write_byte_cnt b/tests/root1/sys/class/scsi_tape/st0/stats/write_byte_cnt
new file mode 100644 (file)
index 0000000..7b0dc36
--- /dev/null
@@ -0,0 +1 @@
+19691612160
diff --git a/tests/root1/sys/class/scsi_tape/st0/stats/write_cnt b/tests/root1/sys/class/scsi_tape/st0/stats/write_cnt
new file mode 100644 (file)
index 0000000..0121d6f
--- /dev/null
@@ -0,0 +1 @@
+1006305
diff --git a/tests/root1/sys/class/scsi_tape/st0/stats/write_ns b/tests/root1/sys/class/scsi_tape/st0/stats/write_ns
new file mode 100644 (file)
index 0000000..89a3056
--- /dev/null
@@ -0,0 +1 @@
+333563196949
diff --git a/tests/root1/sys/class/scsi_tape/st1/stats/io_ns b/tests/root1/sys/class/scsi_tape/st1/stats/io_ns
new file mode 100644 (file)
index 0000000..1e8ba55
--- /dev/null
@@ -0,0 +1 @@
+454045641944
diff --git a/tests/root1/sys/class/scsi_tape/st1/stats/other_cnt b/tests/root1/sys/class/scsi_tape/st1/stats/other_cnt
new file mode 100644 (file)
index 0000000..4099407
--- /dev/null
@@ -0,0 +1 @@
+23
diff --git a/tests/root1/sys/class/scsi_tape/st1/stats/read_byte_cnt b/tests/root1/sys/class/scsi_tape/st1/stats/read_byte_cnt
new file mode 100644 (file)
index 0000000..2719199
--- /dev/null
@@ -0,0 +1 @@
+183060480
diff --git a/tests/root1/sys/class/scsi_tape/st1/stats/read_cnt b/tests/root1/sys/class/scsi_tape/st1/stats/read_cnt
new file mode 100644 (file)
index 0000000..f0539a2
--- /dev/null
@@ -0,0 +1 @@
+8939
diff --git a/tests/root1/sys/class/scsi_tape/st1/stats/read_ns b/tests/root1/sys/class/scsi_tape/st1/stats/read_ns
new file mode 100644 (file)
index 0000000..1398170
--- /dev/null
@@ -0,0 +1 @@
+8746055278
diff --git a/tests/root1/sys/class/scsi_tape/st1/stats/resid_cnt b/tests/root1/sys/class/scsi_tape/st1/stats/resid_cnt
new file mode 100644 (file)
index 0000000..b0bfa3f
--- /dev/null
@@ -0,0 +1 @@
+8937
diff --git a/tests/root1/sys/class/scsi_tape/st1/stats/write_byte_cnt b/tests/root1/sys/class/scsi_tape/st1/stats/write_byte_cnt
new file mode 100644 (file)
index 0000000..7b0dc36
--- /dev/null
@@ -0,0 +1 @@
+19691612160
diff --git a/tests/root1/sys/class/scsi_tape/st1/stats/write_cnt b/tests/root1/sys/class/scsi_tape/st1/stats/write_cnt
new file mode 100644 (file)
index 0000000..0121d6f
--- /dev/null
@@ -0,0 +1 @@
+1006305
diff --git a/tests/root1/sys/class/scsi_tape/st1/stats/write_ns b/tests/root1/sys/class/scsi_tape/st1/stats/write_ns
new file mode 100644 (file)
index 0000000..89a3056
--- /dev/null
@@ -0,0 +1 @@
+333563196949
diff --git a/tests/root2/sys/class/scsi_tape/st0/stats/io_ns b/tests/root2/sys/class/scsi_tape/st0/stats/io_ns
new file mode 100644 (file)
index 0000000..a54398e
--- /dev/null
@@ -0,0 +1 @@
+454045651944
diff --git a/tests/root2/sys/class/scsi_tape/st0/stats/other_cnt b/tests/root2/sys/class/scsi_tape/st0/stats/other_cnt
new file mode 100644 (file)
index 0000000..7273c0f
--- /dev/null
@@ -0,0 +1 @@
+25
diff --git a/tests/root2/sys/class/scsi_tape/st0/stats/read_byte_cnt b/tests/root2/sys/class/scsi_tape/st0/stats/read_byte_cnt
new file mode 100644 (file)
index 0000000..2afead0
--- /dev/null
@@ -0,0 +1 @@
+183060580
diff --git a/tests/root2/sys/class/scsi_tape/st0/stats/read_cnt b/tests/root2/sys/class/scsi_tape/st0/stats/read_cnt
new file mode 100644 (file)
index 0000000..9b4b495
--- /dev/null
@@ -0,0 +1 @@
+8949
diff --git a/tests/root2/sys/class/scsi_tape/st0/stats/read_ns b/tests/root2/sys/class/scsi_tape/st0/stats/read_ns
new file mode 100644 (file)
index 0000000..76e7c66
--- /dev/null
@@ -0,0 +1 @@
+8746065278
diff --git a/tests/root2/sys/class/scsi_tape/st0/stats/resid_cnt b/tests/root2/sys/class/scsi_tape/st0/stats/resid_cnt
new file mode 100644 (file)
index 0000000..00eaa6a
--- /dev/null
@@ -0,0 +1 @@
+8957
diff --git a/tests/root2/sys/class/scsi_tape/st0/stats/write_byte_cnt b/tests/root2/sys/class/scsi_tape/st0/stats/write_byte_cnt
new file mode 100644 (file)
index 0000000..705e5d8
--- /dev/null
@@ -0,0 +1 @@
+19691613160
diff --git a/tests/root2/sys/class/scsi_tape/st0/stats/write_cnt b/tests/root2/sys/class/scsi_tape/st0/stats/write_cnt
new file mode 100644 (file)
index 0000000..c7a72d7
--- /dev/null
@@ -0,0 +1 @@
+1006385
diff --git a/tests/root2/sys/class/scsi_tape/st0/stats/write_ns b/tests/root2/sys/class/scsi_tape/st0/stats/write_ns
new file mode 100644 (file)
index 0000000..f72c325
--- /dev/null
@@ -0,0 +1 @@
+333563197949
diff --git a/tests/root2/sys/class/scsi_tape/st1/stats/io_ns b/tests/root2/sys/class/scsi_tape/st1/stats/io_ns
new file mode 100644 (file)
index 0000000..1e8ba55
--- /dev/null
@@ -0,0 +1 @@
+454045641944
diff --git a/tests/root2/sys/class/scsi_tape/st1/stats/other_cnt b/tests/root2/sys/class/scsi_tape/st1/stats/other_cnt
new file mode 100644 (file)
index 0000000..4099407
--- /dev/null
@@ -0,0 +1 @@
+23
diff --git a/tests/root2/sys/class/scsi_tape/st1/stats/read_byte_cnt b/tests/root2/sys/class/scsi_tape/st1/stats/read_byte_cnt
new file mode 100644 (file)
index 0000000..2719199
--- /dev/null
@@ -0,0 +1 @@
+183060480
diff --git a/tests/root2/sys/class/scsi_tape/st1/stats/read_cnt b/tests/root2/sys/class/scsi_tape/st1/stats/read_cnt
new file mode 100644 (file)
index 0000000..f0539a2
--- /dev/null
@@ -0,0 +1 @@
+8939
diff --git a/tests/root2/sys/class/scsi_tape/st1/stats/read_ns b/tests/root2/sys/class/scsi_tape/st1/stats/read_ns
new file mode 100644 (file)
index 0000000..1398170
--- /dev/null
@@ -0,0 +1 @@
+8746055278
diff --git a/tests/root2/sys/class/scsi_tape/st1/stats/resid_cnt b/tests/root2/sys/class/scsi_tape/st1/stats/resid_cnt
new file mode 100644 (file)
index 0000000..b0bfa3f
--- /dev/null
@@ -0,0 +1 @@
+8937
diff --git a/tests/root2/sys/class/scsi_tape/st1/stats/write_byte_cnt b/tests/root2/sys/class/scsi_tape/st1/stats/write_byte_cnt
new file mode 100644 (file)
index 0000000..7b0dc36
--- /dev/null
@@ -0,0 +1 @@
+19691612160
diff --git a/tests/root2/sys/class/scsi_tape/st1/stats/write_cnt b/tests/root2/sys/class/scsi_tape/st1/stats/write_cnt
new file mode 100644 (file)
index 0000000..0121d6f
--- /dev/null
@@ -0,0 +1 @@
+1006305
diff --git a/tests/root2/sys/class/scsi_tape/st1/stats/write_ns b/tests/root2/sys/class/scsi_tape/st1/stats/write_ns
new file mode 100644 (file)
index 0000000..89a3056
--- /dev/null
@@ -0,0 +1 @@
+333563196949