comparison testharness/install-test-harness.sh @ 163:a75a66cb4181

Add end-to-end tests; fix issues found by tests. - Create tests and installer/remover shell script - Fix Pointer/pointee problems - Add Debug formatting - Misc cleanup
author Paul Fisher <paul@pfish.zone>
date Mon, 14 Jul 2025 17:40:11 -0400
parents
children d0bba0117456
comparison
equal deleted inserted replaced
162:180237d0b498 163:a75a66cb4181
1 #!/bin/bash
2
3 set -eo pipefail
4
5 HERE="$(dirname -- "$0")"
6 echo "$HERE"
7 cargo build --release
8
9 sudo mkdir -p /lib/security
10 sudo cp ../target/release/libnonstick_testharness.so /lib/security/pam_testharness.so
11 sudo cp nonstick_testharness.conf /etc/pam.d/nonstick-testharness
12 trap 'sudo rm /etc/pam.d/nonstick-testharness; sudo rm /lib/security/pam_testharness.so' EXIT
13 "$@" && echo "SUCCESS!!!" || echo "FAILURE: $?"