chiark / gitweb /
build tests: Break out build-common
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Dec 2019 12:48:55 +0000 (12:48 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Dec 2019 16:04:44 +0000 (16:04 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/build-common [new file with mode: 0644]
tests/example/check

diff --git a/tests/build-common b/tests/build-common
new file mode 100644 (file)
index 0000000..01ed839
--- /dev/null
@@ -0,0 +1,4 @@
+
+SUBDIRMK_REGEN_NDEBUG=''
+export SUBDIRMK_REGEN_NDEBUG
+
index 143fe05..d492068 100755 (executable)
@@ -1,10 +1,9 @@
 #!/bin/sh
 set -ex
 
 #!/bin/sh
 set -ex
 
-cd example
+. tests/build-common
 
 
-SUBDIRMK_REGEN_NDEBUG=''
-export SUBDIRMK_REGEN_NDEBUG
+cd example
 
 : ----- in-tree build -----
 
 
 : ----- in-tree build -----