Fix tests on shells that don't support the export FOO=bar syntax
authorPetri Lehtinen <petri@digip.org>
Thu, 8 Mar 2012 13:01:52 +0000 (15:01 +0200)
committerPetri Lehtinen <petri@digip.org>
Thu, 8 Mar 2012 13:01:52 +0000 (15:01 +0200)
test/run-suites
test/suites/encoding-flags/compact-array/env
test/suites/encoding-flags/compact-object/env
test/suites/encoding-flags/ensure-ascii/env
test/suites/encoding-flags/indent-array/env
test/suites/encoding-flags/indent-compact-array/env
test/suites/encoding-flags/indent-compact-object/env
test/suites/encoding-flags/indent-object/env
test/suites/encoding-flags/preserve-order/env
test/suites/encoding-flags/sort-keys/env
test/suites/valid/run

index ea35424..4cbaa8b 100755 (executable)
@@ -22,11 +22,12 @@ fi
 
 [ -z "$STOP" ] && STOP=0
 
-export suites_srcdir=$top_srcdir/test/suites
-export suites_builddir=suites
-export scriptdir=$top_srcdir/test/scripts
-export logdir=logs
-export bindir=bin
+suites_srcdir=$top_srcdir/test/suites
+suites_builddir=suites
+scriptdir=$top_srcdir/test/scripts
+logdir=logs
+bindir=bin
+export suites_srcdir suites_builddir scriptdir logdir bindir
 
 passed=0
 failed=0
index 6a0e0aa..1b7b3e3 100644 (file)
@@ -1 +1,2 @@
-export JSON_ENSURE_ASCII=1
+JSON_ENSURE_ASCII=1
+export JSON_ENSURE_ASCII
index 89c9f78..78fbfcc 100644 (file)
@@ -1,2 +1,3 @@
-export JSON_INDENT=4
-export JSON_COMPACT=1
+JSON_INDENT=4
+JSON_COMPACT=1
+export JSON_INDENT JSON_COMPACT
index 89c9f78..78fbfcc 100644 (file)
@@ -1,2 +1,3 @@
-export JSON_INDENT=4
-export JSON_COMPACT=1
+JSON_INDENT=4
+JSON_COMPACT=1
+export JSON_INDENT JSON_COMPACT
index ce3582d..4d9d206 100644 (file)
@@ -1 +1,2 @@
-export JSON_PRESERVE_ORDER=1
+JSON_PRESERVE_ORDER=1
+export JSON_PRESERVE_ORDER
index 00529e7..3ef24cb 100644 (file)
@@ -1 +1,2 @@
-export JSON_SORT_KEYS=1
+JSON_SORT_KEYS=1
+export JSON_SORT_KEYS
index fa594e6..4f14d61 100755 (executable)
@@ -5,7 +5,8 @@
 # Jansson is free software; you can redistribute it and/or modify
 # it under the terms of the MIT license. See LICENSE for details.
 
-export JSON_SORT_KEYS=1
+JSON_SORT_KEYS=1
+export JSON_SORT_KEYS
 
 is_test() {
     test -d $test_path