summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2021-03-01 21:05:22 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2021-03-01 21:05:22 -0500
commit5a1bd98979a4b6a0ffd00ce268827e35a496273f (patch)
treecba14ae4b3cf224cc1226eed876b839bfe7a085c /test
parent7e62881c8f6c1fb45b83037bedfc8fb5fae380cd (diff)
downloadlibfaketime-5a1bd98979a4b6a0ffd00ce268827e35a496273f.tar.gz
parallelize library_contructors test
Diffstat (limited to 'test')
-rw-r--r--test/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile
index e0086be..06ff458 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -41,8 +41,9 @@ run_%: _run_test.c snippets/%.c
## testing when interception points get called in library constructors:
-test_library_constructors: test_constructors.sh $(foreach f,${TEST_SNIPPETS},use_lib_${f} lib${f}.so)
- true $(foreach f,${TEST_SNIPPETS},&& ./test_constructors.sh ${f})
+test_library_constructors: $(foreach f,${TEST_SNIPPETS},test_lib_${f})
+test_lib_%: test_constructors.sh use_lib_% lib%.so
+ ./test_constructors.sh $*
lib%.so: _libtest.c snippets/%.c
sed s/SNIPPET_NAME/$*/g < _libtest.c | ${CC} -shared -o $@ -fpic ${CFLAGS} -x c -