diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-02-08 00:04:38 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-02-08 00:18:59 +0100 |
commit | 4d82a87865813bc4c3883cac25ce6f6aeb15eeb8 (patch) | |
tree | 635455f675aa03fa2c694f462b492d0d6e390ff8 | |
parent | fe00c08bc80c3c8c0abc60974dc04e58cb43238f (diff) |
share/: Run some tests directly in the makefiles
This reduces the amount of scripts, which reduces the complexity.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
30 files changed, 22 insertions, 328 deletions
diff --git a/share/mk/check.mk b/share/mk/check.mk index 3950fc0..2433853 100644 --- a/share/mk/check.mk +++ b/share/mk/check.mk @@ -12,9 +12,12 @@ include $(MAKEFILEDIR)/install-lib.mk include $(MAKEFILEDIR)/src.mk -TESTS := $(shell $(FIND) $(TESTSDIR) -type f | $(GREP) '\.sh$$' | $(SORT)) -_TESTS := $(patsubst $(srcdir)/share/%,$(builddir)/%.ck.touch,$(TESTS)) -_tests := $(patsubst $(srcdir)/share/%,$(builddir)/%.ick.touch,$(TESTS)) +TESTS_c := $(shell $(FIND) $(TESTSDIR) -type f | $(GREP) '\.c$$' | $(SORT)) +TESTS_sh := $(shell $(FIND) $(TESTSDIR) -type f | $(GREP) '\.sh$$' | $(SORT)) +_TESTS_c := $(patsubst $(srcdir)/share/%,$(builddir)/%.check,$(TESTS_c)) +_TESTS_sh := $(patsubst $(srcdir)/share/%,$(builddir)/%.check.touch,$(TESTS_sh)) +_tests_c := $(patsubst $(srcdir)/share/%,$(builddir)/%.installcheck,$(TESTS_c)) +_tests_sh := $(patsubst $(srcdir)/share/%,$(builddir)/%.installcheck.touch,$(TESTS_sh)) _TESTSDIRS := $(patsubst $(srcdir)/share/%,$(builddir)/%/,$(shell $(FIND) $(TESTSDIR) -type d | $(SORT))) @@ -25,23 +28,33 @@ $(_TESTSDIRS): | $$(dir $$(@D)) +$(MKDIR) -p $@ -$(_TESTS): $(builddir)/%.ck.touch: $(srcdir)/share/% $(MK) $(TU_h) $(_LIB_a) $(_LIB_so_v) | $$(@D)/ - $(info SH (test) $@) +$(_TESTS_c): $(builddir)/%.check: $(srcdir)/share/% $(MK) $(TU_h) $(_LIB_a) $(_LIB_so_v) | $$(@D)/ + $(info CHECK $@) + $(CC) $(CFLAGS) -o $@ $< $$(PKG_CONFIG_LIBDIR=$(PCDIR) $(PKGCONF) --cflags --libs liba2i) + $@ + +$(_TESTS_sh): $(builddir)/%.check.touch: $(srcdir)/share/% $(MK) $(TU_h) $(_LIB_a) $(_LIB_so_v) | $$(@D)/ + $(info CHECK $@) PKG_CONFIG_LIBDIR=$(PCDIR) $< touch $@ -$(_tests): $(builddir)/%.ick.touch: $(srcdir)/share/% $(MK) $(_tu_h) $(_lib_a) $(_lib_so) | $$(@D)/ - $(info SH (test) $@) +$(_tests_c): $(builddir)/%.installcheck: $(srcdir)/share/% $(MK) $(_tu_h) $(_lib_a) $(_lib_so) | $$(@D)/ + $(info INSTALLCHECK $@) + $(CC) $(CFLAGS) -o $@ $< $$($(PKGCONF) --cflags --libs liba2i) + $@ + +$(_tests_sh): $(builddir)/%.installcheck.touch: $(srcdir)/share/% $(MK) $(_tu_h) $(_lib_a) $(_lib_so) | $$(@D)/ + $(info INSTALLCHECK $@) $< touch $@ .PHONY: check -check: $(_TESTS) +check: $(_TESTS_c) $(_TESTS_sh) .PHONY: installcheck -installcheck: $(_tests) +installcheck: $(_tests_c) $(_tests_sh) endif # include guard diff --git a/share/tests/a2i.h/a2i/a2i.sh b/share/tests/a2i.h/a2i/a2i.sh deleted file mode 100755 index 1fb89c4..0000000 --- a/share/tests/a2i.h/a2i/a2i.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2i.c $LIBS; -"$out"; diff --git a/share/tests/a2i.h/a2s/a2s.sh b/share/tests/a2i.h/a2s/a2s.sh deleted file mode 100755 index 8b99dc1..0000000 --- a/share/tests/a2i.h/a2s/a2s.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2s.c $LIBS; -"$out"; diff --git a/share/tests/a2i.h/a2sh/a2sh.sh b/share/tests/a2i.h/a2sh/a2sh.sh deleted file mode 100755 index 5d5c4e1..0000000 --- a/share/tests/a2i.h/a2sh/a2sh.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2sh.c $LIBS; -"$out"; diff --git a/share/tests/a2i.h/a2shh/a2shh.sh b/share/tests/a2i.h/a2shh/a2shh.sh deleted file mode 100755 index bf97cb9..0000000 --- a/share/tests/a2i.h/a2shh/a2shh.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2shh.c $LIBS; -"$out"; diff --git a/share/tests/a2i.h/a2si/a2si.sh b/share/tests/a2i.h/a2si/a2si.sh deleted file mode 100755 index 84135e2..0000000 --- a/share/tests/a2i.h/a2si/a2si.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2si.c $LIBS; -"$out"; diff --git a/share/tests/a2i.h/a2sl/a2sl.sh b/share/tests/a2i.h/a2sl/a2sl.sh deleted file mode 100755 index f3a857e..0000000 --- a/share/tests/a2i.h/a2sl/a2sl.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2sl.c $LIBS; -"$out"; diff --git a/share/tests/a2i.h/a2sll/a2sll.sh b/share/tests/a2i.h/a2sll/a2sll.sh deleted file mode 100755 index 862236e..0000000 --- a/share/tests/a2i.h/a2sll/a2sll.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2sll.c $LIBS; -"$out"; diff --git a/share/tests/a2i.h/a2u/a2u.sh b/share/tests/a2i.h/a2u/a2u.sh deleted file mode 100755 index c823c45..0000000 --- a/share/tests/a2i.h/a2u/a2u.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2u.c $LIBS; -"$out"; diff --git a/share/tests/a2i.h/a2uh/a2uh.sh b/share/tests/a2i.h/a2uh/a2uh.sh deleted file mode 100755 index f295ad4..0000000 --- a/share/tests/a2i.h/a2uh/a2uh.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2uh.c $LIBS; -"$out"; diff --git a/share/tests/a2i.h/a2uhh/a2uhh.sh b/share/tests/a2i.h/a2uhh/a2uhh.sh deleted file mode 100755 index cd57d38..0000000 --- a/share/tests/a2i.h/a2uhh/a2uhh.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2uhh.c $LIBS; -"$out"; diff --git a/share/tests/a2i.h/a2ui/a2ui.sh b/share/tests/a2i.h/a2ui/a2ui.sh deleted file mode 100755 index a4dff3c..0000000 --- a/share/tests/a2i.h/a2ui/a2ui.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2ui.c $LIBS; -"$out"; diff --git a/share/tests/a2i.h/a2ul/a2ul.sh b/share/tests/a2i.h/a2ul/a2ul.sh deleted file mode 100755 index 0590cbd..0000000 --- a/share/tests/a2i.h/a2ul/a2ul.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2ul.c $LIBS; -"$out"; diff --git a/share/tests/a2i.h/a2ull/a2ull.sh b/share/tests/a2i.h/a2ull/a2ull.sh deleted file mode 100755 index 37c08fd..0000000 --- a/share/tests/a2i.h/a2ull/a2ull.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/a2ull.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2i/str2i.sh b/share/tests/str2i.h/str2i/str2i.sh deleted file mode 100755 index d2d1377..0000000 --- a/share/tests/str2i.h/str2i/str2i.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2i.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2s/str2s.sh b/share/tests/str2i.h/str2s/str2s.sh deleted file mode 100755 index 39934fd..0000000 --- a/share/tests/str2i.h/str2s/str2s.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2s.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2sh/str2sh.sh b/share/tests/str2i.h/str2sh/str2sh.sh deleted file mode 100755 index 1642bf6..0000000 --- a/share/tests/str2i.h/str2sh/str2sh.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2sh.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2shh/str2shh.sh b/share/tests/str2i.h/str2shh/str2shh.sh deleted file mode 100755 index 6d540d0..0000000 --- a/share/tests/str2i.h/str2shh/str2shh.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2shh.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2si/str2si.sh b/share/tests/str2i.h/str2si/str2si.sh deleted file mode 100755 index 7a3333b..0000000 --- a/share/tests/str2i.h/str2si/str2si.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2si.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2sl/str2sl.sh b/share/tests/str2i.h/str2sl/str2sl.sh deleted file mode 100755 index 6d871c2..0000000 --- a/share/tests/str2i.h/str2sl/str2sl.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2sl.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2sll/str2sll.sh b/share/tests/str2i.h/str2sll/str2sll.sh deleted file mode 100755 index 96798db..0000000 --- a/share/tests/str2i.h/str2sll/str2sll.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2sll.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2u/str2u.sh b/share/tests/str2i.h/str2u/str2u.sh deleted file mode 100755 index 79f1e2e..0000000 --- a/share/tests/str2i.h/str2u/str2u.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2u.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2uh/str2uh.sh b/share/tests/str2i.h/str2uh/str2uh.sh deleted file mode 100755 index 495f6b9..0000000 --- a/share/tests/str2i.h/str2uh/str2uh.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2uh.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2uhh/str2uhh.sh b/share/tests/str2i.h/str2uhh/str2uhh.sh deleted file mode 100755 index 5d11042..0000000 --- a/share/tests/str2i.h/str2uhh/str2uhh.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2uhh.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2ui/str2ui.sh b/share/tests/str2i.h/str2ui/str2ui.sh deleted file mode 100755 index dbe4d7f..0000000 --- a/share/tests/str2i.h/str2ui/str2ui.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2ui.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2ul/str2ul.sh b/share/tests/str2i.h/str2ul/str2ul.sh deleted file mode 100755 index 465e0db..0000000 --- a/share/tests/str2i.h/str2ul/str2ul.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2ul.c $LIBS; -"$out"; diff --git a/share/tests/str2i.h/str2ull/str2ull.sh b/share/tests/str2i.h/str2ull/str2ull.sh deleted file mode 100755 index 59d2c0a..0000000 --- a/share/tests/str2i.h/str2ull/str2ull.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/str2ull.c $LIBS; -"$out"; diff --git a/share/tests/strtoi.h/strtoi/strtoi.sh b/share/tests/strtoi.h/strtoi/strtoi.sh deleted file mode 100755 index 3c8e799..0000000 --- a/share/tests/strtoi.h/strtoi/strtoi.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/strtoi.c $LIBS; -"$out"; diff --git a/share/tests/strtoi.h/strtou/strtou.sh b/share/tests/strtoi.h/strtou/strtou.sh deleted file mode 100755 index 2b6ea4a..0000000 --- a/share/tests/strtoi.h/strtou/strtou.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/strtou.c $LIBS; -"$out"; diff --git a/share/tests/strtoi.h/strtou_noneg/strtou_noneg.sh b/share/tests/strtoi.h/strtou_noneg/strtou_noneg.sh deleted file mode 100755 index 66779e8..0000000 --- a/share/tests/strtoi.h/strtou_noneg/strtou_noneg.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -# Copyright 2024 Alejandro Colomar <alx@kernel.org> -# SPDX-License-Identifier: LGPL-3.0-or-later WITH LGPL-3.0-linking-exception - -out="$(mktemp)"; -CFLAGS="$CFLAGS -Werror"; -CFLAGS="$CFLAGS $(pkgconf --cflags liba2i)"; -LIBS="$(pkgconf --libs liba2i)"; - -$CC $CFLAGS -o "$out" "$(dirname "$0")"/strtou_noneg.c $LIBS; -"$out"; |