]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
tests: compress test_utile_file with test_basic
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Mon, 10 Jul 2017 10:30:49 +0000 (13:30 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Tue, 11 Jul 2017 07:38:25 +0000 (10:38 +0300)
More code compression/de-duplication.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
tests/test_basic.test
tests/test_util_file.test [changed from file to symlink]

index 3912732c8c2d6feef717b922049f58607570a1d7..154e036d513ec121e012ef3d8f6166f3942e1fc2 100755 (executable)
@@ -11,5 +11,9 @@ fi
 filename=$(basename "$0")
 filename="${filename%.*}"
 
-run_output_test $filename
+# This is only for the test_util_file.test ;
+# more stuff could be extended
+cp -f "$srcdir/valid.json" .
+
+run_output_test $filename "$srcdir"
 exit $?
deleted file mode 100755 (executable)
index 541aada7054048a49eaa21e9234a3f0b6d688fcd..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# Common definitions
-if test -z "$srcdir"; then
-    srcdir="${0%/*}"
-    test "$srcdir" = "$0" && srcdir=.
-    test -z "$srcdir" && srcdir=.
-fi
-. "$srcdir/test-defs.sh"
-
-cp -f "$srcdir/valid.json" .
-run_output_test test_util_file "$srcdir"
-_err=$?
-
-exit $_err
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..58a13f4f327a79766a57c37dc53c4dbbcec6927e
--- /dev/null
@@ -0,0 +1 @@
+test_basic.test
\ No newline at end of file