summaryrefslogtreecommitdiff
path: root/test/thread-safety/not-thread-safe.sh
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-10-23 20:13:00 +0200
committerJulian Andres Klode <jak@debian.org>2015-10-30 15:36:11 +0100
commit77242b1e219b79d39a2695e5f75f08d6eb92ae6f (patch)
tree6b33402522c07fcb9137abadc99406786d3c83dd /test/thread-safety/not-thread-safe.sh
parent7d70f7993e2e6e465ac216bc21ec15ed7b7d9ff5 (diff)
Provide tests for thread-safety
These scripts currently produce HTML output that is directly piped into an HTML file on alioth. There are three categories. The first two check external library calls to use the ones specified by POSIX to be thread-safe. The main profile excludes functions that are thread-safe on Linux or glibc in general, while the portable output strictly follows posix. The internal.html output lists internal function calls, such as configuration setting. This is supposed to be automated further at some point, so we can automatically check for regressions.
Diffstat (limited to 'test/thread-safety/not-thread-safe.sh')
-rwxr-xr-xtest/thread-safety/not-thread-safe.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/thread-safety/not-thread-safe.sh b/test/thread-safety/not-thread-safe.sh
new file mode 100755
index 000000000..12ac3f398
--- /dev/null
+++ b/test/thread-safety/not-thread-safe.sh
@@ -0,0 +1,7 @@
+git grep -p --color -n -E "$(grep -v ^# thread-check.txt | sed 's/(.*/\\\\ *\\\\(/' | xargs | tr ' ' '|')" \
+ apt-inst/ apt-pkg/ | ansi2html | ssh alioth.debian.org 'cat > /home/groups/apt/htdocs/not-thread-safe/index.html'
+git grep -p --color -n -E "$(grep ^# thread-check.txt | cut -f2 -d# | sed 's/(.*/\\\\ *\\\\(/' | xargs | tr ' ' '|')" \
+ apt-inst/ apt-pkg/ | ansi2html | ssh alioth.debian.org 'cat > /home/groups/apt/htdocs/not-thread-safe/portable.html'
+
+git grep -p --color -n -E "$(grep -v ^# thread-check-internal.txt | sed 's/(.*/\\\\ *\\\\(/' | xargs | tr ' ' '|')" \
+ apt-inst/ apt-pkg/ | ansi2html | ssh alioth.debian.org 'cat > /home/groups/apt/htdocs/not-thread-safe/internal.html'