]> git.proxmox.com Git - proxmox.git/blame - proxmox-ldap/run_integration_tests.sh
bump proxmox-apt to 0.10.7-1
[proxmox.git] / proxmox-ldap / run_integration_tests.sh
CommitLineData
582e994c
LW
1#!/bin/bash
2#
3# Run integration tests for the proxmox_ldap crate.
4# At this time, the tests require `glauth` to be available,
5# either explicitly passed via $GLAUTH_PATH, or somewhere
6# on $PATH.
7#
8# Tested with glauth v2.1.0
9
10function run_tests {
11 # All tests that need glauth running are ignored, so
12 # that we can run `cargo test` without caring about them
13 # Also, only run on 1 thread, because otherwise
14 # glauth would need a separate port for each rurnning test
15 exec cargo test -- --ignored --test-threads 1
16}
17
18
19if [ -z ${GLAUTH_BIN+x} ];
20then
21 GLAUTH_BIN=$(command -v glauth)
22 if [ $? -eq 0 ] ;
23 then
24 export GLAUTH_BIN
25 else
26 echo "glauth not found in PATH"
27 exit 1
28 fi
29fi
30
31run_tests