Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsga committed Feb 27, 2024
1 parent 0e6a332 commit 2b63af8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ jobs:
- name: Build
run: ninja -C build
- name: Run tests
run: make check
run: cd build && meson test

build-omnios:
name: "OmniOS"
Expand Down
11 changes: 9 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ check_headers = [
]

foreach header : check_headers
if cc.has_header(header, include_directories: include_directories(header_dir))
if cc.has_header(
header,
include_directories: include_directories(header_dir),
)
cdata.set('HAVE_' + header.underscorify().to_upper(), 1)
endif
endforeach
Expand Down Expand Up @@ -612,7 +615,11 @@ endif

if with_kerberos
if host_os == 'sunos'
kerberos_c_args += run_command(krb5_config, '--cflags', check: true).stdout().strip()
kerberos_c_args += run_command(
krb5_config,
'--cflags',
check: true,
).stdout().strip()
endif
cdata.set('HAVE_KERBEROS', 1)
kerberos_functions = [
Expand Down
37 changes: 9 additions & 28 deletions test/afpd/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -31,39 +31,20 @@ test_sources = [
'afpfunc_helpers.c',
]

test_deps = [kerberos, libgcrypt, mysqlclient]

test_libs = []

if not get_option('with-spotlight').disabled()
test_sources += [
meson.project_source_root() / 'etc/afpd/spotlight.c',
meson.project_source_root() / 'etc/afpd/spotlight_marshalling.c',
]
test_libs += libspotlight
test_deps += [
glib,
talloc,
tracker_sparql,
]
endif

if host_os != 'darwin'
if not get_option('with-acls').disabled()
test_sources += [
meson.project_source_root() / 'etc/afpd/acls.c',
]
test_deps += [acl_deps]
endif
endif

afpdtest = executable(
'afpdtest',
test_sources,
include_directories: root_includes,
dependencies: test_deps,
dependencies: [
afpd_external_deps,
gssapi,
kerberos,
libgcrypt,
libcnid_deps,
threads,
],
c_args: ['-DAPPLCNAME', dversion, messagedir, uamdir, confdir, statedir],
link_with: [libatalk, test_libs],
link_with: [afpd_internal_deps, libatalk],
)

test_sh = find_program('test.sh')
Expand Down

0 comments on commit 2b63af8

Please sign in to comment.