Update of /cvsroot/libsysio/libsysio/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv20431/libsysio/tests
Modified Files:
Makefile.am README test_all.pl
Log Message:
Making "make check" work for executing the basic sanity tests
Index: Makefile.am
===================================================================
RCS file: /cvsroot/libsysio/libsysio/tests/Makefile.am,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -b -B -p -r1.11 -r1.12
--- Makefile.am 14 Aug 2003 21:16:33 -0000 1.11
+++ Makefile.am 18 Aug 2003 15:52:20 -0000 1.12
@@ -47,7 +47,13 @@ CMNSRC=drv_init_all.c drv_data.c
BUILT_SOURCES=drv_data.c
check_PROGRAMS=test_driver
+if TEST_ALPHA_ARG
+TESTS_ENVIRONMENT=IS_ALPHA=yes
+else
+TESTS_ENVIRONMENT=IS_ALPHA=no
+endif
TESTS=test_all.pl
+
CFL=$(AM_CFLAGS) $(AM_CPPFLAGS) \
$(NATIVE_DRIVER_CFLAGS) $(INCORE_DRIVER_CFLAGS) \
$(STDFD_DEV_CFLAGS) $(YOD_DRIVER_CFLAGS)
Index: README
===================================================================
RCS file: /cvsroot/libsysio/libsysio/tests/README,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -b -B -p -r1.2 -r1.3
--- README 14 Aug 2003 21:16:33 -0000 1.2
+++ README 18 Aug 2003 15:52:20 -0000 1.3
@@ -1,8 +1,12 @@
-To run the tests, just do ./test_all.pl (at some point I will
-integrate that into the build environment). This will run the 6
-basic functionality tests (explained below) and report the total
-number of passes and failures. This is not currently working on
-alpha/cplant architectures, however.
+To run the tests, just do a "make check" in the tests subdirectory.
+On the CPlant alpha systems, 3 of the 7 tests in test_all.pl are excluded
+due to known problems (problems as of the date of writing this; they
+may have since been fixed). You can also manually run the individual
+tests or ./test_all.pl. If you are running on CPlant, you need to
+run test_all.pl with a -alpha argument. Either "make check" or
+test_all.pl will run the 7 basic functionality tests (explained
+below) and report the total number of passes and failures.
+number of passes and failures.
-----------------------SCRIPTS---------------------------------
Index: test_all.pl
===================================================================
RCS file: /cvsroot/libsysio/libsysio/tests/test_all.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -b -B -p -r1.2 -r1.3
--- test_all.pl 14 Aug 2003 21:16:33 -0000 1.2
+++ test_all.pl 18 Aug 2003 15:52:20 -0000 1.3
@@ -11,11 +11,16 @@ my $alpha_arg = "";
my $is_broke = 1; # Don't test certain areas known to not work on Cplant
if ((@ARGV > 0) && ($ARGV[0] eq "-alpha")) {
$alpha_arg = "-alpha";
+} else {
+ my $alpha_env = $ENV{"IS_ALPHA"};
+ # If there is no command line arg, check the environment vars
+ if ($alpha_env eq "yes") {
+ $alpha_arg = "-alpha";
+ }
}
-
# Will use this directory...
-system("mkdir ./tmp_dir");
+system("mkdir -p ./tmp_dir");
my $failures = 0;
my $success = 0;
@@ -124,3 +129,5 @@ print "$failures tests failed and $succe
# cleanup
system(`rm -rf tmp_dir`);
+
+exit $failures;
|