Mercurial > crates > nonstick
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testharness/install-test-harness.sh Mon Jul 14 17:40:11 2025 -0400 @@ -0,0 +1,13 @@ +#!/bin/bash + +set -eo pipefail + +HERE="$(dirname -- "$0")" +echo "$HERE" +cargo build --release + +sudo mkdir -p /lib/security +sudo cp ../target/release/libnonstick_testharness.so /lib/security/pam_testharness.so +sudo cp nonstick_testharness.conf /etc/pam.d/nonstick-testharness +trap 'sudo rm /etc/pam.d/nonstick-testharness; sudo rm /lib/security/pam_testharness.so' EXIT +"$@" && echo "SUCCESS!!!" || echo "FAILURE: $?" \ No newline at end of file