Added a docstring explaining how to use test_runner.py
authorTimothy Manning <codedraftsman@gmail.com>
Tue, 27 Jul 2021 06:11:58 +0000 (18:11 +1200)
committerTimothy Manning <codedraftsman@gmail.com>
Tue, 27 Jul 2021 06:11:58 +0000 (18:11 +1200)
Also deleted the old Makefile based test runner.
Signed-off-by: Timothy Manning <codedraftsman@gmail.com>
direct/test-framework/unit_tests/Makefile [deleted file]
direct/test-framework/unit_tests/test_runner.py

diff --git a/direct/test-framework/unit_tests/Makefile b/direct/test-framework/unit_tests/Makefile
deleted file mode 100644 (file)
index c2b46e3..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-
-TEST_DIR = quick_tests \
-       is_yaffs_working_tests
-       
-all:
-       $(foreach var,$(TEST_DIR), $(MAKE) -j -C $(var);)
-
-phony. test:
-       $(foreach var,$(TEST_DIR), $(MAKE) -j -C $(var) test;)
-       
-phony. clean:
-       $(foreach var,$(TEST_DIR), $(MAKE) -j -C $(var) clean;)
\ No newline at end of file
index a8af075afeff4bad06c03730eed786d04d657767..77bab485a5b559d5de49974603d21b05f24cd2af 100755 (executable)
@@ -1,14 +1,20 @@
 #!/usr/bin/env python3
 """
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- *
- * Copyright (C) 2002-2021 Aleph One Ltd.
- *
- * Created by Timothy Manning <timothy@yaffs.net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
+test_runner.py
+This file runs all of the yaffs unit tests and aggrates the outputs.
+
+To run this file you can use:
+$ python3 test_runner.py
+
+or 
+
+$ ./test_runner.py
+
+To add a new test to this test runner, add the test dir path to the
+test_list below. Inside that folder there need to be a makefile with
+a "test" target that compiles and runs the test script. I.e. "make test" 
+is called in every test directory.
 """