forked from pool/shunit2
b8b880c03a
- Update to version 2.1.7: * Colorized output * shUnit2 no longer exits with an 'OK' result if there were syntax errors * changed license to Apache 2.0 - Update to version 2.1.8: * Users can now define a custom prefix for test function names (SHUNIT_TEST_PREFIX) * Syntax errors in functions are now treated as test failures * Test now fail when setup() or tearDown() fail * Add assertContains, assertNotContains, failFound and failNotFound functions - delete patches shunit2-examples.diff and shunit2-gen_test_results.sh.diff, not needed - delete source file lgpl-2.1.txt - do not install test scripts - enable package testing with script test_runner - provide compat symlink from /usr/share/shunit2/shunit2 to /usr/share/shunit2/src/shunit2 - source /usr/bin/shunit2 in examples, so no additional path settings are needed to use it OBS-URL: https://build.opensuse.org/package/show/devel:tools/shunit2?expand=0&rev=9
46 lines
1.4 KiB
Diff
46 lines
1.4 KiB
Diff
diff -ur examples.bak/equality_test.sh examples/equality_test.sh
|
|
--- examples.bak/equality_test.sh 2012-02-02 09:58:24.000000000 +0100
|
|
+++ examples/equality_test.sh 2012-02-02 09:58:54.000000000 +0100
|
|
@@ -7,4 +7,4 @@
|
|
}
|
|
|
|
# load shunit2
|
|
-. ../src/shunit2
|
|
+. @SHUNIT_HOME@/src/shunit2
|
|
diff -ur examples.bak/lineno_test.sh examples/lineno_test.sh
|
|
--- examples.bak/lineno_test.sh 2012-02-02 09:58:59.000000000 +0100
|
|
+++ examples/lineno_test.sh 2012-02-02 09:59:21.000000000 +0100
|
|
@@ -13,4 +13,4 @@
|
|
}
|
|
|
|
# load shunit2
|
|
-. ../src/shunit2
|
|
+. @SHUNIT_HOME@/src/shunit2
|
|
diff -ur examples.bak/math_test.sh examples/math_test.sh
|
|
--- examples.bak/math_test.sh 2012-02-02 09:59:29.000000000 +0100
|
|
+++ examples/math_test.sh 2012-02-02 09:59:56.000000000 +0100
|
|
@@ -24,4 +24,4 @@
|
|
}
|
|
|
|
# load and run shUnit2
|
|
-. ../src/shunit2
|
|
+. @SHUNIT_HOME@/src/shunit2
|
|
diff -ur examples.bak/mkdir_test.sh examples/mkdir_test.sh
|
|
--- examples.bak/mkdir_test.sh 2012-02-02 10:00:08.000000000 +0100
|
|
+++ examples/mkdir_test.sh 2012-02-02 10:00:17.000000000 +0100
|
|
@@ -86,4 +86,4 @@
|
|
|
|
# load and run shUnit2
|
|
[ -n "${ZSH_VERSION:-}" ] && SHUNIT_PARENT=$0
|
|
-. ../src/shunit2
|
|
+. @SHUNIT_HOME@/src/shunit2
|
|
diff -ur examples.bak/party_test.sh examples/party_test.sh
|
|
--- examples.bak/party_test.sh 2012-02-02 10:00:24.000000000 +0100
|
|
+++ examples/party_test.sh 2012-02-02 10:00:35.000000000 +0100
|
|
@@ -14,4 +14,4 @@
|
|
}
|
|
|
|
# load shunit2
|
|
-. ../src/shunit2
|
|
+. @SHUNIT_HOME@/src/shunit2
|