1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-03 01:46:11 +02:00
git/t/t0082-std-lib.sh
Calvin Wan c9e04a1e1f test-stdlib: show that git-std-lib is independent
Add a test file that calls some functions defined in git-std-lib.a
object files to showcase that they do not reference missing objects and
that, together with git-stub-lib.a, git-std-lib.a can stand on its own.

As described in test-stdlib.c, this can probably be removed once we have
unit tests.

The variable TEST_PROGRAMS is moved lower in the Makefile after
NO_POSIX_GOODIES is defined in config.make.uname. TEST_PROGRAMS isn't
used earlier than that so this change should be safe.

Signed-off-by: Calvin Wan <calvinwan@google.com>
Helped-by: Phillip Wood <phillip.wood123@gmail.com>
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-02-22 13:14:24 -08:00

12 lines
166 B
Bash
Executable File

#!/bin/sh
test_description='Test git-std-lib compilation'
. ./test-lib.sh
test_expect_success !WINDOWS 'stdlib-test compiles and runs' '
test-stdlib
'
test_done